mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 09:15:36 +08:00
FIX: Allow restore when latest migration is a post_migration
This commit is contained in:
parent
72b5ab0454
commit
5bb955dcb7
@ -377,6 +377,14 @@ module BackupRestore
|
|||||||
|
|
||||||
def migrate_database
|
def migrate_database
|
||||||
log "Migrating the database..."
|
log "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_tasks
|
Discourse::Application.load_tasks
|
||||||
ENV["VERSION"] = @current_version.to_s
|
ENV["VERSION"] = @current_version.to_s
|
||||||
DB.exec("SET search_path = public, pg_catalog;")
|
DB.exec("SET search_path = public, pg_catalog;")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user