Skip to content

Commit

Permalink
Added --no-privileges to setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Apr 27, 2012
1 parent 4e8b861 commit 045b1a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/psql-cm/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 045b1a5

Please sign in to comment.