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 */ `