handle sparse, zerofill, unsigned, commant flags

This commit is contained in:
Jan Prochazka
2022-02-10 13:32:38 +01:00
parent 691bb0af4f
commit 0debe66dd0
11 changed files with 81 additions and 5 deletions

View File

@@ -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,