Permalink
Browse files

Added --no-privileges to setup.

  • Loading branch information...
1 parent 4e8b861 commit 045b1a5ccd8f16e5569704aa51c27b31004b3dc5 @wayneeseguin committed Apr 27, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/psql-cm/setup.rb
View
@@ -8,7 +8,10 @@ def setup!
ensure_cm_table_exists(database,schema)
Tempfile.open('base.sql') do |temp_file|
- sh " pg_dump #{db(database).psql_args} --schema-only --no-owner --schema=#{schema} --file=#{temp_file.path} #{database}"
+ sh %W[ pg_dump #{db(database).psql_args}
+ --schema-only --no-owner --no-privileges
+ --schema=#{schema} --file=#{temp_file.path} #{database}
+ ]
content = %x{cat #{temp_file.path}}
name = %x{git config user.name}.strip

0 comments on commit 045b1a5

Please sign in to comment.