mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 17:24:00 +00:00
#968 mysql table comment fix
This commit is contained in:
@@ -171,6 +171,7 @@ class Analyser extends DatabaseAnalyser {
|
|||||||
tables: tables.rows.map(table => ({
|
tables: tables.rows.map(table => ({
|
||||||
...table,
|
...table,
|
||||||
objectId: table.pureName,
|
objectId: table.pureName,
|
||||||
|
objectComment: _.isString(table.objectComment) ? table.objectComment : undefined,
|
||||||
contentHash: _.isDate(table.modifyDate) ? table.modifyDate.toISOString() : table.modifyDate,
|
contentHash: _.isDate(table.modifyDate) ? table.modifyDate.toISOString() : table.modifyDate,
|
||||||
columns: columns.rows.filter(col => col.pureName == table.pureName).map(x => getColumnInfo(x, this.driver)),
|
columns: columns.rows.filter(col => col.pureName == table.pureName).map(x => getColumnInfo(x, this.driver)),
|
||||||
primaryKey: DatabaseAnalyser.extractPrimaryKeys(table, pkColumns.rows),
|
primaryKey: DatabaseAnalyser.extractPrimaryKeys(table, pkColumns.rows),
|
||||||
|
|||||||
Reference in New Issue
Block a user