Repo info with task id

Fixes: https://pagure.io/koji/issue/888
This commit is contained in:
Jana Cupova 2021-03-30 13:24:34 +02:00 committed by Tomas Kopecek
parent 1066f8f1ad
commit 6a2c6e7586
9 changed files with 76 additions and 22 deletions

View file

@ -0,0 +1,9 @@
-- upgrade script to migrate the Koji database schema
-- from version 1.24 to 1.25
BEGIN;
ALTER TABLE repo ADD COLUMN task_id INTEGER NULL REFERENCES task(id);
COMMIT;

View file

@ -454,7 +454,8 @@ CREATE TABLE repo (
create_event INTEGER NOT NULL REFERENCES events(id) DEFAULT get_event(),
tag_id INTEGER NOT NULL REFERENCES tag(id),
state INTEGER,
dist BOOLEAN DEFAULT 'false'
dist BOOLEAN DEFAULT 'false',
task_id INTEGER NULL REFERENCES task(id)
) WITHOUT OIDS;
-- external yum repos