Upgrading from Craft v4.13.3 to the latest 4.x fails on migrations #17491
-
Hey Guys, I am trying to run the critical update from v4.13.3 to the latest v4 version, however, the upgrade fails on the first migration it is running: I can fix this migration manually, however, then it fails on the second migration. My guess is that it will fail on a lot of migrations. Any clues on how to upgrade without the system failing? Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The only migration that touches a Check your |
Beta Was this translation helpful? Give feedback.
That table keeps a record of which migrations have been run. Nothing in Craft will ever delete rows in it, unless a migration is rolled back, which is typically not possible, including with this particular migration:
cms/src/migrations/m210121_145800_asset_indexing_changes.php
Lines 48 to 49 in 819f12b
So I’m not really sure how you got in this situation, but it sounds like some (all?) rows in the table were manually deleted, or maybe someone manually created a database dump that didn’t include the table data?
Assuming this is the only table with missing data, you can fix by manually r…