numerus/verify/collection_attachment.sql

16 lines
427 B
MySQL
Raw Permalink Normal View History

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