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:
parent
3a7b696703
commit
5da7c2a4ad
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue