From 634fe1812709503b86558fbdf5a1e8de65e170ae Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Wed, 6 Nov 2024 12:01:43 +0100 Subject: [PATCH] db diff fix --- integration-tests/engines.js | 4 ++-- packages/tools/src/diffTools.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/integration-tests/engines.js b/integration-tests/engines.js index 011af637..eb14d8c4 100644 --- a/integration-tests/engines.js +++ b/integration-tests/engines.js @@ -188,8 +188,8 @@ const filterLocal = [ // filter local testing '-MySQL', '-MariaDB', - '-PostgreSQL', - 'SQL Server', + 'PostgreSQL', + '-SQL Server', '-SQLite', '-CockroachDB', '-ClickHouse', diff --git a/packages/tools/src/diffTools.ts b/packages/tools/src/diffTools.ts index 7b301ea5..73911720 100644 --- a/packages/tools/src/diffTools.ts +++ b/packages/tools/src/diffTools.ts @@ -358,6 +358,7 @@ function testEqualColumnRefs(a: ColumnReference[], b: ColumnReference[], opts: D if (!testEqualNames(a[i].columnName, b[i].columnName, opts)) return false; if (!testEqualNames(a[i].refColumnName, b[i].refColumnName, opts)) return false; } + return true; } function testEqualPrimaryKeys(a: PrimaryKeyInfo, b: PrimaryKeyInfo, opts: DbDiffOptions) {