A platform for community discussion. Free, open, simple.
FIX: Allow restore when latest migration is a post_migration
Gerhard Schlager5bb955dcb71b
diff --git a/lib/backup_restore/restorer.rb b/lib/backup_restore/restorer.rbindex 46fc47d760f..6c0ee649712 100644--- a/lib/backup_restore/restorer.rb+++ b/lib/backup_restore/restorer.rb@@ -377,6 +377,14 @@ module BackupRestoredef migrate_databaselog "Migrating the database..."++ if Discourse.skip_post_deployment_migrations?+ ENV["SKIP_POST_DEPLOYMENT_MIGRATIONS"] = "0"+ Rails.application.config.paths['db/migrate'] << Rails.root.join(+ Discourse::DB_POST_MIGRATE_PATH+ ).to_s+ end+Discourse::Application.load_tasksENV["VERSION"] = @current_version.to_sDB.exec("SET search_path = public, pg_catalog;")