mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 07:56:28 +00:00
Merge branch 'master' of https://github.com/dbgate/dbgate
This commit is contained in:
@@ -275,7 +275,11 @@ export class TableGridDisplay extends GridDisplay {
|
|||||||
const refTableInfo = this.dbinfo.tables.find(
|
const refTableInfo = this.dbinfo.tables.find(
|
||||||
x => x.schemaName == res.foreignKey.refSchemaName && x.pureName == res.foreignKey.refTableName
|
x => x.schemaName == res.foreignKey.refSchemaName && x.pureName == res.foreignKey.refTableName
|
||||||
);
|
);
|
||||||
if (refTableInfo && isTableColumnUnique(refTableInfo, res.foreignKey.columns[0].refColumnName)) {
|
if (
|
||||||
|
refTableInfo &&
|
||||||
|
res.foreignKey.columns.length == 1 &&
|
||||||
|
isTableColumnUnique(refTableInfo, res.foreignKey.columns[0].refColumnName)
|
||||||
|
) {
|
||||||
res.isForeignKeyUnique = true;
|
res.isForeignKeyUnique = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user