mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 08:43:57 +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);
|
const columnInfo = getColumnInfo(tableInfo, pkColumnName);
|
||||||
if (!columnInfo) return { shouldAddUuidPk: false };
|
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 };
|
if (!shouldAddUuidPk) return { shouldAddUuidPk };
|
||||||
|
|
||||||
return { shouldAddUuidPk, pkColumnName };
|
return { shouldAddUuidPk, pkColumnName };
|
||||||
|
|||||||
Reference in New Issue
Block a user