mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 11:20:57 -06: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..."
|
log "Migrating the database..."
|
||||||
Discourse::Application.load_tasks
|
Discourse::Application.load_tasks
|
||||||
ENV["VERSION"] = @current_version.to_s
|
ENV["VERSION"] = @current_version.to_s
|
||||||
|
User.exec_sql("SET search_path = public, pg_catalog;")
|
||||||
Rake::Task["db:migrate"].invoke
|
Rake::Task["db:migrate"].invoke
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user