16 lines
412 B
PL/PgSQL
16 lines
412 B
PL/PgSQL
-- Verify numerus:invoice_attachment on pg
|
|
|
|
begin;
|
|
|
|
select invoice_id
|
|
, original_filename
|
|
, mime_type
|
|
, content
|
|
from numerus.invoice_attachment
|
|
where false;
|
|
|
|
select 1 / count(*) from pg_class where oid = 'numerus.invoice_attachment'::regclass and relrowsecurity;
|
|
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'numerus.invoice_attachment'::regclass;
|
|
|
|
rollback;
|