From dcf235e845788e02f4cb025f9f1300a9d1917456 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Oct 05 2020 08:26:22 +0000 Subject: PR#2523: move migration to correct script Merges #2523 https://pagure.io/koji/pull-request/2523 Fixes: #2521 https://pagure.io/koji/issue/2521 tag_extra schema change in wrong upgrade script --- diff --git a/docs/schema-upgrade-1.22-1.23.sql b/docs/schema-upgrade-1.22-1.23.sql index 8dd2ce9..b79ac29 100644 --- a/docs/schema-upgrade-1.22-1.23.sql +++ b/docs/schema-upgrade-1.22-1.23.sql @@ -6,6 +6,7 @@ BEGIN; CREATE INDEX task_by_no_parent_state_method ON task(parent, state, method) WHERE parent IS NULL; +ALTER TABLE tag_extra ALTER COLUMN value DROP NOT NULL; -- Message queue for the protonmsg plugin CREATE TABLE proton_queue ( diff --git a/docs/schema-upgrade-1.23-1.24.sql b/docs/schema-upgrade-1.23-1.24.sql deleted file mode 100644 index 32fcdc0..0000000 --- a/docs/schema-upgrade-1.23-1.24.sql +++ /dev/null @@ -1,9 +0,0 @@ --- upgrade script to migrate the Koji database schema --- from version 1.23 to 1.24 - - -BEGIN; - -ALTER TABLE tag_extra ALTER COLUMN value DROP NOT NULL; - -COMMIT;