0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix: add DB constraints sorting reference (#6838)

This commit is contained in:
Darcy Ye 2024-11-27 19:08:25 +08:00 committed by GitHub
parent e8c71fa913
commit 4945a2709f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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