parent
c44be86c40
commit
d0c1b4d37d
2 changed files with 10 additions and 0 deletions
9
schemas/schema-upgrade-1.34-1.35.sql
Normal file
9
schemas/schema-upgrade-1.34-1.35.sql
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
-- upgrade script to migrate the Koji database schema
|
||||
-- from version 1.33 to 1.34
|
||||
|
||||
BEGIN;
|
||||
|
||||
CREATE INDEX CONCURRENTLY IF NOT EXISTS rpminfo_nvra
|
||||
ON rpminfo(name,version,release,arch,external_repo_id);
|
||||
|
||||
COMMIT;
|
||||
|
|
@ -752,6 +752,7 @@ CREATE TABLE rpminfo (
|
|||
CREATE INDEX rpminfo_build ON rpminfo(build_id);
|
||||
CREATE UNIQUE INDEX rpminfo_unique_nvra_not_draft ON rpminfo(name,version,release,arch,external_repo_id)
|
||||
WHERE draft IS NOT TRUE;
|
||||
CREATE INDEX rpminfo_nvra ON rpminfo(name,version,release,arch,external_repo_id);
|
||||
-- index for default search method for rpms, PG11+ can benefit from new include method
|
||||
DO $$
|
||||
DECLARE version integer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue