-
Notifications
You must be signed in to change notification settings - Fork 66
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
*** failed to apply m240224_024030_migrate_owners_table (time: 0.232s) while migrating craft/neo 4 -> craft/neo 5 #949
Comments
That seems like there are rows in To confirm, can you try running the following SQL query on the Craft 4 database: SELECT COUNT(*)
FROM `neoblocks_owners` `nbo`
WHERE NOT EXISTS (
SELECT *
FROM `elements` `e`
WHERE `e`.`id` = `nbo`.`blockId`
); and let me know if that comes back with a non-zero result. |
Hi @ttempleton , The count is indeed Is there an easy way to fix this? |
I've just released 4.2.15 to clear out that data during Craft garbage collection. You'll need to restore your Craft 4 database and run garbage collection there again, and then proceed with the upgrade to Craft 5. Please let me know if you continue to have issues with Neo when upgrading to Craft 5. |
Can you specific steps to process migration. We trial several time without success.
|
@nnuyit That could possibly be a similar issue to craftcms/cms#14839 (comment)? Try running the following SQL query before upgrading: DELETE FROM craft_neoblocks WHERE id NOT IN (SELECT id FROM craft_elements); And let me know if that resolves your issue. |
It's still not working.
|
Bug Description
Hi,
I'm getting the following error during migration when updating craft/neo from 4 to 5.
Not sure why this is happening, I tried running
gc/run
, and all kinds of pruning and resaving commands before upgrading and migrating, but so far, sadly I keep running into this error.Steps to reproduce
craft up
Expected behaviour
I expect the command to finish successfully
Neo version
5.2.7
Craft CMS version
5.4.5.1
What is the affected Neo field's propagation method?
Save blocks to all sites the owner element is saved in
Does this issue involve templating, and if so, is eager-loading used?
This is not a templating issue
The text was updated successfully, but these errors were encountered: