From 4945a2709ff9e7ae010c99dca34d36f0bd24dd5f Mon Sep 17 00:00:00 2001 From: Darcy Ye Date: Wed, 27 Nov 2024 19:08:25 +0800 Subject: [PATCH] fix: add DB constraints sorting reference (#6838) --- .scripts/compare-database.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scripts/compare-database.js b/.scripts/compare-database.js index 31cf2a23e..69f7ab85c 100644 --- a/.scripts/compare-database.js +++ b/.scripts/compare-database.js @@ -57,7 +57,7 @@ const queryDatabaseManifest = async (database) => { inner join pg_catalog.pg_namespace nsp on nsp.oid = connamespace where nsp.nspname = 'public' - order by conname asc, def asc; + order by conname asc, def asc, conrelid::regclass asc; `); const { rows: indexes } = await pool.query(/* sql */ `