From: Greg Sabino Mullane Date: Wed, 27 Sep 2006 12:18:52 +0000 (+0000) Subject: Swap index order. X-Git-Tag: 1.31.0-rc.0~55709 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%22%20.%20generer_url_entite%28%24id_rubrique%2C?a=commitdiff_plain;h=b0b9ee5487835486f00c6569393e88b602e36556;p=lhc%2Fweb%2Fwiklou.git Swap index order. --- diff --git a/maintenance/postgres/tables.sql b/maintenance/postgres/tables.sql index 76073bb9a9..5c96038ed5 100644 --- a/maintenance/postgres/tables.sql +++ b/maintenance/postgres/tables.sql @@ -142,7 +142,7 @@ CREATE TABLE pagelinks ( pl_namespace SMALLINT NOT NULL, pl_title TEXT NOT NULL ); -CREATE UNIQUE INDEX pagelink_unique ON pagelinks (pl_namespace,pl_title,pl_from); +CREATE UNIQUE INDEX pagelink_unique ON pagelinks (pl_from,pl_namespace,pl_title); CREATE TABLE templatelinks ( tl_from INTEGER NOT NULL REFERENCES page(page_id) ON DELETE CASCADE,