mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 15:03:57 +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),
|
||||||
@@ -246,7 +247,7 @@ class Analyser extends DatabaseAnalyser {
|
|||||||
eventType: row.eventType,
|
eventType: row.eventType,
|
||||||
triggerTiming: row.triggerTiming,
|
triggerTiming: row.triggerTiming,
|
||||||
tableName: row.tableName,
|
tableName: row.tableName,
|
||||||
createSql: `CREATE TRIGGER ${row.triggerName} ${row.triggerTiming} ${row.eventType} ON ${row.tableName} FOR EACH ROW ${row.definition}` ,
|
createSql: `CREATE TRIGGER ${row.triggerName} ${row.triggerTiming} ${row.eventType} ON ${row.tableName} FOR EACH ROW ${row.definition}`,
|
||||||
})),
|
})),
|
||||||
};
|
};
|
||||||
this.feedback({ analysingMessage: null });
|
this.feedback({ analysingMessage: null });
|
||||||
|
|||||||
Reference in New Issue
Block a user