clickhouse: added specifcNotNull dialect option

This commit is contained in:
Jan Prochazka
2024-09-11 15:41:26 +02:00
parent fb39cd1302
commit f74533b42f
11 changed files with 17 additions and 9 deletions

View File

@@ -246,7 +246,7 @@ export class SqlDumper implements AlterProcessor {
this.putRaw(' ');
this.specialColumnOptions(column);
if (includeNullable) {
if (includeNullable && !this.dialect?.specificNotNull) {
this.put(column.notNull ? '^not ^null' : '^null');
}
if (includeDefault && column.defaultValue?.trim()) {