mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 04:20:55 +01:00
Minor, use the same connection throughout applyPatchSQL() -- previously we hit caches, but no longer after D2342.
This commit is contained in:
parent
a10b91a6a9
commit
307ad51404
1 changed files with 3 additions and 1 deletions
|
@ -176,10 +176,12 @@ final class PhabricatorStorageManagementAPI {
|
|||
$queries = preg_split('/;\s+/', $sql);
|
||||
$queries = array_filter($queries);
|
||||
|
||||
$conn = $this->getConn('meta_data', $select_database = false);
|
||||
|
||||
foreach ($queries as $query) {
|
||||
$query = str_replace('{$NAMESPACE}', $this->namespace, $query);
|
||||
queryfx(
|
||||
$this->getConn('meta_data', $select_database = false),
|
||||
$conn,
|
||||
'%Q',
|
||||
$query);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue