r53321 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53320‎ | r53321 | r53322 >
Date:18:18, 15 July 2009
Author:tparscal
Status:deferred
Tags:
Comment:
Added database schema patch for ois_type field.
Modified paths:
  • /trunk/extensions/UsabilityInitiative/OptIn/OptIn.hooks.php (modified) (history)
  • /trunk/extensions/UsabilityInitiative/OptIn/OptIn.patch.ois_type.sql (added) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/OptIn/OptIn.patch.ois_type.sql
@@ -0,0 +1,5 @@
 2+--
 3+-- Schema patch for OptIn
 4+--
 5+
 6+ALTER TABLE /*_*/optin_survey add column ois_type varchar(16) NOT NULL;
\ No newline at end of file
Index: trunk/extensions/UsabilityInitiative/OptIn/OptIn.hooks.php
@@ -10,12 +10,18 @@
1111
1212 /* Static Functions */
1313 public static function schema() {
14 - global $wgExtNewTables;
 14+ global $wgExtNewTables, $wgExtNewFields;
1515
1616 $wgExtNewTables[] = array(
1717 'optin_survey',
1818 dirname( __FILE__ ) . '/OptIn.sql'
1919 );
 20+ $wgExtNewFields[] = array(
 21+ 'optin_survey',
 22+ 'ois_type',
 23+ dirname( __FILE__ ) . '/OptIn.patch.ois_type.sql'
 24+ );
 25+
2026 return true;
2127 }
2228
@@ -71,4 +77,4 @@
7278 $personal_urls = array_merge( $addLinks, $personal_urls );
7379 return true;
7480 }
75 -}
 81+}
\ No newline at end of file

Status & tagging log