From: Brad Jorsch Date: Wed, 30 Aug 2017 16:27:33 +0000 (-0400) Subject: Fix index in PostgreSQL schema X-Git-Tag: 1.31.0-rc.0~2260^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=08a09b77d5a6af7cff99cfed9330376789c9a5ca;p=lhc%2Fweb%2Fwiklou.git Fix index in PostgreSQL schema Followup to Ic3a434c06 Change-Id: I68966726f91b1854e845b2a0757b599644749b4f --- diff --git a/maintenance/postgres/archives/patch-comment-table.sql b/maintenance/postgres/archives/patch-comment-table.sql index a84986fb1c..8f2b3f32ae 100644 --- a/maintenance/postgres/archives/patch-comment-table.sql +++ b/maintenance/postgres/archives/patch-comment-table.sql @@ -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); diff --git a/maintenance/postgres/tables.sql b/maintenance/postgres/tables.sql index 3516a3be2b..c7ace89c9e 100644 --- a/maintenance/postgres/tables.sql +++ b/maintenance/postgres/tables.sql @@ -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,