camper/verify/contact_email.sql
jordi fita mas 17f7520876 Add customer and invoices sections
Copied as much as i could from Numerus, and made as few modifications as
i could to adapt to this code base; it is, quite frankly, a piece of
shit.

We need to be able to create invoices from scratch “just in case”,
apparently, but it is not yet possible to create an invoice from a
booking.
2024-04-28 20:28:45 +02:00

14 lines
344 B
PL/PgSQL

-- Verify camper:contact_email on pg
begin;
select contact_id
, email
from camper.contact_email
where false;
select 1 / count(*) from pg_class where oid = 'camper.contact_email'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'camper.contact_email'::regclass;
rollback;