-
Notifications
You must be signed in to change notification settings - Fork 641
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 when updating from 3.4.27 to 3.5.2 #6593
Comments
@JansonChe sounds like you didn't restore a database backup before re-attempting the update. |
@brandonkelly I restored the database backup after the failed attempt and tried to re-run the update again, but it keeps running into the same exception. I also tried running the update using It's the first time I'm having this kind of issues with updating a craft project. Thanks a lot for your help! |
@brandonkelly Using an empty database, running |
@JansonChe The migration you are getting that error on was added in Craft 3.1. It should not be getting run a second time during the 3.5 update. Craft keeps track of the migrations it has run using the |
@brandonkelly Oh ok, that's weird... I can't recall doing anything like that, but maybe there was an error once while updating or something... Either way... I need to find a way to get the updates working again without loosing the websites content.... Thanks a lot! |
No migration error would end up removing rows in the Ideally, you will restore a If you can’t do that, then you will need to manually add the missing rows. You can find a list of all the migrations that should be listed by looking at https://github.com/craftcms/cms/tree/3.4.27/src/migrations. For any migrations that are missing from the table, add a new row, and set the |
Going to close this since this isn’t a Craft bug. If you need additional help, please write into [email protected] and link to this issue for context, and we can try to help further from there. |
@brandonkelly I'll look if I can figure out what went wrong based on your input. Thanks a lot for your help! |
Description
Hi there
Based on @brandonkelly's update, I've tried to update from 3.4.27 to 3.5.2 and received a similar exception.
Thanks a lot for your help.
Steps to reproduce
Additional info
"born05/craft-assetusage": "2.1.0",
"craftcms/redactor": "2.6.1",
"doublesecretagency/craft-cpcss": "2.2.1",
"ether/seo": "^3.6",
"mmikkel/cp-field-inspect": "1.1.3",
"sebastianlenz/linkfield": "^2.0-beta",
"verbb/super-table": "2.5.2",
The text was updated successfully, but these errors were encountered: