Merge pull request #4264 from andrewwutw/fix-postgresql-restore

Fix PostgreSQL database restoration problem (#4217)
This commit is contained in:
Dmitriy Zaporozhets 2013-07-11 09:52:43 -07:00
commit 7740005b76
1 changed files with 1 additions and 1 deletions

View File

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