columns compare

This commit is contained in:
Jan Prochazka
2021-10-31 08:24:44 +01:00
parent 36d3fa12f9
commit 5484dc8ace
3 changed files with 42 additions and 3 deletions

View File

@@ -55,8 +55,8 @@ export function computeTableDiffColumns(
opts: DbDiffOptions,
driver: EngineDriver
) {
if (!sourceTable || !sourceTable || !driver) return [];
return computeDiffRowsCore(sourceTable.columns, targetTable.columns, (a, b) =>
if (!driver) return [];
return computeDiffRowsCore(sourceTable?.columns || [], targetTable?.columns || [], (a, b) =>
testEqualColumns(a, b, true, true, opts)
).map(row => ({
...row,