diff --git a/resources/sql/patches/20130731.releephproject.sql b/resources/sql/patches/20130731.releephproject.sql new file mode 100644 index 0000000000..a208df452d --- /dev/null +++ b/resources/sql/patches/20130731.releephproject.sql @@ -0,0 +1,2 @@ +ALTER TABLE {$NAMESPACE}_releeph.releeph_project + DROP projectID; diff --git a/src/applications/releeph/controller/project/ReleephProjectEditController.php b/src/applications/releeph/controller/project/ReleephProjectEditController.php index efd07de47d..220bbb37aa 100644 --- a/src/applications/releeph/controller/project/ReleephProjectEditController.php +++ b/src/applications/releeph/controller/project/ReleephProjectEditController.php @@ -13,8 +13,6 @@ final class ReleephProjectEditController extends ReleephProjectController { $project_name = $request->getStr('name', $this->getReleephProject()->getName()); - $phabricator_project_id = $request->getInt('projectID', - $this->getReleephProject()->getProjectID()); $trunk_branch = $request->getStr('trunkBranch', $this->getReleephProject()->getTrunkBranch()); $branch_template = $request->getStr('branchTemplate'); @@ -81,7 +79,6 @@ final class ReleephProjectEditController extends ReleephProjectController { } $project = $this->getReleephProject() - ->setProjectID($phabricator_project_id) ->setTrunkBranch($trunk_branch) ->setDetail('pushers', $pusher_phids) ->setDetail('pick_failure_instructions', $pick_failure_instructions) @@ -173,12 +170,6 @@ final class ReleephProjectEditController extends ReleephProjectController { ->setLabel(pht('Releeph Project PHID')) ->setValue( $this->getReleephProject()->getPHID())) - ->appendChild( - id(new AphrontFormSelectControl()) - ->setLabel(pht('Phabricator Project')) - ->setValue($phabricator_project_id) - ->setName('projectID') - ->setOptions($projects)) ->appendChild( id(new AphrontFormTextControl()) ->setLabel(pht('Trunk')) diff --git a/src/applications/releeph/storage/ReleephProject.php b/src/applications/releeph/storage/ReleephProject.php index e961f9cd88..5568fb905e 100644 --- a/src/applications/releeph/storage/ReleephProject.php +++ b/src/applications/releeph/storage/ReleephProject.php @@ -22,7 +22,6 @@ final class ReleephProject extends ReleephDAO protected $isActive; protected $createdByUserPHID; protected $arcanistProjectID; - protected $projectID; protected $details = array(); @@ -76,13 +75,6 @@ final class ReleephProject extends ReleephDAO } } - public function loadPhabricatorProject() { - if ($id = $this->getProjectID()) { - return id(new PhabricatorProject())->load($id); - } - return id(new PhabricatorProject())->makeEphemeral(); // dummy - } - public function loadArcanistProject() { return $this->loadOneRelative( new PhabricatorRepositoryArcanistProject(), diff --git a/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php b/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php index 6c3441cbe6..f3ca066322 100644 --- a/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php +++ b/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php @@ -1539,6 +1539,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList { 'type' => 'sql', 'name' => $this->getPatchPath('20130731.releephrepoid.sql'), ), + '20130731.releephproject.sql' => array( + 'type' => 'sql', + 'name' => $this->getPatchPath('20130731.releephproject.sql'), + ), ); } }