This repository was archived by the owner on Oct 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Component field relations dissappearing during the migration process #44
Labels
issue: bug
Issue reporting a bug
severity: high
If it breaks the basic use of the product
status: confirmed
Confirmed by a Strapi Team member or multiple community members
Comments
Having the same issue here! |
Quick fix for this:
I think the actual issue here is not related to migration-scripts but the Codemods. My guess here is migration script simply doesn't find the corresponding table and it skips the migration of data. |
I can confirm this issue, the problem is codemods related. What I did to reproduce:
|
3 tasks
I've created a PR for this which should properly migrate components with relations in them. Could you all test to see if that's the case (you'll still need to run the data migration scripts to get the data moved over properly though) |
Repository owner
moved this from Reviewed
to Fixed/Shipped
in v3 to v4 Migration Project
Oct 28, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
issue: bug
Issue reporting a bug
severity: high
If it breaks the basic use of the product
status: confirmed
Confirmed by a Strapi Team member or multiple community members
Bug report
Hello and thanks for the hard work with the migration scripts! This is my first PR so let me know in case there is something unclear. Also steps 5. and 8. are something that could raise another issue, but I think that the most critical and valuable thing to solve is the described issue.
Required System information
Describe the bug
Component field relations are dissappearing during the migration process
Steps to reproduce the behavior
npx [email protected] reproductible-relation-error
Cannot read property 'fields' of null
erroradmin_permissions
change thenull
fields to{}
in the columnproperties
Expected behavior
Component relations should migrate to v4
Screenshots
To visualize the collections:
V3 API returns:
V4 API returns:
V3 database structure seems to show the components_element_stores__tools
but the V4 seems to have discarded it
Code snippets
Additional context
I'm happy to provide the v3 and v4 databases if needed
The text was updated successfully, but these errors were encountered: