Differential D10494 Diff 25264 src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | public function applyPatchSQL($sql) { | ||||
} | } | ||||
} | } | ||||
public function applyPatchPHP($script) { | public function applyPatchPHP($script) { | ||||
$schema_conn = $this->getConn(null); | $schema_conn = $this->getConn(null); | ||||
require_once $script; | require_once $script; | ||||
} | } | ||||
public function isCharacterSetAvailable($character_set) { | |||||
$conn = $this->getConn(null); | |||||
$result = queryfx_one( | |||||
$conn, | |||||
'SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.CHARACTER_SETS | |||||
WHERE CHARACTER_SET_NAME = %s', | |||||
$character_set); | |||||
return (bool)$result; | |||||
} | |||||
} | } |