numerus/verify/expense_payment.sql

14 lines
361 B
PL/PgSQL

-- Verify numerus:expense_payment on pg
begin;
select expense_id
, payment_id
from numerus.expense_payment
where false;
select 1 / count(*) from pg_class where oid = 'numerus.expense_payment'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'numerus.expense_payment'::regclass;
rollback;