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..."
|
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
|
||||||
|
|
||||||
|
|
Reference in a new issue