28 lines
542 B
PL/PgSQL
28 lines
542 B
PL/PgSQL
-- Verify numerus:contact on pg
|
|
|
|
begin;
|
|
|
|
select contact_id
|
|
, company_id
|
|
, slug
|
|
, business_name
|
|
, vatin
|
|
, trade_name
|
|
, phone
|
|
, email
|
|
, web
|
|
, address
|
|
, city
|
|
, province
|
|
, postal_code
|
|
, country_code
|
|
, tags
|
|
, created_at
|
|
from numerus.contact
|
|
where false;
|
|
|
|
select 1 / count(*) from pg_class where oid = 'numerus.contact'::regclass and relrowsecurity;
|
|
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'numerus.contact'::regclass;
|
|
|
|
rollback;
|