Files
database/migrations/000.443.sql
T
Rikard BartholfandGitHub f10ab67c6c Create view for funnel (#354)
* Create view for funnel

* Cleanup

* Cleanup

* Remove SEK and RUB from list

* Fix migration numbering
2023-10-16 09:29:08 +02:00

11 lines
354 B
SQL

CREATE OR REPLACE VIEW v_funnel_currencies
AS
SELECT iso3char AS iso_code,
ROUND(exchange_rate * 100, 2) exchange_rate,
updated
FROM "i18n-currencies"
WHERE NOT iso3char IN ('SEK', 'RUB');
GRANT SELECT ON TABLE public.v_funnel_currencies TO funnel;
GRANT INSERT, SELECT, UPDATE, DELETE ON TABLE public.v_funnel_currencies TO photowall;