fixed clickhouse default value handling

This commit is contained in:
Jan Prochazka
2024-10-29 16:18:57 +01:00
parent d661b9f6a4
commit 3d3aca3290
2 changed files with 4 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ class Analyser extends DatabaseAnalyser {
.filter((col) => col.pureName == table.pureName)
.map((col) => ({
...col,
defaultValue: col.defaultValue ? col.defaultValue : undefined,
...extractDataType(col.dataType),
})),
primaryKey: table.primaryKeyColumns