camper/verify/campsite_feature.sql

20 lines
778 B
MySQL
Raw Permalink Normal View History

-- Verify camper:campsite_feature on pg
begin;
select campsite_feature_id
, campsite_id
, icon_name
, name
, position
from camper.campsite_feature
where false;
select 1 / count(*) from pg_class where oid = 'camper.campsite_feature'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'guest_ok' and polrelid = 'camper.campsite_feature'::regclass;
select 1 / count(*) from pg_policy where polname = 'insert_to_company' and polrelid = 'camper.campsite_feature'::regclass;
select 1 / count(*) from pg_policy where polname = 'update_company' and polrelid = 'camper.campsite_feature'::regclass;
select 1 / count(*) from pg_policy where polname = 'delete_from_company' and polrelid = 'camper.campsite_feature'::regclass;
rollback;