mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 09:36:01 +00:00
option allowEmptyValue flag
This commit is contained in:
@@ -435,7 +435,11 @@ function planChangeTableOptions(plan: AlterPlan, oldTable: TableInfo, newTable:
|
||||
continue;
|
||||
}
|
||||
const name = option.name;
|
||||
if (oldTable[name] != newTable[name] && (oldTable[name] || newTable[name])) {
|
||||
if (
|
||||
oldTable[name] != newTable[name] &&
|
||||
(oldTable[name] || newTable[name]) &&
|
||||
(newTable[name] || option.allowEmptyValue)
|
||||
) {
|
||||
plan.setTableOption(newTable, name, newTable[name]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user