mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05: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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue