mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 13:05:58 +00:00
fix
This commit is contained in:
@@ -732,7 +732,7 @@ export class SqlDumper implements AlterProcessor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fillNewNotNullDefaults(col: ColumnInfo) {
|
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);
|
this.putCmd('^update %f ^set %i = %s ^where %i ^is ^null', col, col.columnName, col.defaultValue, col.columnName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user