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:
parent
a7955e919c
commit
296818e129
4 changed files with 6 additions and 2 deletions
2
resources/sql/patches/20130731.releephrepoid.sql
Normal file
2
resources/sql/patches/20130731.releephrepoid.sql
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
ALTER TABLE {$NAMESPACE}_releeph.releeph_project
|
||||||
|
DROP repositoryID;
|
|
@ -34,7 +34,6 @@ final class ReleephProjectCreateController extends ReleephProjectController {
|
||||||
$releeph_project = id(new ReleephProject())
|
$releeph_project = id(new ReleephProject())
|
||||||
->setName($name)
|
->setName($name)
|
||||||
->setTrunkBranch($trunk_branch)
|
->setTrunkBranch($trunk_branch)
|
||||||
->setRepositoryID($pr_repository->getID())
|
|
||||||
->setRepositoryPHID($pr_repository->getPHID())
|
->setRepositoryPHID($pr_repository->getPHID())
|
||||||
->setArcanistProjectID($arc_project->getID())
|
->setArcanistProjectID($arc_project->getID())
|
||||||
->setCreatedByUserPHID($request->getUser()->getPHID())
|
->setCreatedByUserPHID($request->getUser()->getPHID())
|
||||||
|
|
|
@ -18,7 +18,6 @@ final class ReleephProject extends ReleephDAO
|
||||||
// been picked and which haven't.
|
// been picked and which haven't.
|
||||||
protected $trunkBranch;
|
protected $trunkBranch;
|
||||||
|
|
||||||
protected $repositoryID;
|
|
||||||
protected $repositoryPHID;
|
protected $repositoryPHID;
|
||||||
protected $isActive;
|
protected $isActive;
|
||||||
protected $createdByUserPHID;
|
protected $createdByUserPHID;
|
||||||
|
|
|
@ -1535,6 +1535,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList {
|
||||||
'type' => 'sql',
|
'type' => 'sql',
|
||||||
'name' => $this->getPatchPath('20130802.heraldxactions.sql'),
|
'name' => $this->getPatchPath('20130802.heraldxactions.sql'),
|
||||||
),
|
),
|
||||||
|
'20130731.releephrepoid.sql' => array(
|
||||||
|
'type' => 'sql',
|
||||||
|
'name' => $this->getPatchPath('20130731.releephrepoid.sql'),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue