morph relation : renaming an object (#13404)

# Why
If we have a Morph Relation, like :
Opportunity <-> Company & People

Let's say it's a MANY_TO_ONE on Opportunity side

Then we have two joinColumnNames looking like
- ownerPersonId
- ownerCompanyId

Let's say someone renames the obejct Person (assume we can even though
standard obejcts cannot be renames per say at the moment in the API)

We need to update the joinColumnName and create the associated
migrations
This commit is contained in:
Guillim
2025-07-25 16:40:51 +02:00
committed by GitHub
parent 9380a1386a
commit 8ea816b7ef
7 changed files with 343 additions and 0 deletions

View File

@ -74,6 +74,12 @@ export const createMorphRelationBetweenObjects = async ({
targetObjectMetadata {
id
}
sourceFieldMetadata {
id
}
sourceObjectMetadata {
id
}
}
`,
expectToFail: false,