mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 23:53:57 +00:00
fix tests
This commit is contained in:
@@ -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 })),
|
||||||
})),
|
// })),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user