Permalink
Browse files

Fixed that ownership is brought over in pg_dump during tests for Post…

…greSQL #1060 [pburleson@gmail.com]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1135 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 5cd815a commit 1ee780b3bb0037cb4c9a0dd5288a4ae92dcf54c3 @dhh dhh committed Apr 10, 2005
Showing with 6 additions and 1 deletion.
  1. +5 −0 railties/CHANGELOG
  2. +1 −1 railties/fresh_rakefile
View
@@ -1,3 +1,8 @@
+*SVN*
+
+* Fixed that ownership is brought over in pg_dump during tests for PostgreSQL #1060 [pburleson@gmail.com]
+
+
*0.11.1* (27th March, 2005)
* Fixed the dispatch.fcgi use of a logger
View
@@ -151,7 +151,7 @@ task :db_structure_dump => :environment do
ENV['PGHOST'] = abcs[RAILS_ENV]["host"] if abcs[RAILS_ENV]["host"]
ENV['PGPORT'] = abcs[RAILS_ENV]["port"].to_s if abcs[RAILS_ENV]["port"]
ENV['PGPASSWORD'] = abcs[RAILS_ENV]["password"]
- `pg_dump -U "#{abcs[RAILS_ENV]["username"]}" -s -x -f db/#{RAILS_ENV}_structure.sql #{abcs[RAILS_ENV]["database"]}`
+ `pg_dump -U "#{abcs[RAILS_ENV]["username"]}" -s -x -O -f db/#{RAILS_ENV}_structure.sql #{abcs[RAILS_ENV]["database"]}`
when "sqlite", "sqlite3"
`#{abcs[RAILS_ENV]["adapter"]} #{abcs[RAILS_ENV]["dbfile"]} .schema > db/#{RAILS_ENV}_structure.sql`
else

0 comments on commit 1ee780b

Please sign in to comment.