-
Notifications
You must be signed in to change notification settings - Fork 25
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
Migrations doesnt check for exisiting table #67
Comments
That shouldn't be much of an issue to take care of. I'll look into it today. |
Reopening to talk about #68 (comment) @webcodecs I think I am confused about how your deployment flow is working and using the migrations. You said you don't publish the migration but it is running on each deployment. That means that you don't have 2 migration under your applications database/migrations/ yet they are still being migrated? You are not running The only reason I am asking is because there is the Laravel option |
Thanks for reopening! Correct, i dont publish the migrations. The migrations will be executed every time out of the package. And this happend on every deployment. You publish the migration with a timestamp. Thats the reason why the app tries to migrate the migrations every time. After the first deployment there is an entry in the migrations table as follows:
After the second deployment there is a additional entry: And on the next deployment there will be a new one. I hope you understand the problem |
I think I see where this went wrong. If you could take a look at #70 let me know if that can handle your situation. Using publishing, I should have set the date/time on the migration file itself to prevent your situation of additional "new" migrations. There is a config option now to use either or, but in the end the published migration date/time won't change. |
I guess that should help and solve the problem :) |
@webcodecs Just released 1.2.0 with the new config options. |
Describe the bug
I dont publish the migration cause of flexibility. You are using the publish command. The migrations will be executed on each deployment which is failing after the first deployment because the tables are already there.
Am i missing something?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Deploying the application should not break.
I guess the problem is the new checkout on every deployment. The application does not know about the migrations in the Deployment before.
Is there any possibility to disable package migrations if i publish them to my migration folder?
The text was updated successfully, but these errors were encountered: