From f6f9b0a61a03bc175747fc10a199d869009f0ded Mon Sep 17 00:00:00 2001 From: "SPRINX0\\prochazka" Date: Mon, 4 Nov 2024 10:14:13 +0100 Subject: [PATCH] fix --- packages/tools/src/diffTools.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/tools/src/diffTools.ts b/packages/tools/src/diffTools.ts index 40410420..dfe10661 100644 --- a/packages/tools/src/diffTools.ts +++ b/packages/tools/src/diffTools.ts @@ -347,7 +347,7 @@ export function testEqualColumns( } function testEqualConstraints(a: ConstraintInfo, b: ConstraintInfo, opts: DbDiffOptions = {}) { - const omitList = []; + const omitList = ['pairingId']; if (opts.ignoreForeignKeyActions) { omitList.push('updateAction'); omitList.push('deleteAction'); @@ -375,7 +375,10 @@ function testEqualConstraints(a: ConstraintInfo, b: ConstraintInfo, opts: DbDiff // console.log('IX2', stableStringify(_omit(b, omitList))); // } - return stableStringify(_omit(a, omitList)) == stableStringify(_omit(b, omitList)); + const aStringified = stableStringify(_omit(a, omitList)); + const bStringified = stableStringify(_omit(b, omitList)); + + return aStringified == bStringified; } export function testEqualTypes(a: ColumnInfo, b: ColumnInfo, opts: DbDiffOptions = {}) {