wiki.techinc.nl/maintenance/archives/patch-user_token.sql

15 lines
362 B
SQL

-- 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)
);