1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

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
This commit is contained in:
epriestley 2013-08-14 09:00:25 -07:00
parent a7955e919c
commit 296818e129
4 changed files with 6 additions and 2 deletions

View file

@ -0,0 +1,2 @@
ALTER TABLE {$NAMESPACE}_releeph.releeph_project
DROP repositoryID;

View file

@ -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())

View file

@ -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;

View file

@ -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'),
),
);
}
}