fix flyway
Some checks failed
deploy / deploy (push) Successful in 12s
test / smoke-test (push) Has been cancelled

This commit is contained in:
Dusan Vojacek
2026-04-05 02:57:43 +02:00
parent f9f6681d20
commit a7cff141f7
4 changed files with 30 additions and 18 deletions

View File

@@ -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,