@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

Allow using StorageFixtureScopeGuard on Windows

+4 -4
+1 -1
resources/sql/patches/draft-metadata.sql
··· 1 1 ALTER TABLE `{$NAMESPACE}_draft`.`draft` 2 - ADD `metadata` longtext NOT NULL DEFAULT '' AFTER `draft`; 2 + ADD `metadata` longtext AFTER `draft`; 3 3 4 4 UPDATE `{$NAMESPACE}_draft`.`draft` SET `metadata` = '[]';
+3 -3
src/infrastructure/testing/fixture/PhabricatorStorageFixtureScopeGuard.php
··· 27 27 $this->name = $name; 28 28 29 29 execx( 30 - '%s upgrade --force --namespace %s', 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 - '%s destroy --force --namespace %s', 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 - return $root.'/bin/storage'; 51 + return $root.'/scripts/sql/manage_storage.php'; 52 52 } 53 53 54 54 }