mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 05:43:16 +08:00
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
c39167f5da
commit
9c2be4dcac
|
@ -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
Block a user