tangled
alpha
login
or
join now
recaptime.dev
/
phorge
2
fork
atom
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
2
fork
atom
overview
issues
pulls
pipelines
Allow using StorageFixtureScopeGuard on Windows
Jakub Vrana
13 years ago
01de3dff
60466d3b
+4
-4
2 changed files
expand all
collapse all
unified
split
resources
sql
patches
draft-metadata.sql
src
infrastructure
testing
fixture
PhabricatorStorageFixtureScopeGuard.php
+1
-1
resources/sql/patches/draft-metadata.sql
reviewed
···
1
1
ALTER TABLE `{$NAMESPACE}_draft`.`draft`
2
2
-
ADD `metadata` longtext NOT NULL DEFAULT '' AFTER `draft`;
2
2
+
ADD `metadata` longtext AFTER `draft`;
3
3
4
4
UPDATE `{$NAMESPACE}_draft`.`draft` SET `metadata` = '[]';
+3
-3
src/infrastructure/testing/fixture/PhabricatorStorageFixtureScopeGuard.php
reviewed
···
27
27
$this->name = $name;
28
28
29
29
execx(
30
30
-
'%s upgrade --force --namespace %s',
30
30
+
'php %s upgrade --force --namespace %s',
31
31
$this->getStorageBinPath(),
32
32
$this->name);
33
33
···
41
41
PhabricatorLiskDAO::popStorageNamespace();
42
42
43
43
execx(
44
44
-
'%s destroy --force --namespace %s',
44
44
+
'php %s destroy --force --namespace %s',
45
45
$this->getStorageBinPath(),
46
46
$this->name);
47
47
}
48
48
49
49
private function getStorageBinPath() {
50
50
$root = dirname(phutil_get_library_root('phabricator'));
51
51
-
return $root.'/bin/storage';
51
51
+
return $root.'/scripts/sql/manage_storage.php';
52
52
}
53
53
54
54
}