aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/tasks/mysql_database_tasks.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix AR tests due to Mysql constant not being definedCarlos Antonio da Silva2013-01-121-5/+5
|
* Bring back "database already exists" messages when running rake tasksCarlos Antonio da Silva2013-01-121-9/+9
| | | | | | | | | | When running tasks such "rake db:setup", instead of showing messages like "db_development already exists", it was showing a big stack trace and a message "Couldn't create database for ..." with the configuration options, a very confusing message with a big trace. This brings back the functionality present in 3-2, showing the same message.
* Correct default charset/collation for mysql dbsJeremy Kemper2012-09-211-6/+9
|
* Use default charset/collation only if *neither* is specified. Otherwise we ↵Jeremy Kemper2012-09-211-4/+7
| | | | set utf8_unicode_ci collation on latin1 table.
* Use configuration['encoding'], because database configuration use not ↵kennyj2012-09-121-3/+3
| | | | charset but encoding.
* Use native mysqldump command for 'rake db:structure:dump'.kennyj2012-09-121-9/+19
|
* Use the 'mysql' binary for 'rake db:structure:load'.Seamus Abshere2012-09-051-4/+8
| | | | The previous implementation had the strange requirement that db/structure.sql contain only CREATE TABLE sql statements, one per table, separated by double newlines. SQLite3 and PostgreSQL database tasks, on the other hand, simply spawn 'sqlite3' and 'psql' binaries to load the file directly. The new implementation follows this and attempts to respect all current MySQL configuration settings.
* Extract collation tasks to database tasks.kennyj2012-07-011-0/+4
|
* Refactor db:structure:load task.kennyj2012-06-211-0/+8
|
* Refactor db:structure:dump task.kennyj2012-06-201-0/+5
|
* Refactor db:charset taskSimon Jefford2012-06-191-1/+5
| | | | | In a similar vein to Pat's work on create, drop etc, the db:charset task is now a one liner in databases.rake
* add :nodoc: to AR::Tasks and update to follow the coding conventionsFrancesco Rodriguez2012-06-181-70/+75
|
* Cleaning up after some warnings, adding slightly higher-level tests.Pat Allan2012-06-171-2/+4
|
* db:drop and some of db:test:purge.Pat Allan2012-06-171-0/+10
|
* db:create for MySQL now much cleaner.Pat Allan2012-06-171-0/+76