Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | rake db:structure:dump warns when `mysqldump` is not in PATH. | Yves Senn | 2013-03-06 | 1 | -1/+4 |
| | | | | | | | | Closes #9518. The rake task used to fail silently and left an empty `structure.sql`. It's confusing for users to get to the root of the problem. The warning message tells them where to look. | ||||
* | Improve mysql database tasks handling to ensure we always rescue from an ↵ | Carlos Antonio da Silva | 2013-01-15 | 1 | -9/+13 |
| | | | | | | | | | | exception We were previously rescuing "nil" when no exception class was found. This does work in 1.9.3, but does not in 2.0, raising an exception asking for a class or module to be given to the rescue clause. Thanks @yahonda for catching this. | ||||
* | Fix AR tests due to Mysql constant not being defined | Carlos Antonio da Silva | 2013-01-12 | 1 | -5/+5 |
| | |||||
* | Bring back "database already exists" messages when running rake tasks | Carlos Antonio da Silva | 2013-01-12 | 1 | -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 dbs | Jeremy Kemper | 2012-09-21 | 1 | -6/+9 |
| | |||||
* | Use default charset/collation only if *neither* is specified. Otherwise we ↵ | Jeremy Kemper | 2012-09-21 | 1 | -4/+7 |
| | | | | set utf8_unicode_ci collation on latin1 table. | ||||
* | Use configuration['encoding'], because database configuration use not ↵ | kennyj | 2012-09-12 | 1 | -3/+3 |
| | | | | charset but encoding. | ||||
* | Use native mysqldump command for 'rake db:structure:dump'. | kennyj | 2012-09-12 | 1 | -9/+19 |
| | |||||
* | Use the 'mysql' binary for 'rake db:structure:load'. | Seamus Abshere | 2012-09-05 | 1 | -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. | kennyj | 2012-07-01 | 1 | -0/+4 |
| | |||||
* | Refactor db:structure:load task. | kennyj | 2012-06-21 | 1 | -0/+8 |
| | |||||
* | Refactor db:structure:dump task. | kennyj | 2012-06-20 | 1 | -0/+5 |
| | |||||
* | Refactor db:charset task | Simon Jefford | 2012-06-19 | 1 | -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 conventions | Francesco Rodriguez | 2012-06-18 | 1 | -70/+75 |
| | |||||
* | Cleaning up after some warnings, adding slightly higher-level tests. | Pat Allan | 2012-06-17 | 1 | -2/+4 |
| | |||||
* | db:drop and some of db:test:purge. | Pat Allan | 2012-06-17 | 1 | -0/+10 |
| | |||||
* | db:create for MySQL now much cleaner. | Pat Allan | 2012-06-17 | 1 | -0/+76 |