This commit is contained in:
Jan Prochazka
2024-11-18 13:47:23 +01:00
parent 1ce8f6bd1f
commit 71a9d6c5c0

View File

@@ -732,7 +732,7 @@ export class SqlDumper implements AlterProcessor {
}
fillNewNotNullDefaults(col: ColumnInfo) {
if (col.notNull && col.defaultValue) {
if (col.notNull && col.defaultValue != null) {
this.putCmd('^update %f ^set %i = %s ^where %i ^is ^null', col, col.columnName, col.defaultValue, col.columnName);
}
}