diff --git a/lib/backup_restore/restorer.rb b/lib/backup_restore/restorer.rb index 3b843998a..2ecccc1e1 100644 --- a/lib/backup_restore/restorer.rb +++ b/lib/backup_restore/restorer.rb @@ -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