http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100099
Revision: 100099
Author: awjrichards
Date: 2011-10-17 23:15:24 +0000 (Mon, 17 Oct 2011)
Log Message:
-----------
Adding patch-template_autolink.sql to deployment branch from r99220
Added Paths:
-----------
branches/wmf/1.18wmf1/extensions/CentralNotice/patches/patch-template_autolink.sql
Copied:
branches/wmf/1.18wmf1/extensions/CentralNotice/patches/patch-template_autolink.sql
(from rev 100091,
trunk/extensions/CentralNotice/patches/patch-template_autolink.sql)
===================================================================
---
branches/wmf/1.18wmf1/extensions/CentralNotice/patches/patch-template_autolink.sql
(rev 0)
+++
branches/wmf/1.18wmf1/extensions/CentralNotice/patches/patch-template_autolink.sql
2011-10-17 23:15:24 UTC (rev 100099)
@@ -0,0 +1,11 @@
+-- Update to add a separate flag for automatic link creation
+
+-- Store a flag indicating whether or not this banner uses automatic link
creation
+ALTER TABLE /*$wgDBprefix*/cn_templates ADD `tmp_autolink` bool NOT NULL
DEFAULT 0 AFTER `tmp_fundraising`;
+
+-- Store before and after flag values for logging
+ALTER TABLE /*$wgDBprefix*/cn_template_log ADD `tmplog_begin_autolink` bool
NULL DEFAULT NULL AFTER `tmplog_end_fundraising`;
+ALTER TABLE /*$wgDBprefix*/cn_template_log ADD `tmplog_end_autolink` bool NULL
DEFAULT NULL AFTER `tmplog_begin_autolink`;
+
+-- Add an index for banner names since we sometimes use them for selection
+CREATE INDEX /*i*/tmp_name ON /*$wgDBprefix*/cn_templates (tmp_name);
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs