mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 00:32:42 +01:00
Allow using StorageFixtureScopeGuard on Windows
This commit is contained in:
parent
60466d3bcc
commit
01de3dff81
2 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
ALTER TABLE `{$NAMESPACE}_draft`.`draft`
|
ALTER TABLE `{$NAMESPACE}_draft`.`draft`
|
||||||
ADD `metadata` longtext NOT NULL DEFAULT '' AFTER `draft`;
|
ADD `metadata` longtext AFTER `draft`;
|
||||||
|
|
||||||
UPDATE `{$NAMESPACE}_draft`.`draft` SET `metadata` = '[]';
|
UPDATE `{$NAMESPACE}_draft`.`draft` SET `metadata` = '[]';
|
||||||
|
|
|
@ -27,7 +27,7 @@ final class PhabricatorStorageFixtureScopeGuard {
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
|
|
||||||
execx(
|
execx(
|
||||||
'%s upgrade --force --namespace %s',
|
'php %s upgrade --force --namespace %s',
|
||||||
$this->getStorageBinPath(),
|
$this->getStorageBinPath(),
|
||||||
$this->name);
|
$this->name);
|
||||||
|
|
||||||
|
@ -41,14 +41,14 @@ final class PhabricatorStorageFixtureScopeGuard {
|
||||||
PhabricatorLiskDAO::popStorageNamespace();
|
PhabricatorLiskDAO::popStorageNamespace();
|
||||||
|
|
||||||
execx(
|
execx(
|
||||||
'%s destroy --force --namespace %s',
|
'php %s destroy --force --namespace %s',
|
||||||
$this->getStorageBinPath(),
|
$this->getStorageBinPath(),
|
||||||
$this->name);
|
$this->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getStorageBinPath() {
|
private function getStorageBinPath() {
|
||||||
$root = dirname(phutil_get_library_root('phabricator'));
|
$root = dirname(phutil_get_library_root('phabricator'));
|
||||||
return $root.'/bin/storage';
|
return $root.'/scripts/sql/manage_storage.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue