Forgot to update table sql per bug 10280
authorYuri Astrakhan <yurik@users.mediawiki.org>
Fri, 22 Jun 2007 15:19:55 +0000 (15:19 +0000)
committerYuri Astrakhan <yurik@users.mediawiki.org>
Fri, 22 Jun 2007 15:19:55 +0000 (15:19 +0000)
maintenance/postgres/tables.sql
maintenance/tables.sql

index c6bd87d..5d2868c 100644 (file)
@@ -177,7 +177,7 @@ CREATE TABLE categorylinks (
   cl_timestamp  TIMESTAMPTZ  NOT NULL
 );
 CREATE UNIQUE INDEX cl_from ON categorylinks (cl_from, cl_to);
-CREATE INDEX cl_sortkey     ON categorylinks (cl_to, cl_sortkey);
+CREATE INDEX cl_sortkey     ON categorylinks (cl_to, cl_sortkey, cl_from);
 
 CREATE TABLE externallinks (
   el_from   INTEGER  NOT NULL  REFERENCES page(page_id) ON DELETE CASCADE,
index c326536..02b61a2 100644 (file)
@@ -473,7 +473,7 @@ CREATE TABLE /*$wgDBprefix*/categorylinks (
   UNIQUE KEY cl_from (cl_from,cl_to),
   
   -- We always sort within a given category...
-  KEY cl_sortkey (cl_to,cl_sortkey),
+  KEY cl_sortkey (cl_to,cl_sortkey,cl_from),
   
   -- Not really used?
   KEY cl_timestamp (cl_to,cl_timestamp)