Browse Source

fix: create rollup(Links) based on uidt

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5848/head
Pranav C 2 years ago
parent
commit
a6308ef3fa
  1. 20
      packages/nocodb/src/services/columns.service.ts

20
packages/nocodb/src/services/columns.service.ts

@ -1832,15 +1832,17 @@ export class ColumnsService {
virtual: (param.column as LinkToAnotherColumnReqType).virtual,
});
await populateRollupForLTAR({
column: col1,
// columnMeta: param.column['meta'],
});
await populateRollupForLTAR({
column: col2,
columnMeta: param.column['meta'],
alias: param.column.title,
});
if (isLinks) {
await populateRollupForLTAR({
column: col1,
// columnMeta: param.column['meta'],
});
await populateRollupForLTAR({
column: col2,
columnMeta: param.column['meta'],
alias: param.column.title,
});
}
// todo: create index for virtual relations as well
// create index for foreign key in pg

Loading…
Cancel
Save