Index: branches/new-installer/phase3/includes/db/SchemaBuilder.php |
— | — | @@ -57,7 +57,7 @@ |
58 | 58 | private final function __construct( $schema ) { |
59 | 59 | wfRunHooks( 'LoadExtensionSchemaUpdates', array( $this ) ); |
60 | 60 | $this->tables = $schema; |
61 | | - $this->addDatabaseSpecificTables(); |
| 61 | + $this->adjustTablesForDatabase(); |
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
— | — | @@ -157,10 +157,10 @@ |
158 | 158 | abstract protected function updateTable( $name, $definition, $db ); |
159 | 159 | |
160 | 160 | /** |
161 | | - * Adds database-specific tables to the in-class list. |
| 161 | + * Makes database-specific changes to the schema. No-op by default. |
162 | 162 | * @return Nothing |
163 | 163 | */ |
164 | | - abstract protected function addDatabaseSpecificTables(); |
| 164 | + protected function adjustTablesForDatabase() {} |
165 | 165 | } |
166 | 166 | |
167 | 167 | class MysqlSchema extends SchemaBuilder { |
— | — | @@ -169,7 +169,7 @@ |
170 | 170 | return 'mysql'; |
171 | 171 | } |
172 | 172 | |
173 | | - protected function addDatabaseSpecificTables() { |
| 173 | + protected function adjustTablesForDatabase() { |
174 | 174 | $this->tables['searchindex'] = array( |
175 | 175 | 'prefix' => 'si', |
176 | 176 | 'fields' => array( |
— | — | @@ -383,7 +383,7 @@ |
384 | 384 | /** |
385 | 385 | * @todo: update updatelog with fts3 |
386 | 386 | */ |
387 | | - protected function addDatabaseSpecificTables() { |
| 387 | + protected function adjustTablesForDatabase() { |
388 | 388 | $tmpFile = tempnam( sys_get_temp_dir(), 'mw' ); |
389 | 389 | $db = new DatabaseSqliteStandalone( $tmpFile ); |
390 | 390 | if ( $db->getFulltextSearchModule() == 'FTS3' ) { |