Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plain sql dump fixes #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ gem 'pg_tasks', '>= 1.1.0', '< 2.0.0'
The following rake tasks are available:

```shell
rake db:pg:structure_and_data:dump FILE=...
rake db:pg:structure_and_data:dump FILE=... # .pgbin binary file
rake db:pg:structure_and_data:dump_sql FILE=... # .sql text file
rake db:pg:structure_and_data:restore FILE=...
rake db:pg:data:restore FILE=...
rake db:pg:terminate_connections
Expand Down
1 change: 1 addition & 0 deletions lib/pg_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def structure_and_data_dump(filename, plain_text = false)
set_psql_env
command = "pg_dump -x -O \
-F #{plain_text ? 'p' : 'c'} \
#{plain_text ? '--inserts' : ''} \
-f #{Shellwords.escape(filename)} \
#{Shellwords.escape(configuration['database'])}"
unless Kernel.system(command)
Expand Down
2 changes: 1 addition & 1 deletion lib/pg_tasks/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
#++

module PgTasks
VERSION = '2.2.0-0'
VERSION = '2.3.0-0'
end