diff --git a/migrations/000.534.sql b/migrations/000.534.sql new file mode 100644 index 0000000..7e69697 --- /dev/null +++ b/migrations/000.534.sql @@ -0,0 +1,15 @@ +DROP VIEW IF EXISTS public.v_funnel_contract_customers; +CREATE OR REPLACE VIEW public.v_funnel_contract_customers + AS + +SELECT contractcustomerid AS id, + companyname, + "delivery-company" AS delivery_companyname, + COALESCE(discount, 0) AS discount_percent, + country, + inserted, + updated + FROM contract_customers + ORDER BY 1; + +GRANT SELECT ON TABLE public.v_funnel_contract_customers TO funnel;