@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

Remove ReleephProject->repositoryID writes

Summary: Ref T3655. Depends on D6633. This removes the writes and the column.

Test Plan: Created a project, edited a project. Verified the table doesn't have any keys including this column.

Reviewers: btrahan

Reviewed By: btrahan

CC: LegNeato, aran

Maniphest Tasks: T3655

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

+6 -2
+2
resources/sql/patches/20130731.releephrepoid.sql
··· 1 + ALTER TABLE {$NAMESPACE}_releeph.releeph_project 2 + DROP repositoryID;
-1
src/applications/releeph/controller/project/ReleephProjectCreateController.php
··· 34 34 $releeph_project = id(new ReleephProject()) 35 35 ->setName($name) 36 36 ->setTrunkBranch($trunk_branch) 37 - ->setRepositoryID($pr_repository->getID()) 38 37 ->setRepositoryPHID($pr_repository->getPHID()) 39 38 ->setArcanistProjectID($arc_project->getID()) 40 39 ->setCreatedByUserPHID($request->getUser()->getPHID())
-1
src/applications/releeph/storage/ReleephProject.php
··· 18 18 // been picked and which haven't. 19 19 protected $trunkBranch; 20 20 21 - protected $repositoryID; 22 21 protected $repositoryPHID; 23 22 protected $isActive; 24 23 protected $createdByUserPHID;
+4
src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
··· 1535 1535 'type' => 'sql', 1536 1536 'name' => $this->getPatchPath('20130802.heraldxactions.sql'), 1537 1537 ), 1538 + '20130731.releephrepoid.sql' => array( 1539 + 'type' => 'sql', 1540 + 'name' => $this->getPatchPath('20130731.releephrepoid.sql'), 1541 + ), 1538 1542 ); 1539 1543 } 1540 1544 }