Merge pull request #4264 from andrewwutw/fix-postgresql-restore
Fix PostgreSQL database restoration problem (#4217)
This commit is contained in:
commit
7740005b76
|
@ -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…
Reference in New Issue