-- Verify numerus:invoice_contact_id_fkey.sql on pg begin; select 1/count(*) from pg_catalog.pg_constraint where conrelid = 'numerus.invoice'::regclass and contype = 'f' and conname = 'invoice_contact_id_fkey' and pg_catalog.pg_get_constraintdef(oid, true) = 'FOREIGN KEY (contact_id) REFERENCES numerus.contact_tax_details(contact_id)' ; rollback;