diff --git a/resources/sql/patches/20130731.releephrepoid.sql b/resources/sql/patches/20130731.releephrepoid.sql new file mode 100644 index 0000000000..d4220892ec --- /dev/null +++ b/resources/sql/patches/20130731.releephrepoid.sql @@ -0,0 +1,2 @@ +ALTER TABLE {$NAMESPACE}_releeph.releeph_project + DROP repositoryID; diff --git a/src/applications/releeph/controller/project/ReleephProjectCreateController.php b/src/applications/releeph/controller/project/ReleephProjectCreateController.php index d478aebe6c..cc423dda65 100644 --- a/src/applications/releeph/controller/project/ReleephProjectCreateController.php +++ b/src/applications/releeph/controller/project/ReleephProjectCreateController.php @@ -34,7 +34,6 @@ final class ReleephProjectCreateController extends ReleephProjectController { $releeph_project = id(new ReleephProject()) ->setName($name) ->setTrunkBranch($trunk_branch) - ->setRepositoryID($pr_repository->getID()) ->setRepositoryPHID($pr_repository->getPHID()) ->setArcanistProjectID($arc_project->getID()) ->setCreatedByUserPHID($request->getUser()->getPHID()) diff --git a/src/applications/releeph/storage/ReleephProject.php b/src/applications/releeph/storage/ReleephProject.php index 7d9c238e89..e961f9cd88 100644 --- a/src/applications/releeph/storage/ReleephProject.php +++ b/src/applications/releeph/storage/ReleephProject.php @@ -18,7 +18,6 @@ final class ReleephProject extends ReleephDAO // been picked and which haven't. protected $trunkBranch; - protected $repositoryID; protected $repositoryPHID; protected $isActive; protected $createdByUserPHID; diff --git a/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php b/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php index 6fa1500047..6c3441cbe6 100644 --- a/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php +++ b/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php @@ -1535,6 +1535,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList { 'type' => 'sql', 'name' => $this->getPatchPath('20130802.heraldxactions.sql'), ), + '20130731.releephrepoid.sql' => array( + 'type' => 'sql', + 'name' => $this->getPatchPath('20130731.releephrepoid.sql'), + ), ); } }