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:
Neil Lalonde 2016-07-12 16:26:21 -04:00
parent b00fd79989
commit 91e4af0d3d

View File

@ -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