numerus/verify/contact.sql

28 lines
542 B
MySQL
Raw Permalink Normal View History

-- 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;