mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:29:30 +08:00
FIX: restore of a backup from an older Discourse version can create new tables in the wrong schema, leading to UndefinedTable errors
This commit is contained in:
parent
b00fd79989
commit
91e4af0d3d
|
@ -256,6 +256,7 @@ module BackupRestore
|
|||
log "Migrating the database..."
|
||||
Discourse::Application.load_tasks
|
||||
ENV["VERSION"] = @current_version.to_s
|
||||
User.exec_sql("SET search_path = public, pg_catalog;")
|
||||
Rake::Task["db:migrate"].invoke
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user