fix schema.sql introduced by moving owner from tag_packages to another table
related: https://pagure.io/koji/pull-request/1473 fixes: https://pagure.io/koji/issue/956
This commit is contained in:
parent
bf624f5699
commit
417d230277
2 changed files with 2 additions and 3 deletions
|
|
@ -51,7 +51,8 @@ END
|
|||
$BODY$
|
||||
LANGUAGE plpgsql;
|
||||
|
||||
INSERT INTO tag_package_owners (SELECT package_id, tag_id, owner create_event revoke_event creator_id revoker_id active FROM convert_owners());
|
||||
INSERT INTO tag_package_owners (SELECT package_id, tag_id, owner, create_event, revoke_event, creator_id, revoker_id, active FROM convert_owners());
|
||||
DROP INDEX IF EXISTS tag_packages_owner;
|
||||
ALTER TABLE tag_packages DROP COLUMN owner;
|
||||
DROP FUNCTION convert_owners();
|
||||
|
||||
|
|
|
|||
|
|
@ -584,7 +584,6 @@ CREATE INDEX tag_listing_tag_id_key ON tag_listing(tag_id);
|
|||
CREATE TABLE tag_packages (
|
||||
package_id INTEGER NOT NULL REFERENCES package (id),
|
||||
tag_id INTEGER NOT NULL REFERENCES tag (id),
|
||||
owner INTEGER NOT NULL REFERENCES users(id),
|
||||
blocked BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
extra_arches TEXT,
|
||||
-- versioned - see earlier description of versioning
|
||||
|
|
@ -602,7 +601,6 @@ CREATE TABLE tag_packages (
|
|||
CREATE INDEX tag_packages_active_tag_id ON tag_packages(active, tag_id);
|
||||
CREATE INDEX tag_packages_create_event ON tag_packages(create_event);
|
||||
CREATE INDEX tag_packages_revoke_event ON tag_packages(revoke_event);
|
||||
CREATE INDEX tag_packages_owner ON tag_packages(owner);
|
||||
|
||||
CREATE TABLE tag_package_owners (
|
||||
package_id INTEGER NOT NULL REFERENCES package(id),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue