mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 13:46:00 +00:00
handle sparse, zerofill, unsigned, commant flags
This commit is contained in:
@@ -38,6 +38,22 @@ class Dumper extends SqlDumper {
|
||||
this.endCommand();
|
||||
}
|
||||
|
||||
specialColumnOptions(column) {
|
||||
if (column.isUnsigned) {
|
||||
this.put('^unsigned ');
|
||||
}
|
||||
if (column.isZerofill) {
|
||||
this.put('^zerofill ');
|
||||
}
|
||||
}
|
||||
|
||||
columnDefinition(col, options) {
|
||||
super.columnDefinition(col, options);
|
||||
if (col.columnComment) {
|
||||
this.put(' ^comment %v ', col.columnComment);
|
||||
}
|
||||
}
|
||||
|
||||
renameColumn(column, newcol) {
|
||||
this.changeColumn(
|
||||
column,
|
||||
|
||||
@@ -33,6 +33,8 @@ const dialect = {
|
||||
|
||||
columnProperties: {
|
||||
columnComment: true,
|
||||
isUnsigned: true,
|
||||
isZerofill: true,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user