Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Procedural scheduling migration fix patch #1601

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ from scheduler.scheduling_request as sr
where sr.analysis_id = sga.analysis_id
and sga.goal_id = ssg.goal_id;

-- v3.1.1 migration patch addition
update scheduler.scheduling_goal_analysis
set goal_invocation_id = -1 * goal_id
where goal_invocation_id is null;

alter table scheduler.scheduling_goal_analysis
-- explictly set not null before PKing
alter column goal_invocation_id set not null,
Expand All @@ -53,6 +58,11 @@ from scheduler.scheduling_request as sr
where sr.analysis_id = sgaca.analysis_id
and sgaca.goal_id = ssg.goal_id;

-- v3.1.1 migration patch addition
update scheduler.scheduling_goal_analysis_created_activities
set goal_invocation_id = -1 * goal_id
where goal_invocation_id is null;

alter table scheduler.scheduling_goal_analysis_created_activities
drop column goal_id,
drop column goal_revision,
Expand Down Expand Up @@ -85,6 +95,11 @@ from scheduler.scheduling_request as sr
where sr.analysis_id = sgasa.analysis_id
and sgasa.goal_id = ssg.goal_id;

-- v3.1.1 migration patch addition
update scheduler.scheduling_goal_analysis_satisfying_activities
set goal_invocation_id = -1 * goal_id
where goal_invocation_id is null;

alter table scheduler.scheduling_goal_analysis_satisfying_activities
drop column goal_id,
drop column goal_revision,
Expand Down
Loading