r53639 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53638‎ | r53639 | r53640 >
Date:06:28, 22 July 2009
Author:aaron
Status:deferred
Tags:
Comment:
Make update.php do initial table creation
Modified paths:
  • /trunk/extensions/ReaderFeedback/ReaderFeedback.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ReaderFeedback/ReaderFeedback.php
@@ -140,5 +140,10 @@
141141 function efReaderFeedbackSchemaUpdates() {
142142 global $wgDBtype, $wgExtNewFields, $wgExtPGNewFields, $wgExtNewIndexes, $wgExtNewTables;
143143 $base = dirname(__FILE__);
 144+ if( $wgDBtype == 'mysql' ) {
 145+ $wgExtNewTables[] = array( 'reader_feedback', "$base/readerfeedback.sql" ); // Initial install tables
 146+ } elseif( $wgDBtype == 'postgres' ) {
 147+ $wgExtNewTables[] = array( 'reader_feedback', "$base/reader_feedback.pg.sql" ); // Initial install tables
 148+ }
144149 return true;
145150 }

Status & tagging log