mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 18:26:00 +00:00
fix(cassandra): check column name correctly
This commit is contained in:
@@ -35,7 +35,7 @@ function getShouldAddUuidPkInfo(tableInfo) {
|
||||
const columnInfo = getColumnInfo(tableInfo, pkColumnName);
|
||||
if (!columnInfo) return { shouldAddUuidPk: false };
|
||||
|
||||
const shouldAddUuidPk = writable.columnNames.every((i) => i !== columnInfo.columnName);
|
||||
const shouldAddUuidPk = tableInfo.columns.every((i) => i.columnName !== columnInfo.columnName);
|
||||
if (!shouldAddUuidPk) return { shouldAddUuidPk };
|
||||
|
||||
return { shouldAddUuidPk, pkColumnName };
|
||||
|
||||
Reference in New Issue
Block a user