tomlegkov / migration-manager
Allows to separate Laravel's migration into folders
dev-master / 1.0.x-dev
2016-11-27 17:49 UTC
Requires
- php: ~5.6|~7.0
- illuminate/support: ~5.1
Requires (Dev)
- phpunit/phpunit: ~4.0||~5.0
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3
This package is not auto-updated.
Last update: 2024-05-25 18:20:48 UTC
README
Fixes an annoying problem that Laravel doesn't fix - The ability to organize migrations into different folders.
Note: you can't have .php files in the root of the migration path. Everything has to be ordered in folders, otherwise Laravel's migrate:reset won't work.
Install
Via Composer
$ composer require tomlegkov/migration-manager
And then run dump-autoload to configure the classes
$ composer dump-autoload
Usage
# Create a new migration, just as you would normally $ php artisan make:model TestModel --migration # Now, move it to a folder with Migration Manager # It will automatically find the last created file $ php artisan migman:move folderName # Now you're ready to migrate $ php artisan migman # And now you can rollback aswell! $ php artisan migman:reset
Credits
- Tom Legkov https://github.com/tomlegkov
License
Apache License 2.0. Please see License File for more information.