24 lines
502 B
PL/PgSQL
24 lines
502 B
PL/PgSQL
-- Verify camper:contact on pg
|
|
|
|
begin;
|
|
|
|
select contact_id
|
|
, company_id
|
|
, slug
|
|
, name
|
|
, id_document_type_id
|
|
, id_document_number
|
|
, address
|
|
, city
|
|
, province
|
|
, postal_code
|
|
, country_code
|
|
, created_at
|
|
from camper.contact
|
|
where false;
|
|
|
|
select 1 / count(*) from pg_class where oid = 'camper.contact'::regclass and relrowsecurity;
|
|
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'camper.contact'::regclass;
|
|
|
|
rollback;
|