PR#4134: indexes for standard_buildroot
Merges #4134 https://pagure.io/koji/pull-request/4134 Fixes: #3963 https://pagure.io/koji/issue/3963 Add indices to standard_buildroot.
This commit is contained in:
commit
d5d3ea7693
2 changed files with 13 additions and 0 deletions
|
|
@ -8,4 +8,11 @@ INSERT INTO archivetypes (name, description, extensions) VALUES ('erofs-compress
|
||||||
INSERT INTO archivetypes (name, description, extensions) VALUES ('squashfs', 'SquashFS image', 'squashfs') ON CONFLICT DO NOTHING;
|
INSERT INTO archivetypes (name, description, extensions) VALUES ('squashfs', 'SquashFS image', 'squashfs') ON CONFLICT DO NOTHING;
|
||||||
INSERT INTO archivetypes (name, description, extensions) VALUES ('squashfs-compressed', 'Compressed SquashFS image', 'squashfs.gz squashfs.xz') ON CONFLICT DO NOTHING;
|
INSERT INTO archivetypes (name, description, extensions) VALUES ('squashfs-compressed', 'Compressed SquashFS image', 'squashfs.gz squashfs.xz') ON CONFLICT DO NOTHING;
|
||||||
|
|
||||||
|
-- https://pagure.io/koji/issue/3963
|
||||||
|
CREATE INDEX IF NOT EXISTS standard_buildroot_host_id on standard_buildroot(host_id);
|
||||||
|
CREATE INDEX IF NOT EXISTS standard_buildroot_repo_id on standard_buildroot(repo_id);
|
||||||
|
CREATE INDEX IF NOT EXISTS standard_buildroot_task_id on standard_buildroot(task_id);
|
||||||
|
CREATE INDEX IF NOT EXISTS standard_buildroot_create_event on standard_buildroot(create_event);
|
||||||
|
CREATE INDEX IF NOT EXISTS standard_buildroot_retire_event on standard_buildroot(retire_event);
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
|
||||||
|
|
@ -626,6 +626,12 @@ CREATE TABLE standard_buildroot (
|
||||||
state INTEGER
|
state INTEGER
|
||||||
) WITHOUT OIDS;
|
) WITHOUT OIDS;
|
||||||
|
|
||||||
|
CREATE INDEX standard_buildroot_host_id on standard_buildroot(host_id);
|
||||||
|
CREATE INDEX standard_buildroot_repo_id on standard_buildroot(repo_id);
|
||||||
|
CREATE INDEX standard_buildroot_task_id on standard_buildroot(task_id);
|
||||||
|
CREATE INDEX standard_buildroot_create_event on standard_buildroot(create_event);
|
||||||
|
CREATE INDEX standard_buildroot_retire_event on standard_buildroot(retire_event);
|
||||||
|
|
||||||
CREATE TABLE buildroot_tools_info (
|
CREATE TABLE buildroot_tools_info (
|
||||||
buildroot_id INTEGER NOT NULL REFERENCES buildroot(id),
|
buildroot_id INTEGER NOT NULL REFERENCES buildroot(id),
|
||||||
tool TEXT NOT NULL,
|
tool TEXT NOT NULL,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue