r50096 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50095‎ | r50096 | r50097 >
Date:06:33, 1 May 2009
Author:aaron
Status:deferred
Tags:
Comment:
Add default tables on update.php
Modified paths:
  • /trunk/extensions/ConfirmAccount/SpecialConfirmAccount.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ConfirmAccount/SpecialConfirmAccount.php
@@ -218,15 +218,19 @@
219219
220220 $base = dirname(__FILE__);
221221 if( $wgDBtype == 'mysql' ) {
 222+ $wgExtNewTables[] = array('account_requests', "$base/confirmaccount.sql" );
 223+
222224 $wgExtNewFields[] = array('account_requests', 'acr_filename',
223225 "$base/archives/patch-acr_filename.sql" );
224 -
 226+
225227 $wgExtNewTables[] = array('account_credentials', "$base/archives/patch-account_credentials.sql" );
226228
227229 $wgExtNewFields[] = array('account_requests', 'acr_areas', "$base/archives/patch-acr_areas.sql" );
228230
229231 $wgExtNewIndexes[] = array('account_requests', 'acr_email', "$base/archives/patch-email-index.sql" );
230232 } else if( $wgDBtype == 'postgres' ) {
 233+ $wgExtNewTables[] = array('account_requests', "$base/confirmaccount.pg.sql" );
 234+
231235 $wgExtPGNewFields[] = array('account_requests', 'acr_held', "TIMESTAMPTZ" );
232236 $wgExtPGNewFields[] = array('account_requests', 'acr_filename', "TEXT" );
233237 $wgExtPGNewFields[] = array('account_requests', 'acr_storage_key', "TEXT" );

Status & tagging log