diff --git a/src/infrastructure/setup/storage/management/PhabricatorStorageManagementAPI.php b/src/infrastructure/setup/storage/management/PhabricatorStorageManagementAPI.php index 9d838a546e..d713ab7311 100644 --- a/src/infrastructure/setup/storage/management/PhabricatorStorageManagementAPI.php +++ b/src/infrastructure/setup/storage/management/PhabricatorStorageManagementAPI.php @@ -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); }