numerus/verify/expense_tax.sql

15 lines
357 B
MySQL
Raw Permalink Normal View History

2023-05-01 14:17:36 +00:00
-- Verify numerus:expense_tax on pg
begin;
select expense_id
, tax_id
, tax_rate
from numerus.expense_tax
where false;
select 1 / count(*) from pg_class where oid = 'numerus.expense_tax'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'numerus.expense_tax'::regclass;
rollback;