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 |
|
Rick Olson
|
30c42b21b3
|
Replaced old session rake tasks with db:sessions:create to generate a migration, and db:sessions:clear to remove sessions. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3995 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-20 05:45:22 +00:00 |
|
Jamis Buck
|
b8134000c4
|
Silence the migration messages when importing the schema for tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3781 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-05 20:11:08 +00:00 |
|
David Heinemeier Hansson
|
abe5b1573e
|
Load, not dump, schema to test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3686 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-27 06:03:50 +00:00 |
|
David Heinemeier Hansson
|
985cb44110
|
Added namespaces to all tasks, so for example load_fixtures is now db:fixtures:load. All the old task names are still valid, they just point to the new namespaced names. "rake -T" will only show the namespaced ones, though [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3680 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-27 04:38:39 +00:00 |
|
Marcel Molina
|
16e41c6b75
|
Ignore version mismatch between pg_dump and the database server. Closes #3457.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-13 01:29:28 +00:00 |
|
Marcel Molina
|
56234bee14
|
Honor ActiveRecord::Base.pluralize_table_names when creating and destroying session store table. Closes #3204.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-18 20:20:49 +00:00 |
|
Marcel Molina
|
191dfe8c6d
|
Make load_fixtures include csv fixtures. Closes #3053.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-28 23:34:09 +00:00 |
|
Marcel Molina
|
7355d9f1bd
|
Make the db_schema_dump task honor the SCHEMA environment variable if present the way db_schema_import does. Closes #2931.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3136 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 08:01:41 +00:00 |
|
Jeremy Kemper
|
dfa8aa0e1e
|
PostgreSQL: the purge_test_database Rake task shouldn't explicitly specify the template0 template when creating a fresh test database. Closes #2964.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-20 12:00:46 +00:00 |
|
Jeremy Kemper
|
d685e2cf18
|
SQLite: the clone_structure_to_test and purge_test_database Rake tasks should always use the test environment. Reference #2846.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2992 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-13 02:50:42 +00:00 |
|