23 lines
493 B
PL/PgSQL
23 lines
493 B
PL/PgSQL
-- Verify numerus:payment on pg
|
|
|
|
begin;
|
|
|
|
select payment_id
|
|
, company_id
|
|
, slug
|
|
, description
|
|
, payment_date
|
|
, payment_account_id
|
|
, amount
|
|
, currency_code
|
|
, tags
|
|
, payment_status
|
|
, created_at
|
|
from numerus.payment
|
|
where false;
|
|
|
|
select 1 / count(*) from pg_class where oid = 'numerus.payment'::regclass and relrowsecurity;
|
|
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'numerus.payment'::regclass;
|
|
|
|
rollback;
|