18 lines
412 B
PL/PgSQL
18 lines
412 B
PL/PgSQL
-- Verify camper:campsite_type on pg
|
|
|
|
begin;
|
|
|
|
select campsite_type_id
|
|
, company_id
|
|
, slug
|
|
, name
|
|
, description
|
|
, active
|
|
from camper.campsite_type
|
|
where false;
|
|
|
|
select 1 / count(*) from pg_class where oid = 'camper.campsite_type'::regclass and relrowsecurity;
|
|
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'camper.campsite_type'::regclass;
|
|
|
|
rollback;
|