Skip to content

Commit

Permalink
PostgreSQL: create/drop as postgres user. Closes #4790.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed Jul 8, 2006
1 parent 0d33934 commit de5b737
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions activerecord/CHANGELOG
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,7 @@
*SVN* *SVN*


* PostgreSQL: create/drop as postgres user. #4790 [mail@matthewpainter.co.uk, mlaster@metavillage.com]

* Update callbacks documentation. #3970 [Robby Russell <robby@planetargon.com>] * Update callbacks documentation. #3970 [Robby Russell <robby@planetargon.com>]


* PostgreSQL: correctly quote the ' in pk_and_sequence_for. #5462 [tietew@tietew.net] * PostgreSQL: correctly quote the ' in pk_and_sequence_for. #5462 [tietew@tietew.net]
Expand Down
8 changes: 4 additions & 4 deletions activerecord/Rakefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ task :rebuild_mysql_databases => [:drop_mysql_databases, :build_mysql_databases]


desc 'Build the PostgreSQL test databases' desc 'Build the PostgreSQL test databases'
task :build_postgresql_databases do task :build_postgresql_databases do
%x( createdb activerecord_unittest ) %x( createdb -U postgres activerecord_unittest )
%x( createdb activerecord_unittest2 ) %x( createdb -U postgres activerecord_unittest2 )
%x( psql activerecord_unittest -f #{File.join(SCHEMA_PATH, 'postgresql.sql')} postgres ) %x( psql activerecord_unittest -f #{File.join(SCHEMA_PATH, 'postgresql.sql')} postgres )
%x( psql activerecord_unittest2 -f #{File.join(SCHEMA_PATH, 'postgresql2.sql')} postgres ) %x( psql activerecord_unittest2 -f #{File.join(SCHEMA_PATH, 'postgresql2.sql')} postgres )
end end


desc 'Drop the PostgreSQL test databases' desc 'Drop the PostgreSQL test databases'
task :drop_postgresql_databases do task :drop_postgresql_databases do
%x( dropdb activerecord_unittest ) %x( dropdb -U postgres activerecord_unittest )
%x( dropdb activerecord_unittest2 ) %x( dropdb -U postgres activerecord_unittest2 )
end end


desc 'Rebuild the PostgreSQL test databases' desc 'Rebuild the PostgreSQL test databases'
Expand Down

0 comments on commit de5b737

Please sign in to comment.