@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

Rename XHPAST database

Summary: Rename the XHPAST database from `{$NAMESPACE}_xpastview` to `{$NAMESPACE}_xhpast`.

Test Plan: Ran `./bin/storage --namespace test upgrade --no-quickstart`.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D14442

+22 -16
+2
resources/sql/autopatches/20151109.xhpast.db.1.sql
··· 1 + RENAME TABLE {$NAMESPACE}_xhpastview.xhpastview_parsetree 2 + TO {$NAMESPACE}_xhpast.xhpast_parsetree;
+1
resources/sql/autopatches/20151109.xhpast.db.2.sql
··· 1 + DROP DATABASE {$NAMESPACE}_xhpastview;
+4 -4
src/__phutil_library_map__.php
··· 3245 3245 'PhabricatorWorkingCopyDiscoveryTestCase' => 'applications/repository/engine/__tests__/PhabricatorWorkingCopyDiscoveryTestCase.php', 3246 3246 'PhabricatorWorkingCopyPullTestCase' => 'applications/repository/engine/__tests__/PhabricatorWorkingCopyPullTestCase.php', 3247 3247 'PhabricatorWorkingCopyTestCase' => 'applications/repository/engine/__tests__/PhabricatorWorkingCopyTestCase.php', 3248 + 'PhabricatorXHPASTDAO' => 'applications/phpast/storage/PhabricatorXHPASTDAO.php', 3249 + 'PhabricatorXHPASTParseTree' => 'applications/phpast/storage/PhabricatorXHPASTParseTree.php', 3248 3250 'PhabricatorXHPASTViewController' => 'applications/phpast/controller/PhabricatorXHPASTViewController.php', 3249 - 'PhabricatorXHPASTViewDAO' => 'applications/phpast/storage/PhabricatorXHPASTViewDAO.php', 3250 3251 'PhabricatorXHPASTViewFrameController' => 'applications/phpast/controller/PhabricatorXHPASTViewFrameController.php', 3251 3252 'PhabricatorXHPASTViewFramesetController' => 'applications/phpast/controller/PhabricatorXHPASTViewFramesetController.php', 3252 3253 'PhabricatorXHPASTViewInputController' => 'applications/phpast/controller/PhabricatorXHPASTViewInputController.php', 3253 3254 'PhabricatorXHPASTViewPanelController' => 'applications/phpast/controller/PhabricatorXHPASTViewPanelController.php', 3254 - 'PhabricatorXHPASTViewParseTree' => 'applications/phpast/storage/PhabricatorXHPASTViewParseTree.php', 3255 3255 'PhabricatorXHPASTViewRunController' => 'applications/phpast/controller/PhabricatorXHPASTViewRunController.php', 3256 3256 'PhabricatorXHPASTViewStreamController' => 'applications/phpast/controller/PhabricatorXHPASTViewStreamController.php', 3257 3257 'PhabricatorXHPASTViewTreeController' => 'applications/phpast/controller/PhabricatorXHPASTViewTreeController.php', ··· 7534 7534 'PhabricatorWorkingCopyDiscoveryTestCase' => 'PhabricatorWorkingCopyTestCase', 7535 7535 'PhabricatorWorkingCopyPullTestCase' => 'PhabricatorWorkingCopyTestCase', 7536 7536 'PhabricatorWorkingCopyTestCase' => 'PhabricatorTestCase', 7537 + 'PhabricatorXHPASTDAO' => 'PhabricatorLiskDAO', 7538 + 'PhabricatorXHPASTParseTree' => 'PhabricatorXHPASTDAO', 7537 7539 'PhabricatorXHPASTViewController' => 'PhabricatorController', 7538 - 'PhabricatorXHPASTViewDAO' => 'PhabricatorLiskDAO', 7539 7540 'PhabricatorXHPASTViewFrameController' => 'PhabricatorXHPASTViewController', 7540 7541 'PhabricatorXHPASTViewFramesetController' => 'PhabricatorXHPASTViewController', 7541 7542 'PhabricatorXHPASTViewInputController' => 'PhabricatorXHPASTViewPanelController', 7542 7543 'PhabricatorXHPASTViewPanelController' => 'PhabricatorXHPASTViewController', 7543 - 'PhabricatorXHPASTViewParseTree' => 'PhabricatorXHPASTViewDAO', 7544 7544 'PhabricatorXHPASTViewRunController' => 'PhabricatorXHPASTViewController', 7545 7545 'PhabricatorXHPASTViewStreamController' => 'PhabricatorXHPASTViewPanelController', 7546 7546 'PhabricatorXHPASTViewTreeController' => 'PhabricatorXHPASTViewPanelController',
+1 -1
src/applications/phpast/controller/PhabricatorXHPASTViewPanelController.php
··· 12 12 13 13 public function willProcessRequest(array $data) { 14 14 $this->id = $data['id']; 15 - $this->storageTree = id(new PhabricatorXHPASTViewParseTree()) 15 + $this->storageTree = id(new PhabricatorXHPASTParseTree()) 16 16 ->load($this->id); 17 17 18 18 if (!$this->storageTree) {
+1 -1
src/applications/phpast/controller/PhabricatorXHPASTViewRunController.php
··· 21 21 22 22 list($err, $stdout, $stderr) = $resolved; 23 23 24 - $storage_tree = id(new PhabricatorXHPASTViewParseTree()) 24 + $storage_tree = id(new PhabricatorXHPASTParseTree()) 25 25 ->setInput($source) 26 26 ->setReturnCode($err) 27 27 ->setStdout($stdout)
+8
src/applications/phpast/storage/PhabricatorXHPASTDAO.php
··· 1 + <?php 2 + 3 + abstract class PhabricatorXHPASTDAO extends PhabricatorLiskDAO { 4 + 5 + public function getApplicationName() { 6 + return 'xhpast'; 7 + } 8 + }
-8
src/applications/phpast/storage/PhabricatorXHPASTViewDAO.php
··· 1 - <?php 2 - 3 - abstract class PhabricatorXHPASTViewDAO extends PhabricatorLiskDAO { 4 - 5 - public function getApplicationName() { 6 - return 'xhpastview'; 7 - } 8 - }
+1 -1
src/applications/phpast/storage/PhabricatorXHPASTViewParseTree.php src/applications/phpast/storage/PhabricatorXHPASTParseTree.php
··· 1 1 <?php 2 2 3 - final class PhabricatorXHPASTViewParseTree extends PhabricatorXHPASTViewDAO { 3 + final class PhabricatorXHPASTParseTree extends PhabricatorXHPASTDAO { 4 4 5 5 protected $authorPHID; 6 6 protected $input;
+4 -1
src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
··· 79 79 ), 80 80 'db.user' => array(), 81 81 'db.worker' => array(), 82 - 'db.xhpastview' => array(), 82 + 'db.xhpast' => array(), 83 + 'db.xhpastview' => array( 84 + 'dead' => true, 85 + ), 83 86 'db.cache' => array(), 84 87 'db.fact' => array(), 85 88 'db.ponder' => array(),