mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 16:06:01 +00:00
sorting key support, clickhouse recreate table support
This commit is contained in:
@@ -46,10 +46,10 @@ class Analyser extends DatabaseAnalyser {
|
||||
...extractDataType(col.dataType),
|
||||
})),
|
||||
primaryKey: table.primaryKeyColumns
|
||||
? { columns: (table.primaryKeyColumns || '').split(',').map((columnName) => ({ columnName })) }
|
||||
? { columns: (table.primaryKeyColumns || '').split(',').map((x) => ({ columnName: x.trim() })) }
|
||||
: null,
|
||||
sortingKey: table.sortingKeyColumns
|
||||
? { columns: (table.sortingKeyColumns || '').split(',').map((columnName) => ({ columnName })) }
|
||||
? { columns: (table.sortingKeyColumns || '').split(',').map((x) => ({ columnName: x.trim() })) }
|
||||
: null,
|
||||
foreignKeys: [],
|
||||
})),
|
||||
|
||||
Reference in New Issue
Block a user