#968 mysql table comment fix

This commit is contained in:
SPRINX0\prochazka
2024-12-20 10:47:14 +01:00
parent e1814663cd
commit ee78786974

View File

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