Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | require the files we test | Aaron Patterson | 2013-11-25 | 1 | -0/+1 |
| | |||||
* | Revert "Properly require database tasks so we have access to the raised ↵ | Rafael Mendonça França | 2013-11-19 | 3 | -3/+0 |
| | | | | | | | | constant" This reverts commit fbcd46b1a0d255a34d29caa77bbd31c287446333. This is not needed anymore. See 7280965 | ||||
* | Revert "Explicitly exit with status "1" for create and drop failures" | Rafael Mendonça França | 2013-11-19 | 3 | -18/+6 |
| | | | | | | | | | | This reverts commit 22f80ae57b26907f662b7fd50a7270a6381e527e. See https://github.com/rails/rails/commit/22f80ae57b26907f662b7fd50a7270a6381e527e#commitcomment-4640676 Conflicts: activerecord/CHANGELOG.md | ||||
* | Properly require database tasks so we have access to the raised constant | Carlos Antonio da Silva | 2013-11-17 | 3 | -0/+3 |
| | | | | Fix travis failures. | ||||
* | Merge pull request #12531 from iamvery/database-tasks-exit-status | Rafael Mendonça França | 2013-11-15 | 3 | -6/+18 |
|\ | | | | | | | | | | | | | Explicitly exit with status "1" for create and drop task failures Conflicts: activerecord/CHANGELOG.md | ||||
| * | Explicitly exit with status "1" for create and drop failures | Jay Hayes | 2013-11-11 | 3 | -6/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * A non-zero exit status allows subsequent shell commands to be chained together such as: `rake db:reset test:prepare && rspec && cap deploy` (if you're feeling brave :) * Any exceptions raised during the `create` and `drop` tasks are caught in order to print a "pretty" message to the user. Unfortunately doing so prevents rake from aborting with a non-zero exit status to the shell. * Therefore we re-raise the exceptions after the "pretty" message and re-catch them in the task. * From the task we explicitly exit with a non-zero status. This method was chosen (rather than just letting rake fail from the exception) so that the backtrace is suppressed and the output to stderr is unchanged. * Update activerecord CHANGELOG | ||||
* | | Don't skip tests if we don't need to. | Rafael Mendonça França | 2013-11-08 | 1 | -75/+74 |
| | | | | | | | | | | | | | | We can conditional define the tests depending on the adapter or connection. Lets keep the skip for fail tests that need to be fixed. | ||||
* | | More Warnings removed for ruby trunk | Arun Agrawal | 2013-11-01 | 1 | -1/+1 |
| | | | | | | | | Same as 4d4ff531b8807ee88a3fc46875c7e76f613956fb | ||||
* | | Warnings removed for ruby trunk | Arun Agrawal | 2013-11-01 | 1 | -3/+3 |
| | | | | | | Same as 4d4ff531b8807ee88a3fc46875c7e76f613956fb | ||||
* | | Fix loading a sql structure file on postgres when the file's path has ↵ | Kevin Mook | 2013-10-21 | 1 | -0/+7 |
| | | | | | | | | whitespace in it | ||||
* | | Convert Fixnum into String the port number in MySQL | Kenta Okamoto | 2013-10-18 | 1 | -0/+9 |
|/ | |||||
* | Remove FirebirdDatabaseTasks was deprecated, because this was provided by ↵ | kennyj | 2013-06-05 | 1 | -100/+0 |
| | | | | 3rd-party. | ||||
* | Remove SqlseverDatabaseTasks was deprecated, because this was provided by ↵ | kennyj | 2013-06-05 | 1 | -87/+0 |
| | | | | 3rd-party. | ||||
* | Remove OracleDatabaseTasks was deprecated, because this was provided by ↵ | kennyj | 2013-06-05 | 1 | -93/+0 |
| | | | | 3rd-party. | ||||
* | Mute psql output when running rake db:schema:load | Godfrey Chan | 2013-04-30 | 1 | -1/+1 |
| | |||||
* | Abort a rake task when missing db/structure.sql like `db:schema:load` task. | kennyj | 2013-05-01 | 1 | -0/+7 |
| | |||||
* | Show deprecated messages only when target database adapters defined | Yasuo Honda | 2013-04-03 | 3 | -3/+3 |
| | |||||
* | Fix tiny problem: change method order for consistency and fix wrong method name. | kennyj | 2013-04-03 | 1 | -1/+1 |
| | |||||
* | Suppress deprecation messages for deprecated database tasks, when executing ↵ | kennyj | 2013-04-03 | 3 | -0/+21 |
| | | | | rails's testcases. | ||||
* | Extract Oracle database tasks. | kennyj | 2013-04-03 | 1 | -0/+86 |
| | |||||
* | Extract Sqlserver database tasks. | kennyj | 2013-04-03 | 1 | -0/+80 |
| | |||||
* | Extract Firebird database tasks. | kennyj | 2013-04-03 | 1 | -0/+93 |
| | |||||
* | `rake db:create` does not change permissions of root user. | Yves Senn | 2013-03-17 | 1 | -2/+18 |
| | | | | | | | | Closes #8079. I had to rework some of the tests because the mock allowed any arguments for `connection.exeucte`. I think this is very dangerous as there could anything be executed without the tests noticing it. | ||||
* | rake db:structure:dump warns when `mysqldump` is not in PATH. | Yves Senn | 2013-03-06 | 1 | -1/+12 |
| | | | | | | | | 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. | ||||
* | Raise a specific exception with a useful message if a rake task is requested ↵ | Daniel Azuma | 2013-01-30 | 1 | -0/+6 |
| | | | | for an unknown adapter | ||||
* | Revert "Merge pull request #8942 from yahonda/tested_only_with_mysql" | Carlos Antonio da Silva | 2013-01-15 | 1 | -4/+0 |
| | | | | | | | | | | | This reverts commit 1fc294f988e93ac59057a16b0e44b9cf93af9720, reversing changes made to fb9ac47c286fbdfe05263d4d0346e50892090603. Reason: these tests should run fine independent of database, since they should only take into account the configuration options. The problem was related to a change in the way "nil" is handled by the rescue clause, in Ruby 2.0 it raises an exception asking for class or module, in 1.9 it passes. | ||||
* | Address test_create_when_database_exists_outputs_info_to_stderr failures | Yasuo Honda | 2013-01-15 | 1 | -0/+4 |
| | | | | | When tested with ruby-2.0.0-rc1 `rake test` executes this test even if the target adapter is not mysql nor mysql2. | ||||
* | Bring back "database already exists" messages when running rake tasks | Carlos Antonio da Silva | 2013-01-12 | 3 | -7/+27 |
| | | | | | | | | | | 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. | ||||
* | Style: remove hash noise | Jeremy Kemper | 2012-09-21 | 1 | -10/+10 |
| | |||||
* | Correct default charset/collation for mysql dbs | Jeremy Kemper | 2012-09-21 | 1 | -9/+21 |
| | |||||
* | Use configuration['encoding'], because database configuration use not ↵ | kennyj | 2012-09-12 | 1 | -2/+2 |
| | | | | charset but encoding. | ||||
* | Use native mysqldump command for 'rake db:structure:dump'. | kennyj | 2012-09-12 | 1 | -15/+2 |
| | |||||
* | Use the 'mysql' binary for 'rake db:structure:load'. | Seamus Abshere | 2012-09-05 | 1 | -5/+2 |
| | | | | 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. | ||||
* | Merge pull request #7196 from ↵ | Aaron Patterson | 2012-07-29 | 1 | -1/+5 |
|\ | | | | | | | | | rimidl/fix-incorrect-require-mysql-in-mysql_rake_test Fix incorrect usage `require mysql` in the activerecord/.../mysql_rake_test | ||||
| * | fix incorrect usage `require mysql` in the ↵ | Vladimir Strakhov | 2012-07-29 | 1 | -1/+5 |
| | | | | | | | | activerecord/test/.../mysql_rake_test.rb | ||||
* | | More polite cleanup for sqlite tests | Bogdan Gusiev | 2012-07-29 | 1 | -4/+4 |
|/ | |||||
* | Merge pull request #6838 from kennyj/added_registration_task | Carlos Antonio da Silva | 2012-07-07 | 1 | -0/+16 |
|\ | | | | | Allow to register database tasks from different adapters | ||||
| * | Added a feature to add a database task. e.g. OracleDatabaseTasks | kennyj | 2012-06-24 | 1 | -0/+16 |
| | | |||||
* | | Unify the collation API for the database adpters | Rafael Mendonça França | 2012-07-01 | 1 | -4/+4 |
| | | |||||
* | | Extract collation tasks to database tasks. | kennyj | 2012-07-01 | 4 | -0/+68 |
| | | |||||
* | | Support collate and ctype on the PostgreSQL. | kennyj | 2012-06-29 | 1 | -0/+8 |
|/ | |||||
* | Move tasks(rake) tests to under the tasks dir. | kennyj | 2012-06-24 | 4 | -0/+891 |