|
|
@ -746,7 +746,7 @@ export class MetaDiffsService { |
|
|
|
} else if (change.relationType === RelationTypes.HAS_MANY) { |
|
|
|
} else if (change.relationType === RelationTypes.HAS_MANY) { |
|
|
|
const title = getUniqueColumnAliasName( |
|
|
|
const title = getUniqueColumnAliasName( |
|
|
|
childModel.columns, |
|
|
|
childModel.columns, |
|
|
|
`${childModel.title || childModel.table_name} List`, |
|
|
|
pluralize(childModel.title || childModel.table_name), |
|
|
|
); |
|
|
|
); |
|
|
|
await Column.insert<LinkToAnotherRecordColumn>({ |
|
|
|
await Column.insert<LinkToAnotherRecordColumn>({ |
|
|
|
uidt: UITypes.Links, |
|
|
|
uidt: UITypes.Links, |
|
|
@ -945,7 +945,7 @@ export class MetaDiffsService { |
|
|
|
} else if (change.relationType === RelationTypes.HAS_MANY) { |
|
|
|
} else if (change.relationType === RelationTypes.HAS_MANY) { |
|
|
|
const title = getUniqueColumnAliasName( |
|
|
|
const title = getUniqueColumnAliasName( |
|
|
|
childModel.columns, |
|
|
|
childModel.columns, |
|
|
|
`${childModel.title || childModel.table_name} List`, |
|
|
|
pluralize(childModel.title || childModel.table_name), |
|
|
|
); |
|
|
|
); |
|
|
|
await Column.insert<LinkToAnotherRecordColumn>({ |
|
|
|
await Column.insert<LinkToAnotherRecordColumn>({ |
|
|
|
uidt: UITypes.Links, |
|
|
|
uidt: UITypes.Links, |
|
|
@ -1046,7 +1046,7 @@ export class MetaDiffsService { |
|
|
|
await Column.insert<LinkToAnotherRecordColumn>({ |
|
|
|
await Column.insert<LinkToAnotherRecordColumn>({ |
|
|
|
title: getUniqueColumnAliasName( |
|
|
|
title: getUniqueColumnAliasName( |
|
|
|
modelA.columns, |
|
|
|
modelA.columns, |
|
|
|
`${modelB.title} List`, |
|
|
|
pluralize(modelB.title), |
|
|
|
), |
|
|
|
), |
|
|
|
fk_model_id: modelA.id, |
|
|
|
fk_model_id: modelA.id, |
|
|
|
fk_related_model_id: modelB.id, |
|
|
|
fk_related_model_id: modelB.id, |
|
|
@ -1070,7 +1070,7 @@ export class MetaDiffsService { |
|
|
|
await Column.insert<LinkToAnotherRecordColumn>({ |
|
|
|
await Column.insert<LinkToAnotherRecordColumn>({ |
|
|
|
title: getUniqueColumnAliasName( |
|
|
|
title: getUniqueColumnAliasName( |
|
|
|
modelB.columns, |
|
|
|
modelB.columns, |
|
|
|
`${modelA.title} List`, |
|
|
|
pluralize(modelA.title), |
|
|
|
), |
|
|
|
), |
|
|
|
fk_model_id: modelB.id, |
|
|
|
fk_model_id: modelB.id, |
|
|
|
fk_related_model_id: modelA.id, |
|
|
|
fk_related_model_id: modelA.id, |
|
|
|