Browse Source

fix: create links as counterpart on bt creation

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/6953/head
mertmit 1 year ago
parent
commit
bdd32af8a1
  1. 4
      packages/nocodb/src/services/columns.service.ts

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

@ -1837,7 +1837,9 @@ export class ColumnsService {
id: param.source.base_id, id: param.source.base_id,
}), }),
); );
const isLinks = param.column.uidt === UITypes.Links; const isLinks =
param.column.uidt === UITypes.Links ||
(param.column as LinkToAnotherColumnReqType).type === 'bt';
// if xcdb base then treat as virtual relation to avoid creating foreign key // if xcdb base then treat as virtual relation to avoid creating foreign key
if (param.source.isMeta()) { if (param.source.isMeta()) {

Loading…
Cancel
Save