From 9db190c7e736ec8d063187d4241b59feaf7dc2d1 Mon Sep 17 00:00:00 2001
From: Pierre Schmitz <pierre@archlinux.de>
Date: Wed, 22 Jun 2011 11:28:20 +0200
Subject: update to MediaWiki 1.17.0

---
 .../postgres/archives/patch-categorylinks-better-collation.sql    | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 maintenance/postgres/archives/patch-categorylinks-better-collation.sql

(limited to 'maintenance/postgres/archives/patch-categorylinks-better-collation.sql')

diff --git a/maintenance/postgres/archives/patch-categorylinks-better-collation.sql b/maintenance/postgres/archives/patch-categorylinks-better-collation.sql
new file mode 100644
index 00000000..b3fa6346
--- /dev/null
+++ b/maintenance/postgres/archives/patch-categorylinks-better-collation.sql
@@ -0,0 +1,8 @@
+CREATE TYPE link_type AS ENUM ('page', 'subcat', 'file');
+DROP INDEX cl_sortkey;
+ALTER TABLE categorylinks
+	ADD COLUMN cl_sortkey_prefix TEXT NOT NULL DEFAULT '',
+	ADD COLUMN cl_collation SMALLINT NOT NULL DEFAULT 0,
+	ADD COLUMN cl_type link_type NOT NULL DEFAULT 'page';
+CREATE INDEX cl_collation ON categorylinks ( cl_collation );
+CREATE INDEX cl_sortkey ON categorylinks ( cl_to, cl_type, cl_sortkey, cl_from );
-- 
cgit v1.2.3-54-g00ecf

