wiki.techinc.nl/maintenance/archives/patch-ipb_by_text.sql
umherirrender e256c69f9a Remove a bunch of trailing spaces and unneeded newlines
Change-Id: If9fb04f64389b9b40c13f3372ad4792c2e14def0
2012-10-20 13:35:38 +02:00

10 lines
No EOL
310 B
SQL

-- Adding colomn with username of blocker and sets it.
-- Required for crosswiki blocks.
ALTER TABLE /*$wgDBprefix*/ipblocks
ADD ipb_by_text varchar(255) binary NOT NULL default '';
UPDATE /*$wgDBprefix*/ipblocks
JOIN /*$wgDBprefix*/user ON ipb_by = user_id
SET ipb_by_text = user_name
WHERE ipb_by != 0;