Sebastian A. Espindola
0176e6adb3
Added db:charset support to PostgreSQL. [ #556 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-07-14 04:11:52 +01:00
Jacek Becela
697ee1a50d
Enable loading fixtures from arbitrary locations. [ #586 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-07-14 01:32:01 +01:00
Tapajós
0d241f4434
Use full path in database tasks so commands will work outside of Rails root [ #612 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-07-13 14:19:03 -05:00
Jeremy Kemper
6ffe32160e
Rely on quieter db:test:load task
2008-06-17 16:01:48 -07:00
Jeremy Kemper
8e74a434b8
Don't dump schema for every test run, just when migrations are run
2008-06-16 03:47:15 -07:00
Pratik Naik
98dc582742
Merge docrails.
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-05-25 12:29:00 +01:00
Tarmo Tänav
3fee2378ed
Use 'public' schema path when connecting to 'postgres' database. [ #170 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-05-13 18:25:30 +01:00
Tarmo Tänav
4dedc7ddca
Use 'postgres' database instead of 'template1'
...
The 'postgres' database is meant for use by utilities and third
party applications. CONNECT permission to the 'template1' database
is usually only available to superusers which is why 'postgres'
should be preferred as users whith "CREATE DATABASE" permissions
are not neccessarily superusers.
2008-05-13 17:34:47 +01:00
Pete Deffendol
c26d10563e
PostgreSQL: update rake tasks to use full settings from database.yml
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-05-04 15:59:34 +12:00
Pete Deffendol
205750c8de
PostgreSQL: Connect to template1 database when creating or dropping db
...
* The template1 database is always available on a PostgreSQL install
* The previous behavior expected a database with the same name as the
connecting user, which may not be available
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#38 state:resolved]
2008-05-04 12:20:14 +12:00
Jeremy Kemper
25eeea7197
PostgreSQL: use create_ and drop_database for rake tasks. Closes #9045 [ez, nicksieger]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9183 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 05:01:33 +00:00
David Heinemeier Hansson
c4be0dbca9
Fixed charset/collation for rake db:create ( closes #11331 ) [matt]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9170 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-31 21:16:17 +00:00
David Heinemeier Hansson
3704f4ba2e
Fix new migration versions
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9126 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-28 22:14:04 +00:00
David Heinemeier Hansson
c00de99f69
Switched to UTC-timebased version numbers for migrations and the schema. This will as good as eliminate the problem of multiple migrations getting the same version assigned in different branches. Also added rake db:migrate:up/down to apply individual migrations that may need to be run when you merge branches ( closes #11458 ) [jbarnette]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9122 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-28 21:21:01 +00:00
Pratik Naik
3d2177df26
Fix database rake tasks to work with charset/collation and show proper error messages on failure. Closes #11301 [matt]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9004 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-10 11:42:01 +00:00
Michael Koziarski
3028ca5955
Clear active connections before trying to drop the database. Allows db:drop to work with posgresql. Closes #10559 [jqr]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8876 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-15 23:16:01 +00:00
David Heinemeier Hansson
64b4c18e15
Refactor check for local databases ( closes #10539 ) [parcelbrat]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8535 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-03 00:35:23 +00:00
Jeremy Kemper
e21c48baf7
db:sessions:clear task uses session_table_name method. Closes #10631 [Cheah Chu Yeow]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-02 09:03:56 +00:00
Jeremy Kemper
072b9d9fba
SQLite: db:drop:all doesn't fail silently if the database is already open. Closes #10577 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-02 08:28:58 +00:00
David Heinemeier Hansson
f60e3aa1ae
Fixed that local database creation should consider 127.0.0.1 local ( closes #9026 ) [parcelbrat]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-14 22:32:54 +00:00
David Heinemeier Hansson
3aa54c5e44
Added db:migrate:redo and db:migrate:reset for rerunning existing migrations #10431 , ( closes #10432 ) [matt]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-14 17:51:02 +00:00
David Heinemeier Hansson
9187ed8656
Added db:migrate:redo for rerunning existing migrations ( closes #10431 ) [matt]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8382 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-14 17:47:56 +00:00
Jeremy Kemper
2c951efed3
Don't check for pending migrations if Active Record isn't loaded
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8338 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-09 04:18:28 +00:00
Jeremy Kemper
699da7001b
The test task stops with a warning if you have pending migrations. Closes #10377 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8324 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-06 18:57:19 +00:00
David Heinemeier Hansson
e47392b81f
Added db:fixtures:identity as a way of locating what ID a foxy fixture was assigned ( closes #10332 ) [jbarnette]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-01 20:53:15 +00:00
David Heinemeier Hansson
2e12afaefe
Fixed that db:reset would use migrations instead of loading db/schema.rb [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8123 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-09 21:58:24 +00:00
David Heinemeier Hansson
2a74d71e49
Added db:rollback to rollback the schema one version (or multiple as specified by STEP) [Jeffrey Allan Hardy]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8039 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-26 21:11:07 +00:00
Jeremy Kemper
9264bdc8f6
db:create works with remote databases whereas db:create:all only createsdatabases on localhost. Closes #9753 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7718 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-02 03:20:52 +00:00
David Heinemeier Hansson
f0055871a3
Follow our own conventions ( closes #6506 ) [packagethief]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7603 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-23 22:16:09 +00:00
Jeremy Kemper
ccc9549436
Revert [7574]. Closes #7521 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7594 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-23 11:31:37 +00:00
David Heinemeier Hansson
35e382627e
Added rake db:version to get the current schema version from the command line ( closes #7521 ) [pelargir]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7574 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 22:12:10 +00:00
David Heinemeier Hansson
9809dc4540
Added VERBOSE option to rake db:migrate to turn off output #8204 [jbarnette]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7566 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 18:28:53 +00:00
David Heinemeier Hansson
694f15758c
Added db:drop:all to drop all databases declared in config/database.yml [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7489 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-15 22:56:07 +00:00
Michael Koziarski
6b9b511de1
Fix task description for db:sessions:create. Closes #9419 [topfunky]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7398 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-02 23:52:24 +00:00
Jeremy Kemper
f26141c98d
db:create creates the database for the current environment if it's on localhost. db:create:all creates local databases for all environments. Closes #8783 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7147 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-06-28 18:23:41 +00:00
David Heinemeier Hansson
7cc67eb6d7
Added db:version to get the current schema number [via Tim Bray]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-06-25 15:15:20 +00:00
David Heinemeier Hansson
376f121075
Docfix ( closes #8480 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7104 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-06-23 17:36:52 +00:00
Jeremy Kemper
a1c88273f4
Skip databases that couldn't be created.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6900 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-30 05:39:49 +00:00
Jeremy Kemper
26f88892a9
SQLite: db:create and drop
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6853 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-26 00:39:18 +00:00
Jeremy Kemper
1f03c5111d
Add db:create, drop, reset, charset, and collation tasks. Closes #8448 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6849 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-26 00:24:58 +00:00
Jeremy Kemper
419226fe11
PostgreSQL: db:test:purge closes open database connections first. Closes #6236 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5269 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-09 06:34:57 +00:00
Jeremy Kemper
e34de4dc24
Firebird database tasks.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4597 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-09 00:36:49 +00:00
Jeremy Kemper
3398f74db1
db:test:clone should remove existing tables before reloading the schema. Closes #5607 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4557 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-05 18:35:06 +00:00
Jeremy Kemper
ce458a74a5
Don't assume Active Record is available. Closes #5497 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4505 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-28 23:51:50 +00:00
Jeremy Kemper
3de8239a7c
Session migration generator obeys pluralize_table_names. Closes #5145 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4360 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-22 21:09:47 +00:00
Marcel Molina
738c43c549
Add modifications to database rake tasks as part of #5139 . [schoenm@earthlink.net]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4356 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-21 20:17:22 +00:00
David Heinemeier Hansson
3d99d33a64
Fixed that rake clone_structure_to_test should quit on pgsql if the dump is unsuccesful ( closes #4585 ) [augustz@augustz.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4166 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-05 03:15:50 +00:00
David Heinemeier Hansson
31199a9e4a
Update description
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-28 01:11:09 +00:00
Michael Koziarski
66f546644b
Allow load_fixtures to load a subset of total fixture data. [Chad Fowler]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4073 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-28 00:59:55 +00:00
David Heinemeier Hansson
f340df798e
Clearing doesnt need migrations
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3996 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 05:49:19 +00:00