Browse Source

fix: hasmany column naming in metadiff

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2482/head
Pranav C 2 years ago
parent
commit
dd5abf43dc
  1. 2
      packages/nocodb/src/lib/meta/api/metaDiffApis.ts

2
packages/nocodb/src/lib/meta/api/metaDiffApis.ts

@ -686,7 +686,7 @@ export async function metaDiffSync(req, res) {
} else if (change.relationType === RelationTypes.HAS_MANY) {
const title = getUniqueColumnAliasName(
childModel.columns,
`${childModel.title || childModel.table_name}List`
`${childModel.title || childModel.table_name} List`
);
await Column.insert<LinkToAnotherRecordColumn>({
uidt: UITypes.LinkToAnotherRecord,

Loading…
Cancel
Save