summaryrefslogtreecommitdiff
path: root/maintenance/archives/patch-user_token.sql
blob: a3eb0bfdd33b22cbbeb8716dcdc3b0b9e806fda0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- user_token patch
-- 2004-09-23

ALTER TABLE /*$wgDBprefix*/user ADD user_token  binary(32) 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)
);