|
@@ 443-451 (lines=9) @@
|
| 440 |
|
* @param string $filename |
| 441 |
|
* @return string |
| 442 |
|
*/ |
| 443 |
|
private function getSqlFilePath( $filename ) { |
| 444 |
|
global $IP; |
| 445 |
|
$dbmsSpecificFilePath = "$IP/maintenance/" . $this->getType() . "/$filename"; |
| 446 |
|
if ( file_exists( $dbmsSpecificFilePath ) ) { |
| 447 |
|
return $dbmsSpecificFilePath; |
| 448 |
|
} else { |
| 449 |
|
return "$IP/maintenance/$filename"; |
| 450 |
|
} |
| 451 |
|
} |
| 452 |
|
|
| 453 |
|
/** |
| 454 |
|
* Return a path to the DBMS-specific schema file, |
|
@@ 3040-3049 (lines=10) @@
|
| 3037 |
|
* @param string $patch The name of the patch, like patch-something.sql |
| 3038 |
|
* @return string Full path to patch file |
| 3039 |
|
*/ |
| 3040 |
|
public function patchPath( $patch ) { |
| 3041 |
|
global $IP; |
| 3042 |
|
|
| 3043 |
|
$dbType = $this->getType(); |
| 3044 |
|
if ( file_exists( "$IP/maintenance/$dbType/archives/$patch" ) ) { |
| 3045 |
|
return "$IP/maintenance/$dbType/archives/$patch"; |
| 3046 |
|
} else { |
| 3047 |
|
return "$IP/maintenance/archives/$patch"; |
| 3048 |
|
} |
| 3049 |
|
} |
| 3050 |
|
|
| 3051 |
|
public function setSchemaVars( $vars ) { |
| 3052 |
|
$this->mSchemaVars = $vars; |