Skip to content

Commit

Permalink
remove transaction wrapper for proc sched migrations
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
skovati committed Jul 9, 2024
1 parent 1d2d7a2 commit 4afec84
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -42,5 +37,3 @@ alter table scheduler.scheduling_goal_definition
drop type scheduler.goal_type;

call migrations.mark_migration_rolled_back('8');

commit;
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
begin;

create type scheduler.goal_type as enum ('EDSL', 'JAR');

alter table scheduler.scheduling_goal_definition
Expand Down Expand Up @@ -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;

0 comments on commit 4afec84

Please sign in to comment.