numerus/verify/invoice.sql

24 lines
512 B
MySQL
Raw Normal View History

2023-02-09 10:42:31 +00:00
-- Verify numerus:invoice on pg
begin;
select invoice_id
, company_id
, slug
, invoice_number
, invoice_date
, contact_id
, invoice_status
, notes
, tags
2023-03-05 17:50:57 +00:00
, payment_method_id
2023-02-09 10:42:31 +00:00
, currency_code
, created_at
from numerus.invoice
where false;
select 1 / count(*) from pg_class where oid = 'numerus.invoice'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'numerus.invoice'::regclass;
rollback;