-
Notifications
You must be signed in to change notification settings - Fork 10
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
Migration Error - "Integrity constraint violation" #124
Comments
Thanks for reporting! You are now the second person to report this issue, but the first person didn't have a pre-migration database backup. I might have a solution for this, will post back here shortly. |
I just pushed a patch which (hopefully) resolves this issue. When you get a chance, please grab the latest dev release and try again... "doublesecretagency/craft-googlemaps": "dev-v4-dev" Please let me know if that does the trick for you! 🤞 |
Sorry for the delay. I just tried this but it failed again - with a different error this time:
I'll email you the full output. Edit: This "new" error actually seems to be the same error that was reported in the thread #125 |
Yeah, looks like you're now hitting that other error. I suspect that both bugs were in there all along, and fixing yours just made the other one more visible. It almost sounds like something didn't get rolled back properly. I'll probably need a full database export to get it resolved. Will ping you via email to discuss further. 👍 |
Actually, I may have just been able to fix it blind. Grab the latest "doublesecretagency/craft-googlemaps": "dev-v4-dev" Make sure you've rolled back the database before trying the migration again. Let me know how it goes! 🤞 |
Before I run this, can I confirm that is the correct dev version - v4 is the same number as before. (Deliberate, I'm sure, just want to double check!) |
Yes, that is correct. |
I can confirm that this now works correctly. Successful migration! Well done. |
Brilliant, thanks for confirming! 🍺 |
Great news, this patch has been officially released in v4.6.1. 🎉 If you've experienced a failed migration, be sure to roll the database back before trying again. Hope that helps, thanks again for reporting! |
When upgrading to 4.6.0 from 4.5.2 I get a migration error which causes the update to fail and for the site to go down:
Integrity constraint violation: SQLSTATE[23000]: Integrity constraint violation....
The only way to clear this is to revert that database and the composer.json / composer.lock files.
Sorry, I didn't take a full record of the error.. I did note however that the issue above occurred very many times in the stated error (presumably for each sql record that was migrated (or not!)
This on Craft 4.13.5
The text was updated successfully, but these errors were encountered: