numerus/verify/payment_attachment.sql

16 lines
412 B
MySQL
Raw Normal View History

2024-08-11 22:08:18 +00:00
-- Verify numerus:payment_attachment on pg
begin;
select payment_id
, original_filename
, mime_type
, content
from numerus.payment_attachment
where false;
select 1 / count(*) from pg_class where oid = 'numerus.payment_attachment'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'numerus.payment_attachment'::regclass;
rollback;