r99168 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99167‎ | r99168 | r99169 >
Date:23:22, 6 October 2011
Author:kaldari
Status:ok
Tags:fundraising 
Comment:
follow-up to r99160, correct load order for new db patch - this needs to load after patch-template_log.sql
Modified paths:
  • /trunk/extensions/CentralNotice/CentralNotice.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/CentralNotice.php
@@ -153,8 +153,6 @@
154154 $base . '/patches/patch-template_settings.sql' );
155155 $wgExtNewFields[] = array( 'cn_templates', 'tmp_fundraising',
156156 $base . '/patches/patch-template_fundraising.sql' );
157 - $wgExtNewFields[] = array( 'cn_templates', 'tmp_landingcheck',
158 - $base . '/patches/patch-template_landingcheck.sql' );
159157 $wgExtNewTables[] = array( 'cn_notice_countries',
160158 $base . '/patches/patch-notice_countries.sql' );
161159 $wgExtNewTables[] = array( 'cn_notice_projects',
@@ -163,6 +161,8 @@
164162 $base . '/patches/patch-notice_log.sql' );
165163 $wgExtNewTables[] = array( 'cn_template_log',
166164 $base . '/patches/patch-template_log.sql' );
 165+ $wgExtNewFields[] = array( 'cn_templates', 'tmp_landingcheck',
 166+ $base . '/patches/patch-template_landingcheck.sql' );
167167 }
168168 } else {
169169 if ( $updater->getDB()->getType() == 'mysql' ) {
@@ -176,8 +176,6 @@
177177 $base . '/patches/patch-template_settings.sql', true ) );
178178 $updater->addExtensionUpdate( array( 'addField', 'cn_templates', 'tmp_fundraising',
179179 $base . '/patches/patch-template_fundraising.sql', true ) );
180 - $updater->addExtensionUpdate( array( 'addField', 'cn_templates', 'tmp_landingcheck',
181 - $base . '/patches/patch-template_landingcheck.sql', true ) );
182180 $updater->addExtensionUpdate( array( 'addTable', 'cn_notice_countries',
183181 $base . '/patches/patch-notice_countries.sql', true ) );
184182 $updater->addExtensionUpdate( array( 'addTable', 'cn_notice_projects',
@@ -186,6 +184,8 @@
187185 $base . '/patches/patch-notice_log.sql', true ) );
188186 $updater->addExtensionUpdate( array( 'addTable', 'cn_template_log',
189187 $base . '/patches/patch-template_log.sql', true ) );
 188+ $updater->addExtensionUpdate( array( 'addField', 'cn_templates', 'tmp_landingcheck',
 189+ $base . '/patches/patch-template_landingcheck.sql', true ) );
190190 }
191191 }
192192 return true;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r99160separating fundraising specific features into 2 checkboxes - one for the cook...kaldari22:51, 6 October 2011

Status & tagging log