Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -531,11 +531,11 @@ |
532 | 532 | } |
533 | 533 | |
534 | 534 | /** |
535 | | - * Return a path to the DBMS-specific schema, otherwise default to tables.sql |
| 535 | + * Return a path to the DBMS-specific schema file, otherwise default to tables.sql |
536 | 536 | * |
537 | 537 | * @return string |
538 | 538 | */ |
539 | | - public function getSchema() { |
| 539 | + public function getSchemaPath() { |
540 | 540 | global $IP; |
541 | 541 | if ( file_exists( "$IP/maintenance/" . $this->getType() . "/tables.sql" ) ) { |
542 | 542 | return "$IP/maintenance/" . $this->getType() . "/tables.sql"; |
Index: trunk/phase3/includes/installer/Ibm_db2Installer.php |
— | — | @@ -185,7 +185,7 @@ |
186 | 186 | $this->db->setFlag( DBO_DDLMODE ); // For Oracle's handling of schema files |
187 | 187 | $this->db->begin( __METHOD__ ); |
188 | 188 | |
189 | | - $error = $this->db->sourceFile( $this->db->getSchema() ); |
| 189 | + $error = $this->db->sourceFile( $this->db->getSchemaPath() ); |
190 | 190 | if( $error !== true ) { |
191 | 191 | $this->db->reportQueryError( $error, 0, '', __METHOD__ ); |
192 | 192 | $this->db->rollback( __METHOD__ ); |
Index: trunk/phase3/includes/installer/DatabaseInstaller.php |
— | — | @@ -157,7 +157,7 @@ |
158 | 158 | $this->db->setFlag( DBO_DDLMODE ); // For Oracle's handling of schema files |
159 | 159 | $this->db->begin( __METHOD__ ); |
160 | 160 | |
161 | | - $error = $this->db->sourceFile( $this->db->getSchema() ); |
| 161 | + $error = $this->db->sourceFile( $this->db->getSchemaPath() ); |
162 | 162 | if( $error !== true ) { |
163 | 163 | $this->db->reportQueryError( $error, 0, '', __METHOD__ ); |
164 | 164 | $this->db->rollback( __METHOD__ ); |
Index: trunk/phase3/includes/installer/PostgresInstaller.php |
— | — | @@ -543,7 +543,7 @@ |
544 | 544 | $status->fatal( 'config-install-pg-schema-not-exist' ); |
545 | 545 | return $status; |
546 | 546 | } |
547 | | - $error = $conn->sourceFile( $conn->getSchema() ); |
| 547 | + $error = $conn->sourceFile( $conn->getSchemaPath() ); |
548 | 548 | if( $error !== true ) { |
549 | 549 | $conn->reportQueryError( $error, 0, '', __METHOD__ ); |
550 | 550 | $conn->rollback( __METHOD__ ); |