1
0
Fork 0
mirror of https://github.com/Oreolek/kohana-migrations.git synced 2024-05-05 02:28:16 +03:00
Commit graph

178 commits

Author SHA1 Message Date
Matt Button f47bce9bc8 Give more helpful error messages when a migration fails 2011-01-21 00:45:35 +00:00
Matt Button 95e450c43e Fixing reference to old table names in test data, references #10 2011-01-21 00:45:00 +00:00
Matt Button eb907da7f4 Adding db:status to report the status of migrations that have been run 2011-01-20 23:57:03 +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 676f364ecd Fixing bug when a task doesn't have any config options 2011-01-20 23:53:23 +00:00
Matt Button 0d433aabf4 Minion isn't part of kohana so don't put it in that location 2011-01-20 23:45:43 +00:00
Matt Button 973a1d10ea Namespacing the migrations table, fixes #10 2011-01-20 23:12:06 +00:00
Matt Button 75c2c27f08 Fixing slight bug in minion bash script 2011-01-20 22:58:01 +00:00
Matt Button a6f8b15b77 Removing --environment switch for db migrations, refs #6 2011-01-10 16:04:09 +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 a584ac47ea Changing unittests to use test_minion_migrations table and also added migration for setting up the testing table 2011-01-10 15:40:22 +00:00
Matt Button 3f7e6653e4 Fixing minion bash script to escape params passed to kohana 2011-01-10 15:36:16 +00:00
Matt Button d9bc6f6cb7 Adding table() method to migrations model 2011-01-10 14:15:07 +00:00
Matt Button 36646106e8 Pass the exit code back out when using the bash script 2011-01-09 01:01:52 +00:00
Matt Button b2f9e95bb0 Corrected README ala kiall's suggestions 2011-01-09 01:00:34 +00:00
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