Lorenzo Pisani
a6fd63a035
Merge remote branch 'minion/3.1/develop' into 3.2/develop
2011-07-01 20:33:25 -07:00
Matt Button
5a1fecabe1
Updating config for 3.2
2011-06-27 20:57:21 +01:00
Michał Matyas
b1fa2b7cb0
fixing unproperly handled lack of description
2011-06-26 11:21:18 +02:00
Jeremy Bush
e6cdf3ce32
Fix bad variable call, Fixes #15
2011-05-12 14:23:15 -05:00
Jeremy Bush
64d87e1be9
Add config option to hard prevent migrations before a certain date from running
2011-05-12 14:14:09 -05:00
Matt Button
110e510e54
Removing syntax typo in migration manager
2011-02-18 15:45:47 +00:00
Matt Button
fd690e6494
Rewrite of the core migrations system is pretty much complete, fixes #4
2011-02-18 02:20:05 +00:00
Matt Button
e0fe87f443
Starting to refactor stuff.
...
Renaming locations -> groups
Cut down the size of fetch_required_migrations()
2011-02-17 20:43:04 +00:00
Matt Button
8c92824af1
Adding syspath checks to files
2011-01-31 17:38:04 +00:00
Matt Button
628f2b21c3
Small typo fix in doccomment
2011-01-31 17:33:06 +00:00
Matt Button
8fc8ea440e
Updating code to follow kohana coding standards
2011-01-31 17:28:58 +00:00
Bob Eagan
f7a15027d9
fixes #15 - uses array_merge instead of + to prevent overwriting of migrations
2011-01-29 05:17:54 +08:00
Matt Button
f47bce9bc8
Give more helpful error messages when a migration fails
2011-01-21 00:45:35 +00:00
Matt Button
f4538e6713
Moving logic for searching for available migrations into the model
...
Also added a method for getting the status of all locations, regaurdless of whether they're installed.
2011-01-20 23:53:59 +00:00
Matt Button
959d130669
Added basis for migrations deciding what db connection to use, refs #6
2011-01-10 16:01:40 +00:00
Matt Button
d463d9f873
Improving the output of db:migrate to show number of migrations run & also status of locations
2010-12-31 00:51:07 +00:00
Matt Button
de7711942f
Changing migration system so that the migration manager is responsible for organising dry-runs
...
This makes more sense from a structural point of view, and reduces the complexity of the db:migrate code.
Can now successfully do a dry run with query output :)
Also added a view so as to display task results.
2010-12-30 03:22:32 +00:00
Matt Button
09e3e57368
Changed Minion_Migration_Database so that it doesn't try and override Database::instance()
...
Also, reset_query_stack() now returns an array of queries collected after resetting the stack
2010-12-30 03:21:51 +00:00
Matt Button
765e4eddee
Fixing a bug in the migration manager which prevented it from finding migration files
2010-12-30 02:11:49 +00:00
Matt Button
e7b6911806
Outlined changes for dry run, refs #1
2010-12-29 04:30:25 +00:00
Matt Button
e1a60f9d74
Added migration sync functionality between FS and DB table
2010-12-29 04:29:05 +00:00
Matt Button
d164f69f6a
Added db/model setters to the migration manager
2010-12-29 04:26:43 +00:00
Matt Button
a127951df7
Fixing typo in function call in Migration manager
2010-12-29 03:30:36 +00:00
Matt Button
fbe91010ed
Migration IDs are now {location}:{timestamp}
...
This should force uniqueness of migration ids
2010-12-29 03:03:00 +00:00
Matt Button
e64ce18a71
Changing model methods so they return an array instead of a database result
2010-12-29 00:46:07 +00:00
Matt Button
114540af40
Fleshed out the manager code for running migrations
2010-12-28 23:23:36 +00:00
Matt Button
1d3e2343c9
Renaming some methods and changing get_filename_from_migration() so it doesn't prepend migrations/
2010-12-28 23:23:01 +00:00
Matt Button
76f50ab4b9
Change migration manager to allow an instance of Model_Minion_Migration to be injected
2010-12-28 17:51:17 +00:00
Matt Button
1207916227
Updated the migration manager with some comments relevant to the previous commit
2010-12-28 05:02:27 +00:00
Matt Button
8cadcbf309
Renaming 'module' to 'location' in migration related code, makes more sense
2010-12-28 02:47:49 +00:00
Matt Button
270a4e93e9
Adding a migration manger, no tests as of yet
2010-12-24 17:54:23 +00:00
Matt Button
82ba3323d6
Added some utility methods for managing migrations, includes tests
2010-12-24 17:37:52 +00:00
Matt Button
ff99409974
Modifying base migration to accept a database connection in up() and down()
2010-12-24 17:35:17 +00:00
Matt Button
ed98d5b7c8
Initial import
2010-12-24 15:52:03 +00:00