From b77dc05d2feb12fce1cc707d2d9bbcb5cb567df9 Mon Sep 17 00:00:00 2001 From: sisiphos3 Date: Thu, 26 Oct 2023 12:02:56 +0200 Subject: [PATCH] change drop in V27 --- migrations/V27__view_period_standardised_groupedbyyear.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/migrations/V27__view_period_standardised_groupedbyyear.sql b/migrations/V27__view_period_standardised_groupedbyyear.sql index 518cdbc..08551e0 100644 --- a/migrations/V27__view_period_standardised_groupedbyyear.sql +++ b/migrations/V27__view_period_standardised_groupedbyyear.sql @@ -1,5 +1,4 @@ --- test comment -DROP VIEW if exists public.kpi_values_period_standardized; +CREATE or REPLACE VIEW as select *, Case when target_value > 0 then ROUND(cumulative_value/target_value*100, 0) else null end as target_fulfilled FROM