From 4afec8497482d5436032a91c3a6b4974f82eb211 Mon Sep 17 00:00:00 2001 From: "(skovati) Luke" Date: Tue, 9 Jul 2024 12:51:15 -0700 Subject: [PATCH] remove transaction wrapper for proc sched migrations remove `drop trigger` for Hasura added triggers, since they don't work. Instead we rely on `pgcmp` exceptions for these triggers, as we did with Merlin triggers pre DB merge. --- .../migrations/Aerie/8_procedural_scheduling/down.sql | 7 ------- .../hasura/migrations/Aerie/8_procedural_scheduling/up.sql | 4 ---- 2 files changed, 11 deletions(-) diff --git a/deployment/hasura/migrations/Aerie/8_procedural_scheduling/down.sql b/deployment/hasura/migrations/Aerie/8_procedural_scheduling/down.sql index 9b596ac600..9698a13778 100644 --- a/deployment/hasura/migrations/Aerie/8_procedural_scheduling/down.sql +++ b/deployment/hasura/migrations/Aerie/8_procedural_scheduling/down.sql @@ -1,8 +1,3 @@ -begin; - -drop trigger if exists "notify_hasura_refreshSchedulingProcedureParameterTypes_INSERT" on scheduler.scheduling_goal_definition; -drop trigger if exists "notify_hasura_refreshSchedulingProcedureParameterTypes_UPDATE" on scheduler.scheduling_goal_definition; - alter table scheduler.scheduling_goal_analysis_created_activities drop constraint created_activities_primary_key, add constraint created_activities_primary_key @@ -42,5 +37,3 @@ alter table scheduler.scheduling_goal_definition drop type scheduler.goal_type; call migrations.mark_migration_rolled_back('8'); - -commit; diff --git a/deployment/hasura/migrations/Aerie/8_procedural_scheduling/up.sql b/deployment/hasura/migrations/Aerie/8_procedural_scheduling/up.sql index cacfa564af..143a50ed43 100644 --- a/deployment/hasura/migrations/Aerie/8_procedural_scheduling/up.sql +++ b/deployment/hasura/migrations/Aerie/8_procedural_scheduling/up.sql @@ -1,5 +1,3 @@ -begin; - create type scheduler.goal_type as enum ('EDSL', 'JAR'); alter table scheduler.scheduling_goal_definition @@ -59,5 +57,3 @@ alter table scheduler.scheduling_goal_analysis_created_activities primary key (analysis_id, goal_id, goal_revision, goal_invocation_id, activity_id); call migrations.mark_migration_applied('8'); - -commit;