FIX: Restorer wasn't rolling back if restore fails.

* This only applies to backup file taken with
  pg_dump 10.3+ and pg_dump 9.5.12+.
This commit is contained in:
Guo Xiang Tan 2018-04-06 09:43:32 +08:00
parent 3a7b696703
commit 5da7c2a4ad

View File

@ -64,6 +64,7 @@ module BackupRestore
wait_for_sidekiq
BackupRestore.move_tables_between_schemas("public", "backup")
@db_was_changed = true
restore_dump
migrate_database
reconnect_database