mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 06:46:00 +00:00
drop column with default works
This commit is contained in:
@@ -65,6 +65,13 @@ class MsSqlDumper extends SqlDumper {
|
||||
super.dropTable(obj, options);
|
||||
}
|
||||
|
||||
dropColumn(column) {
|
||||
if (column.defaultConstraint) {
|
||||
this.putCmd('^alter ^table %f ^drop ^constraint %i', column, column.defaultConstraint);
|
||||
}
|
||||
super.dropColumn(column);
|
||||
}
|
||||
|
||||
dropDefault(col) {
|
||||
if (col.defaultConstraint) {
|
||||
this.putCmd('^alter ^table %f ^drop ^constraint %i', col, col.defaultConstraint);
|
||||
|
||||
Reference in New Issue
Block a user