diff --git a/NEWS b/NEWS index 656d6a4d..09e76917 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,7 @@ -1.5.2.dev0 +1.5.2 * #301: Fix MySQL restore error on "all" database dump by excluding system tables. + * Fix PostgreSQL restore error on "all" database dump by using "psql" for the restore instead of + "pg_restore". 1.5.1 * #289: Tired of looking up the latest successful archive name in order to pass it to borgmatic diff --git a/setup.py b/setup.py index 6bad9305..02b33675 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import find_packages, setup -VERSION = '1.5.2.dev0' +VERSION = '1.5.2' setup( diff --git a/tests/unit/hooks/test_postgresql.py b/tests/unit/hooks/test_postgresql.py index 31ced60d..5c79c221 100644 --- a/tests/unit/hooks/test_postgresql.py +++ b/tests/unit/hooks/test_postgresql.py @@ -310,7 +310,7 @@ def test_restore_database_dumps_runs_pg_restore_with_username_and_password(): module.restore_database_dumps(databases, 'test.yaml', {}, dry_run=False) -def test_restore_all_database_dump(): +def test_restore_database_dumps_runs_psql_for_all_database_dump(): databases = [{'name': 'all'}] flexmock(module).should_receive('make_dump_path').and_return('') flexmock(module.dump).should_receive('make_database_dump_filename').and_return(