PK editor iun column editor

This commit is contained in:
Jan Prochazka
2021-06-17 11:13:28 +02:00
parent 17fc6ccc2e
commit b8ccae570e
2 changed files with 2 additions and 9 deletions

View File

@@ -21,6 +21,7 @@ function fillTableExtendedInfo(db: DatabaseInfo): DatabaseInfo {
columns: (obj.columns || []).map(column => ({
pureName: obj.pureName,
schemaName: obj.schemaName,
isPrimaryKey: !!(obj.primaryKey && obj.primaryKey.columns.find(x => x.columnName == column.columnName)),
...column,
})),
primaryKey: obj.primaryKey