From 183851b06bd6c52f3cae5375f433da720d410447 Mon Sep 17 00:00:00 2001
From: Pierre Schmitz <pierre@archlinux.de>
Date: Wed, 11 Oct 2006 18:12:39 +0000
Subject: MediaWiki 1.7.1 wiederhergestellt

---
 maintenance/archives/patch-user_token.sql | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 maintenance/archives/patch-user_token.sql

(limited to 'maintenance/archives/patch-user_token.sql')

diff --git a/maintenance/archives/patch-user_token.sql b/maintenance/archives/patch-user_token.sql
new file mode 100644
index 00000000..797dc98f
--- /dev/null
+++ b/maintenance/archives/patch-user_token.sql
@@ -0,0 +1,15 @@
+-- user_token patch
+-- 2004-09-23
+
+ALTER TABLE /*$wgDBprefix*/user ADD user_token char(32) binary NOT NULL default '';
+
+UPDATE /*$wgDBprefix*/user SET user_token = concat(
+	substring(rand(),3,4),
+	substring(rand(),3,4),
+	substring(rand(),3,4),
+	substring(rand(),3,4),
+	substring(rand(),3,4),
+	substring(rand(),3,4),
+	substring(rand(),3,4),
+	substring(rand(),3,4)
+);
-- 
cgit v1.2.3-54-g00ecf

