postgre fix

This commit is contained in:
SPRINX0\prochazka
2024-09-20 15:50:16 +02:00
parent 6882a146e7
commit 02af761bf7

View File

@@ -1,3 +1,5 @@
module.exports = `
select conname as "constraint_name" from pg_constraint where contype = 'u' and connamespace =SCHEMA_NAME_CONDITION
select cnt.conname as "constraint_name" from pg_constraint cnt
inner join pg_namespace c on c.oid = cnt.connamespace
where cnt.contype = 'u' and c.nspname =SCHEMA_NAME_CONDITION
`;