|
@@ 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, |
|
@@ 3107-3116 (lines=10) @@
|
| 3104 |
|
* @param string $patch The name of the patch, like patch-something.sql |
| 3105 |
|
* @return string Full path to patch file |
| 3106 |
|
*/ |
| 3107 |
|
public function patchPath( $patch ) { |
| 3108 |
|
global $IP; |
| 3109 |
|
|
| 3110 |
|
$dbType = $this->getType(); |
| 3111 |
|
if ( file_exists( "$IP/maintenance/$dbType/archives/$patch" ) ) { |
| 3112 |
|
return "$IP/maintenance/$dbType/archives/$patch"; |
| 3113 |
|
} else { |
| 3114 |
|
return "$IP/maintenance/archives/$patch"; |
| 3115 |
|
} |
| 3116 |
|
} |
| 3117 |
|
|
| 3118 |
|
public function setSchemaVars( $vars ) { |
| 3119 |
|
$this->mSchemaVars = $vars; |