Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

fix many to many relation and localization migrate for v3 sql->v4 #103

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

liuyang25
Copy link

  1. in addRelation, i have debugged the model schema. there is no column field, instead many to many relation will have a dominant field.
  2. add a tool to get all snake_case field of the object, not directly transform it when addRelation, because the v3 sql 's fields are still not snake-cased. it will be used in 'migrateManyToManyRelation'.
  3. line 65 is used for handle localization relation, the model schema have no enough fields to explicate the localization relation, so use this way and add a new handle for it. 'migrateOneToManyRelation'.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Status: To be reviewed (Open)
Development

Successfully merging this pull request may close these issues.

3 participants