fix tests

This commit is contained in:
Jan Prochazka
2025-11-28 11:54:20 +01:00
parent 1df51f9609
commit 25b5341f76

View File

@@ -26,13 +26,13 @@ function pickImportantTableInfo(engine, table) {
.map(props => .map(props =>
_.omitBy(props, (v, k) => k == 'defaultValue' && v == 'NULL' && engine.setNullDefaultInsteadOfDrop) _.omitBy(props, (v, k) => k == 'defaultValue' && v == 'NULL' && engine.setNullDefaultInsteadOfDrop)
), ),
foreignKeys: table.foreignKeys // foreignKeys: table.foreignKeys
.sort((a, b) => a.refTableName.localeCompare(b.refTableName)) // .sort((a, b) => a.refTableName.localeCompare(b.refTableName))
.map(fk => ({ // .map(fk => ({
constraintType: fk.constraintType, // constraintType: fk.constraintType,
refTableName: fk.refTableName, // refTableName: fk.refTableName,
columns: fk.columns.map(col => ({ columnName: col.columnName, refColumnName: col.refColumnName })), // columns: fk.columns.map(col => ({ columnName: col.columnName, refColumnName: col.refColumnName })),
})), // })),
}; };
} }