mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 17:53:59 +00:00
Merge branch 'master' of https://github.com/dbgate/dbgate
This commit is contained in:
@@ -731,6 +731,12 @@ export class SqlDumper implements AlterProcessor {
|
||||
this.put(formatString, optionValue);
|
||||
}
|
||||
|
||||
fillNewNotNullDefaults(col: ColumnInfo) {
|
||||
if (col.notNull && col.defaultValue != null) {
|
||||
this.putCmd('^update %f ^set %i = %s ^where %i ^is ^null', col, col.columnName, col.defaultValue, col.columnName);
|
||||
}
|
||||
}
|
||||
|
||||
fillPreloadedRows(
|
||||
table: NamedObjectInfo,
|
||||
oldRows: any[],
|
||||
|
||||
@@ -459,7 +459,7 @@ export class AlterPlan {
|
||||
// console.log('*****************RECREATED NEEDED', op, operationType, isAllowed);
|
||||
// console.log(this.dialect);
|
||||
|
||||
if (!this.opts.allowTableRecreate) {
|
||||
if (this.opts.noDropTable && !this.opts.allowTableRecreate) {
|
||||
// skip this operation, as it cannot be achieved
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user