mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 13:05:58 +00:00
fix: correct implicitNullDeclaration usage in dumper
This commit is contained in:
@@ -265,11 +265,11 @@ export class SqlDumper implements AlterProcessor {
|
|||||||
this.columnDefault(column);
|
this.columnDefault(column);
|
||||||
}
|
}
|
||||||
if (includeNullable && !this.dialect?.specificNullabilityImplementation) {
|
if (includeNullable && !this.dialect?.specificNullabilityImplementation) {
|
||||||
this.put(column.notNull ? '^not ^null' : this.dialect.implicitNullDeclaration ? '^null' : '');
|
this.put(column.notNull ? '^not ^null' : this.dialect.implicitNullDeclaration ? '' : '^null');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (includeNullable && !this.dialect?.specificNullabilityImplementation) {
|
if (includeNullable && !this.dialect?.specificNullabilityImplementation) {
|
||||||
this.put(column.notNull ? '^not ^null' : this.dialect.implicitNullDeclaration ? '^null' : '');
|
this.put(column.notNull ? '^not ^null' : this.dialect.implicitNullDeclaration ? '' : '^null');
|
||||||
}
|
}
|
||||||
if (includeDefault && column.defaultValue?.toString()?.trim()) {
|
if (includeDefault && column.defaultValue?.toString()?.trim()) {
|
||||||
this.columnDefault(column);
|
this.columnDefault(column);
|
||||||
|
|||||||
Reference in New Issue
Block a user