mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 14:46:01 +00:00
mysql change column to not null
This commit is contained in:
@@ -263,7 +263,7 @@ export class SqlDumper implements AlterProcessor {
|
||||
}
|
||||
|
||||
columnDefault(column: ColumnInfo) {
|
||||
if (column.defaultConstraint != null) {
|
||||
if (column.defaultConstraint != null && this.dialect?.namedDefaultConstraint) {
|
||||
this.put(' ^constraint %i ^default %s ', column.defaultConstraint, column.defaultValue);
|
||||
} else {
|
||||
this.put(' ^default %s ', column.defaultValue);
|
||||
|
||||
Reference in New Issue
Block a user