Skip to content
Snippets Groups Projects
Commit b8983721 authored by andrewwutw's avatar andrewwutw
Browse files

Fix PostgreSQL database restoration problem (#4217)

Use psql instead of pg_restore to restore SQL dump file.
parent 251945e2
No related branches found
No related tags found
1 merge request!4264Fix PostgreSQL database restoration problem (#4217)
Loading
Loading
@@ -26,7 +26,7 @@ module Backup
system("mysql #{mysql_args} #{config['database']} < #{db_file_name}")
when "postgresql" then
pg_env
system("pg_restore #{config['database']} #{db_file_name}")
system("psql #{config['database']} -f #{db_file_name}")
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment