|
|
@ -1553,6 +1553,11 @@ export class ColumnsService { |
|
|
|
|
|
|
|
|
|
|
|
childColumn = await Column.get({ colId: id }); |
|
|
|
childColumn = await Column.get({ colId: id }); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if xcdb base then treat as virtual relation to avoid creating foreign key
|
|
|
|
|
|
|
|
if (param.base.is_meta) { |
|
|
|
|
|
|
|
(param.column as LinkToAnotherColumnReqType).virtual = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// ignore relation creation if virtual
|
|
|
|
// ignore relation creation if virtual
|
|
|
|
if (!(param.column as LinkToAnotherColumnReqType).virtual) { |
|
|
|
if (!(param.column as LinkToAnotherColumnReqType).virtual) { |
|
|
|
foreignKeyName = generateFkName(parent, child); |
|
|
|
foreignKeyName = generateFkName(parent, child); |
|
|
|