From 3965ba2be384459f61dc1756d4049f1626b4bcbf Mon Sep 17 00:00:00 2001 From: Mike Date: Tue, 30 Jul 2024 18:05:17 -0500 Subject: [PATCH] Fix comment and drop new functions in down migration --- .../migrations/1719872865109_add_work_plan_category/down.sql | 3 +++ .../migrations/1719872865109_add_work_plan_category/up.sql | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/moped-database/migrations/1719872865109_add_work_plan_category/down.sql b/moped-database/migrations/1719872865109_add_work_plan_category/down.sql index 1806491be4..5a0f2e92d8 100644 --- a/moped-database/migrations/1719872865109_add_work_plan_category/down.sql +++ b/moped-database/migrations/1719872865109_add_work_plan_category/down.sql @@ -1,6 +1,9 @@ DROP VIEW IF EXISTS component_arcgis_online_view; DROP VIEW IF EXISTS project_list_view; +DROP FUNCTION IF EXISTS get_project_development_status; +DROP FUNCTION IF EXISTS get_project_development_status_date; + CREATE OR REPLACE VIEW project_list_view AS WITH project_person_list_lookup AS ( SELECT mpp.project_id, diff --git a/moped-database/migrations/1719872865109_add_work_plan_category/up.sql b/moped-database/migrations/1719872865109_add_work_plan_category/up.sql index 52a8fef1df..dc6df428b5 100644 --- a/moped-database/migrations/1719872865109_add_work_plan_category/up.sql +++ b/moped-database/migrations/1719872865109_add_work_plan_category/up.sql @@ -307,7 +307,7 @@ BEGIN END; $function$; --- Create function to determine project development status date and reuse for other date formats in view +-- Create function to determine project development status and reuse for other date formats in view CREATE OR REPLACE FUNCTION public.get_project_development_status(latest_public_meeting_date timestamptz, earliest_active_or_construction_phase_date timestamptz, substantial_completion_date timestamptz, substantial_completion_date_estimated timestamptz, current_phase_simple text) RETURNS text LANGUAGE plpgsql