fix flyway
This commit is contained in:
@@ -4,7 +4,10 @@
|
||||
-- Repeatable migration
|
||||
-- =============================================================
|
||||
|
||||
CREATE OR REPLACE VIEW ems.vw_latest_inverter AS
|
||||
-- security_invoker = false: oprávnění na podkladové hypertably nemusí mít ems_anon (PostgREST).
|
||||
CREATE OR REPLACE VIEW ems.vw_latest_inverter
|
||||
WITH (security_invoker = false)
|
||||
AS
|
||||
SELECT DISTINCT ON (t.inverter_id)
|
||||
t.site_id,
|
||||
t.inverter_id,
|
||||
@@ -34,7 +37,9 @@ COMMENT ON VIEW ems.vw_latest_inverter IS
|
||||
|
||||
-- ------------------------------------------------------------
|
||||
|
||||
CREATE OR REPLACE VIEW ems.vw_latest_ev_charger AS
|
||||
CREATE OR REPLACE VIEW ems.vw_latest_ev_charger
|
||||
WITH (security_invoker = false)
|
||||
AS
|
||||
SELECT DISTINCT ON (t.charger_id, t.connector_id)
|
||||
t.site_id,
|
||||
t.charger_id,
|
||||
@@ -57,7 +62,9 @@ COMMENT ON VIEW ems.vw_latest_ev_charger IS
|
||||
|
||||
-- ------------------------------------------------------------
|
||||
|
||||
CREATE OR REPLACE VIEW ems.vw_latest_heat_pump AS
|
||||
CREATE OR REPLACE VIEW ems.vw_latest_heat_pump
|
||||
WITH (security_invoker = false)
|
||||
AS
|
||||
SELECT DISTINCT ON (t.heat_pump_id)
|
||||
t.site_id,
|
||||
t.heat_pump_id,
|
||||
|
||||
Reference in New Issue
Block a user