Skip to content

Commit

Permalink
Merge pull request #38 from WomenPlusPlus/database_changes
Browse files Browse the repository at this point in the history
add a drop view command
  • Loading branch information
caracfinlay authored Oct 23, 2023
2 parents d944a45 + 5930148 commit bcdae4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions migrations/V25__update_kpi_values_view.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CREATE OR REPLACE VIEW
DROP VIEW if exists public.kpi_values;
CREATE VIEW
public.kpi_values as
select
kpi_value_history_id,
Expand All @@ -22,4 +23,4 @@ from
rank() over(partition by kpi_id, circle_id order by period_date desc, created_at desc) rank
from kpi_values_history)
as sq
where rank = 1
where rank = 1;

0 comments on commit bcdae4e

Please sign in to comment.