mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 20:46:01 +00:00
sorting key support, clickhouse recreate table support
This commit is contained in:
@@ -23,6 +23,20 @@ class Dumper extends SqlDumper {
|
||||
renameColumn(column, newcol) {
|
||||
this.putCmd('^alter ^table %f ^rename ^column %i ^to %i', column, column.columnName, newcol);
|
||||
}
|
||||
|
||||
renameTable(obj, newName) {
|
||||
this.putCmd('^rename ^table %f ^to %i', obj, newName);
|
||||
}
|
||||
|
||||
tableOptions(table) {
|
||||
super.tableOptions(table);
|
||||
if (table.sortingKey) {
|
||||
this.put(
|
||||
'&n^order ^by (%,i)',
|
||||
table.sortingKey.columns.map((x) => x.columnName)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Dumper;
|
||||
|
||||
Reference in New Issue
Block a user