aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/tasks/sqlite_database_tasks.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove original_exception from ActiveRecord::StatementInvalidRafael Mendonça França2016-12-291-1/+1
|
* Remove try! usage in sqlite_database_tasks.Kasper Timm Hansen2016-12-291-2/+2
| | | | We try to not try! internally.
* Make ActiveRecord structure load/dump configurableKir Shatrov2016-12-221-4/+6
| | | | | | | | Without this patch it's impossible to pass extra flags to mysqldump/pg_dump when running `rake db:structure:dump` or `load` The following config variables (`structure_load_flags` and `structure_dump_flags`) make it better configurable.
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-6/+6
|
* applies new string literal convention in activerecord/libXavier Noria2016-08-061-5/+5
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Fix test of drop failureJay Hayes2015-10-201-1/+5
| | | | | | | * Previously the sqlite3 adapter could not "fail" on drop. Now an error is raised when no file exists. * Also updates purge to be resilient of drop failures. This is how purge is expected to behave.
* Revert "Revert "Merge pull request #15394 from ↵Yves Senn2014-08-061-1/+5
| | | | | | morgoth/fix-automatic-maintaining-test-schema-for-sql-format"" This reverts commit 5c87b5c5248154cf8aa76cce9a24a88769de022d.
* Revert "Merge pull request #15394 from ↵Rafael Mendonça França2014-07-021-5/+1
| | | | | | | | | | morgoth/fix-automatic-maintaining-test-schema-for-sql-format" This reverts commit 46139d33c06715e74ad450428ece3ee84da98579, reversing changes made to 8f247871bb18b2e3036a05df5f62cbfe3b402586. Conflicts: activerecord/CHANGELOG.md
* Fixed automatic maintaining test schema to properly handle sql structure ↵Wojciech Wnętrzak2014-06-121-1/+5
| | | | | | | | | schema format. Additionally: * It changes `purge` task on `sqlite3` adapter to recreate database file, to be consistent with other adapters. * Adds `purge` step when loading from `schema.rb`
* let the sqlite task run without railsDamien Mathieu2013-08-071-1/+1
|
* Fix AR tests due to Mysql constant not being definedCarlos Antonio da Silva2013-01-121-1/+0
|
* Bring back "database already exists" messages when running rake tasksCarlos Antonio da Silva2013-01-121-4/+1
| | | | | | | | | | 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.
* Refactor db:structure:load task.kennyj2012-06-211-0/+5
|
* 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
* fix invalid syntax and sqlite rake failing testsFrancesco Rodriguez2012-06-181-2/+3
|
* add :nodoc: to AR::Tasks and update to follow the coding conventionsFrancesco Rodriguez2012-06-181-28/+31
|
* check if sqlite3 file exists before removeFrancesco Rodriguez2012-06-181-3/+3
|
* Rails is the default (but now override able) source for environment and path.Pat Allan2012-06-171-3/+7
|
* Cleaning up after some warnings, adding slightly higher-level tests.Pat Allan2012-06-171-1/+3
|
* db:drop and some of db:test:purge.Pat Allan2012-06-171-0/+10
|
* db:create for PostgreSQL pulled out into a class.Pat Allan2012-06-171-3/+5
|
* db:create for MySQL now much cleaner.Pat Allan2012-06-171-0/+19