Merge "Fix index in PostgreSQL schema"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 30 Aug 2017 16:54:15 +0000 (16:54 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 30 Aug 2017 16:54:15 +0000 (16:54 +0000)
maintenance/postgres/archives/patch-comment-table.sql
maintenance/postgres/tables.sql

index a84986f..8f2b3f3 100644 (file)
@@ -24,4 +24,4 @@ CREATE TABLE image_comment_temp (
        imgcomment_comment_id INTEGER NOT NULL,
        PRIMARY KEY (imgcomment_name, imgcomment_comment_id)
 );
-CREATE UNIQUE INDEX imgcomment_name ON image_comment_temp (imgcomment_rev);
+CREATE UNIQUE INDEX imgcomment_name ON image_comment_temp (imgcomment_name);
index 3516a3b..c7ace89 100644 (file)
@@ -361,7 +361,7 @@ CREATE TABLE image_comment_temp (
        imgcomment_comment_id INTEGER NOT NULL,
        PRIMARY KEY (imgcomment_name, imgcomment_comment_id)
 );
-CREATE UNIQUE INDEX imgcomment_name ON image_comment_temp (imgcomment_rev);
+CREATE UNIQUE INDEX imgcomment_name ON image_comment_temp (imgcomment_name);
 
 CREATE TABLE oldimage (
   oi_name          TEXT         NOT NULL,