1
0
Fork 0
mirror of https://github.com/Oreolek/kohana-migrations.git synced 2024-06-26 03:40:54 +03:00
Commit graph

76 commits

Author SHA1 Message Date
Jeremy Bush 64d87e1be9 Add config option to hard prevent migrations before a certain date from running 2011-05-12 14:14:09 -05:00
Lorenzo Pisani 3e4edb1c0f fixes #13 (fetch_current_versions fails when there are none that have been applied yet) 2011-03-02 14:30:30 -07:00
Bob Eagan 483d9dac79 if target is null and down is false, then assume up is true 2011-02-18 17:49:06 -07:00
Matt Button 110e510e54 Removing syntax typo in migration manager 2011-02-18 15:45:47 +00:00
Matt Button fbd5416594 Fixing up comment in migrate task 2011-02-18 02:23:45 +00:00
Matt Button e42be14cc6 Refactored the migrate view & removed some var_dump calls 2011-02-18 02:20: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 42001496eb Adding tests for/fixing fetch_required_migrations() / resolve_target() 2011-02-17 23:53:15 +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 12670e28ef Removing non-migration related files
In an ideal world I would've been able to simply strip out the unwanted stuff
using git filter-branch, however it seems that command is limited to only one subdirectory
2011-02-06 01:35:23 +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 3a0067b78e Updated the cache:purge task to actually purge caches 2011-01-24 17:44:17 +00:00
Matt Button fccbda3341 Moved the cahce purge task to its proper location 2011-01-24 17:30:29 +00:00
Matt Button 5648f47110 Ensure the migrations table exists before running migrations, fixes #9 2011-01-21 01:18:08 +00:00
Matt Button f47bce9bc8 Give more helpful error messages when a migration fails 2011-01-21 00:45:35 +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 973a1d10ea Namespacing the migrations table, fixes #10 2011-01-20 23:12:06 +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 d9bc6f6cb7 Adding table() method to migrations model 2011-01-10 14:15:07 +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
Matt Button f9378730ba Fixing silly parameter miss match in db:migrate 2011-01-04 16:02:02 +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 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 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