Matt Button
010744fb84
Fixing typo in README
2011-01-09 00:51:53 +00:00
Matt Button
69ea47f514
Forgot to add --uri option in binary\!
2011-01-09 00:49:48 +00:00
Matt Button
65230921c6
Added binary file for easier interaction with minion
2011-01-09 00:47:41 +00:00
Matt Button
19096e5901
Allow users to use --help and --task instead of uri
...
--help will force the controller action to be help (aka --uri=minion/help/{task})
--task={task} will force the current task to be {task}
Both override uri values
2011-01-09 00:38:47 +00:00
Matt Button
363576919d
Merge branch 'develop' of git://github.com/BRMatt/kohana-minion into develop
2011-01-07 15:02:43 +00:00
Matt Button
64fec1190b
Fix classname bug in db:generate when an empty location is used. fixes #3
2011-01-07 15:02:19 +00:00
Andrew Hutchings
5283d121c2
Don't fail on tasks with no command line options
2011-01-07 22:43:56 +08:00
Andrew Hutchings
d85ba5037b
Fix typos
2011-01-07 22:43:56 +08:00
Andrew Hutchings
dc006ee129
Fix PHP short open tag usage
2011-01-07 22:43:55 +08:00
Matt Button
b36b2131aa
Merge branch 'develop' of git://github.com/BRMatt/kohana-minion into develop
2011-01-04 20:26:39 +00:00
Matt Button
f9378730ba
Fixing silly parameter miss match in db:migrate
2011-01-04 16:02:02 +00:00
Matt Button
4c8daa7179
Migrations extend Minion_Migration_Base not Minion_Task
2011-01-04 15:29:26 +00:00
Matt Button
afa54b9e4a
db:generate should use hours with leading zeros for migration timestamp
2011-01-04 15:29:04 +00:00
Matt Button
39092409e6
Added a few lines to README
2010-12-31 11:08:09 -08:00
Matt Button
3b16943795
Added beta note to README.md
2010-12-31 12:39:37 +00:00
Matt Button
4a5cc8bcb8
Adding task to generate migration files
2010-12-31 02:04:25 +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
7ff67837b6
Refactored the migration model slightly, reduces the complexity and removes stupid code that shouldn't have been there in the first place
2010-12-31 00:49:09 +00:00
Matt Button
e4d8c740b5
Fixing a problem where an empty input was interpretted as a set of locations
2010-12-31 00:48:33 +00:00
Matt Button
41a7392f15
Changing timestamps to be {year}{month}{day}{hour}{minute}{second}
...
Also added get_migration method to model and some more tests
2010-12-30 15:06:52 +00:00
Matt Button
d8f033f22a
Adding schema dump for migrations table
2010-12-30 04:27:20 +00:00
Matt Button
41ecb96fd6
Updated README. Added requirements, compatability notes, FAQ items
2010-12-30 04:21:54 +00:00
Matt Button
bebd8c0a92
Tasks should return their output rather than echo it
2010-12-30 04:09:25 +00:00
Matt Button
8893886896
Updating README and changing controller to throw the right exception
2010-12-30 04:08:32 +00:00
Matt Button
7794e69fe8
Fixed a bug in db:migrate where you couldn't specify FALSE as a target version
2010-12-30 03:58:43 +00:00
Matt Button
6a90ec0c90
Adding mark_migration() method to migration model, allowing the manager to mark a migration as completed
2010-12-30 03:51:20 +00:00
Matt Button
8406255305
Fixing a bug where the migration model gets mixed up if you pass in a numerically
...
indexed array of locations as opposed to an associative one
2010-12-30 03:42:03 +00:00
Matt Button
3021f5727b
Removing superflous condition in migration model
2010-12-30 03:33:16 +00:00
Matt Button
5247abc23a
Fixed bug in db:migrate where it wasn't parsing input lists of locations properly
2010-12-30 03:32:39 +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
a3636f866f
Fixing a bug where there are no versioned locations
2010-12-30 02:10:08 +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
181e2d7b67
Making it easier to pass data into db:migrate task outside of the cli
2010-12-29 02:19:21 +00:00
Matt Button
0a2863ae9a
Filling out the environment config option in db:migrate
2010-12-29 01:17:51 +00:00
Matt Button
c026cbb415
Limiting command line to executing a single task.
...
This reduces both the complexity for the end user (no pesky task namespace on config options)
and also removes a good few LOC
Minion_Master has been removed in favour of Controller_Minion + Minion_Test::factory()
2010-12-29 01:01:32 +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
2bbd092572
Changing tasks so that allowed config options are stored in member variables
2010-12-29 00:43:45 +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
14ac8a4047
Migration model wasn't using correct target version when downgrading all locations. Adding a bugfix & test
2010-12-28 17:40:40 +00:00
Matt Button
5fd227becd
Added unit tests for migration model and fixed some bugs found with the tests :)
2010-12-28 15:40:54 +00:00
Matt Button
ae36d5d947
Added some more info to the documentation
2010-12-28 05:29:58 +00:00
Matt Button
336c6506f3
Implemented code to parse user input on cli and pass it to migration manager
2010-12-28 05:03:03 +00:00