laravel-eloquent-state-machines icon indicating copy to clipboard operation
laravel-eloquent-state-machines copied to clipboard

Duplicate migrations on each deployment

Open sundaramtalekar opened this issue 2 years ago • 1 comments

php artisan vendor:publish --all will create a new migration files everytime it is deployed.

To Reproduce

1.use CI/CD to deploy laravel project 2. use command php artisan vendor:publish --all && php artisan migrate 3. you will get duplicate migration on each deployment

Expected behavior Should have one set of migration upon deployment

Solution Ideas Give date and time to migration, it should not have dynamic date and time

sundaramtalekar avatar Apr 17 '22 20:04 sundaramtalekar

@sundaramtalekar I think php artisan vendor:publish --all should run on your dev machine and then commit need files into git when CI/CD should be run php artisan migrate only.

This will be help.

minkbear avatar Dec 20 '22 05:12 minkbear