-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #3619: Migrate runs to archive table according to user/group co…
…nfiguration - archive run statuses
- Loading branch information
1 parent
410d2f8
commit 011302b
Showing
7 changed files
with
85 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
...src/main/resources/db/migration/v2024.07.31_18.00__issue_3619_migrate_runs_to_archive.sql
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
...src/main/resources/db/migration/v2024.08.08_18.00__issue_3619_migrate_runs_to_archive.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE IF NOT EXISTS pipeline.archive_run (LIKE pipeline.pipeline_run INCLUDING ALL); | ||
CREATE SEQUENCE pipeline.s_archive_run START WITH 1 INCREMENT BY 1; | ||
ALTER TABLE pipeline.archive_run DROP CONSTRAINT archive_run_pkey; | ||
CREATE INDEX archive_run_end_date_idx ON pipeline.archive_run (end_date); | ||
ALTER TABLE pipeline.archive_run ADD COLUMN ID BIGINT NOT NULL PRIMARY KEY DEFAULT NEXTVAL('pipeline.s_archive_run'); | ||
|
||
CREATE TABLE IF NOT EXISTS pipeline.archive_run_status_change (LIKE pipeline.run_status_change INCLUDING ALL); | ||
CREATE SEQUENCE pipeline.s_archive_run_status_change START WITH 1 INCREMENT BY 1; | ||
ALTER TABLE pipeline.archive_run_status_change ADD COLUMN ID BIGINT NOT NULL PRIMARY KEY DEFAULT NEXTVAL('pipeline.s_archive_run_status_change'); | ||
CREATE INDEX archive_run_status_change_run_id_idx ON pipeline.archive_run_status_change (run_id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters