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

@@ -0,0 +1,9 @@
-- vw nad Timescale continuous aggregate: ems_anon potřebuje jen SELECT na view,
-- ne na telemetry_inverter_hourly (vyhneme se GRANTům na CA/hypertably v repeatable).
-- Viz R__vw_latest_telemetry (vw_latest_*) + R__z_postgrest_ems_anon_grants.
ALTER VIEW ems.vw_telemetry_hourly_7d SET (security_invoker = false);
COMMENT ON VIEW ems.vw_telemetry_hourly_7d IS
'Hodinová telemetrie střídače za 7 dní (zdroj: continuous aggregate telemetry_inverter_hourly).
security_invoker=false: čtení přes PostgREST role ems_anon bez GRANT na podkladový CA.';