Index: branches/new-installer/phase3/includes/installer/MysqlInstaller.php |
— | — | @@ -385,7 +385,18 @@ |
386 | 386 | } |
387 | 387 | |
388 | 388 | function createTables() { |
389 | | - |
| 389 | + global $IP; |
| 390 | + $status = $this->getConnection(); |
| 391 | + if ( !$status->isOK() ) { |
| 392 | + return $status; |
| 393 | + } |
| 394 | + $this->db->selectDB( $this->getVar( 'wgDBname' ) ); |
| 395 | + if ( !$this->db->sourceFile( "$IP/maintenance/tables.sql" ) |
| 396 | + || !$this->db->sourceFile( "$IP/maintenance/interwiki.sql" ) ) |
| 397 | + { |
| 398 | + //@todo |
| 399 | + } |
| 400 | + return Status::newGood(); |
390 | 401 | } |
391 | 402 | |
392 | 403 | function getTableOptions() { |
Index: branches/new-installer/phase3/includes/installer/OracleInstaller.php |
— | — | @@ -93,6 +93,8 @@ |
94 | 94 | |
95 | 95 | function setupDatabase() {} |
96 | 96 | |
| 97 | + function createTables() {} |
| 98 | + |
97 | 99 | function getLocalSettings() { |
98 | 100 | $prefix = $this->getVar( 'wgDBprefix' ); |
99 | 101 | return |
Index: branches/new-installer/phase3/includes/installer/PostgresInstaller.php |
— | — | @@ -127,6 +127,9 @@ |
128 | 128 | function setupDatabase() { |
129 | 129 | } |
130 | 130 | |
| 131 | + function createTables() { |
| 132 | + } |
| 133 | + |
131 | 134 | function getLocalSettings() { |
132 | 135 | $port = $this->getVar( 'wgDBport' ); |
133 | 136 | $schema = $this->getVar( 'wgDBmwschema' ); |