feat(releases): replay actions (#932)

* feat(releases): replay actions

* feat(releases): replay actions component

* fix: update filter actions

* fix: select filter_id from ras
This commit is contained in:
ze0s 2023-05-15 21:30:04 +02:00 committed by GitHub
parent 97333d334f
commit 6898ad8315
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 752 additions and 189 deletions

View file

@ -271,6 +271,7 @@ CREATE TABLE release_action_status
id SERIAL PRIMARY KEY,
status TEXT,
action TEXT NOT NULL,
action_id INTEGER,
type TEXT NOT NULL,
client TEXT,
filter TEXT,
@ -280,6 +281,7 @@ CREATE TABLE release_action_status
raw TEXT,
log TEXT,
release_id INTEGER NOT NULL,
FOREIGN KEY (action_id) REFERENCES "action"(id),
FOREIGN KEY (release_id) REFERENCES "release"(id) ON DELETE CASCADE,
FOREIGN KEY (filter_id) REFERENCES "filter"(id) ON DELETE SET NULL
);
@ -691,4 +693,10 @@ ADD COLUMN topic text;`,
ALTER TABLE filter
ADD COLUMN use_regex_description BOOLEAN DEFAULT FALSE;`,
`ALTER TABLE release_action_status
ADD action_id INTEGER;
ALTER TABLE release_action_status
ADD CONSTRAINT release_action_status_action_id_fk
FOREIGN KEY (action_id) REFERENCES action;`,
}