Craftsman - Interactive CLI |
Craftsman now supports HMVC Environments with a new feature: 'Modular Migrations'.
Modular Migrations: manage your database scheme's evolution through independent versions of your components. Example: Suppose we have our application directory: Code: +- APPPATH/ And an application library uses a database scheme (like Ion Auth, etc). This migrations reside in: Code: +- APPPATH If you're familiar with the Codeigniter Migration Class, it is imposible to maintain separated migration version files in your application, you need to merge these files in one directory and fix the migration file name. With Craftsman you can run the command: Code: php vendor/bin/craftsman migration:latest --path="application/libraries/XLib" And that's all, your migrations are now independent. In your database you can see that every component have a version assigned: Code: mysql> SELECT * FROM ci_migrations; Also you can change the component name stored in the database with the '--name' option: Code: php vendor/bin/craftsman migration:latest --name="foo" --path="application/libraries/XLib" |
Messages In This Thread |
Craftsman - Interactive CLI - by dsv - 08-18-2015, 03:34 AM
RE: Symfony Console CLI for Codeigniter 3.0 - by rakibtg - 08-18-2015, 11:19 AM
RE: Symfony Console CLI for Codeigniter 3.0 - by dsv - 08-18-2015, 12:43 PM
RE: Craftsman CLI - by dsv - 04-07-2016, 09:16 AM
RE: Craftsman CLI - by dsv - 07-09-2016, 11:00 AM
RE: Craftsman CLI - by dsv - 12-08-2016, 04:52 PM
RE: Craftsman - Interactive CLI - by dsv - 01-09-2017, 10:51 AM
RE: Craftsman - Interactive CLI - by abmcr - 02-05-2017, 10:08 AM
RE: Craftsman - Interactive CLI - by dsv - 02-20-2017, 02:08 PM
RE: Craftsman - Interactive CLI - by cvetan - 04-03-2018, 03:40 PM
|