fixed import for clickhouse

This commit is contained in:
Jan Prochazka
2024-09-13 15:47:12 +02:00
parent 89c9d5e792
commit 334440f691
6 changed files with 20 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ class Dumper extends SqlDumper {
}
columnType(dataType) {
this.putRaw(dataType);
this.putRaw(dataType || this.dialect.fallbackDataType);
}
renameColumn(column, newcol) {

View File

@@ -189,6 +189,16 @@ const driver = {
useDatabaseUrl: 1,
};
},
adaptTableInfo(table) {
if (!table.primaryKey && !table.sortingKey) {
return {
...table,
tableEngine: 'Log',
};
}
return table;
},
};
module.exports = driver;