Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate migrations on each deployment #35

Open
sundaramtalekar opened this issue Apr 17, 2022 · 1 comment
Open

Duplicate migrations on each deployment #35

sundaramtalekar opened this issue Apr 17, 2022 · 1 comment

Comments

@sundaramtalekar
Copy link

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

@minkbear
Copy link

minkbear commented Dec 20, 2022

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants