Skip to content

fixes script to migrate comp_tasks table #1357

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

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 @@ -5,6 +5,7 @@ ORDER BY


CREATE TABLE comp_tasks_temp (LIKE comp_tasks INCLUDING ALL);

ALTER TABLE comp_tasks_temp ADD FOREIGN KEY ("project_id") REFERENCES "comp_pipeline" ("project_id");
INSERT INTO comp_tasks_temp
SELECT
Expand All @@ -14,6 +15,8 @@ FROM
ORDER BY
project_id;

ALTER SEQUENCE comp_tasks_task_id_seq OWNED BY comp_tasks_temp.task_id

DROP TABLE comp_tasks;

ALTER TABLE comp_tasks_temp
Expand Down