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

Fixed a migration error that could occur when updating to Craft 4 #235

Merged
merged 1 commit into from
Aug 18, 2022

Conversation

angrybrad
Copy link
Contributor

This should fix the "Integrity constraint violation" errors reported in #230.

The root cause is there are orphaned rows in the respective content tables (matrix, super table, etc.), that don't have a matching element id in the elements table.

This doesn't clean up the orphaned rows, but does ensure that the migration is only working with valid data.

@sebastian-lenz
Copy link
Owner

Thanks a lot @angrybrad!

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

Successfully merging this pull request may close these issues.

2 participants