Browse Source

fix: while deleting foreign key provide constraint name if available

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5933/head
Pranav C 1 year ago
parent
commit
65fef00977
  1. 2
      packages/nocodb/src/version-upgrader/ncXcdbLTARUpgrader.ts

2
packages/nocodb/src/version-upgrader/ncXcdbLTARUpgrader.ts

@ -31,6 +31,7 @@ async function upgradeModelRelations({
rtn: string;
cn: string;
rcn: string;
cstn?: string;
}[];
}) {
// Iterate over each column and upgrade LTAR
@ -74,6 +75,7 @@ async function upgradeModelRelations({
childColumn: relation.cn,
parentTable: relation.rtn,
childTable: relation.tn,
foreignKeyName: relation.cstn,
});
}

Loading…
Cancel
Save