@@ -29,6 +29,11 @@ from scheduler.scheduling_request as sr
29
29
where sr .analysis_id = sga .analysis_id
30
30
and sga .goal_id = ssg .goal_id ;
31
31
32
+ -- v3.1.1 migration patch addition
33
+ update scheduler .scheduling_goal_analysis
34
+ set goal_invocation_id = - 1 * goal_id
35
+ where goal_invocation_id is null ;
36
+
32
37
alter table scheduler .scheduling_goal_analysis
33
38
-- explictly set not null before PKing
34
39
alter column goal_invocation_id set not null ,
@@ -53,6 +58,11 @@ from scheduler.scheduling_request as sr
53
58
where sr .analysis_id = sgaca .analysis_id
54
59
and sgaca .goal_id = ssg .goal_id ;
55
60
61
+ -- v3.1.1 migration patch addition
62
+ update scheduler .scheduling_goal_analysis_created_activities
63
+ set goal_invocation_id = - 1 * goal_id
64
+ where goal_invocation_id is null ;
65
+
56
66
alter table scheduler .scheduling_goal_analysis_created_activities
57
67
drop column goal_id,
58
68
drop column goal_revision,
@@ -85,6 +95,11 @@ from scheduler.scheduling_request as sr
85
95
where sr .analysis_id = sgasa .analysis_id
86
96
and sgasa .goal_id = ssg .goal_id ;
87
97
98
+ -- v3.1.1 migration patch addition
99
+ update scheduler .scheduling_goal_analysis_satisfying_activities
100
+ set goal_invocation_id = - 1 * goal_id
101
+ where goal_invocation_id is null ;
102
+
88
103
alter table scheduler .scheduling_goal_analysis_satisfying_activities
89
104
drop column goal_id,
90
105
drop column goal_revision,
0 commit comments