Patch itself
authorVictor Vasiliev <vasilievvv@users.mediawiki.org>
Mon, 18 Feb 2008 12:18:28 +0000 (12:18 +0000)
committerVictor Vasiliev <vasilievvv@users.mediawiki.org>
Mon, 18 Feb 2008 12:18:28 +0000 (12:18 +0000)
maintenance/archives/patch-ipb_by_text.sql [new file with mode: 0644]

diff --git a/maintenance/archives/patch-ipb_by_text.sql b/maintenance/archives/patch-ipb_by_text.sql
new file mode 100644 (file)
index 0000000..c0b620d
--- /dev/null
@@ -0,0 +1,10 @@
+-- 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;
\ No newline at end of file