mrcoto / migration-workflow
Run migrations and seeds in custom order
v2.0.4
2021-11-19 21:24 UTC
Requires
- php: ^7.2|^8.0
- bramus/monolog-colored-line-formatter: ~2.0|~3.0
- hanneskod/classtools: ^1.2
- illuminate/database: 5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0
- illuminate/support: 5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0
- monolog/monolog: ^1.23|^2.0
Requires (Dev)
- orchestra/testbench: ^3.0|^4.0|^5.0|^6.0
- phpunit/phpunit: ^8.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Why to use this package?
One little problem with Laravel when running migrations and seeds, is the execution order on those files.
For example, when you run:
php artisan migrate:fresh php artisan db:seed
First, migration files are executed, and then seeder classes are executed.
This package allows you to control the execution order of those migration and seeder files. You can:
- Define the order between migration and seed files
- Add a version tag to your migration workflow
- Store in database your deployed migration workflows (same as default laravel migrations files stored in database when you migrate files with
php artisan migrate).
Documentation
| Versión | Link |
|---|---|
| 2.0.3 | https://mrcoto.github.io/migration-workflow-docs/2.0/ |
| 1.4 | https://mrcoto.github.io/migration-workflow-docs/1.4/ |
All rights reserved Innlab@2019 (Package developed by José Espinoza)