Changeset View
Changeset View
Standalone View
Standalone View
src/applications/releeph/storage/ReleephBranch.php
Show All 23 Lines | final class ReleephBranch extends ReleephDAO | ||||
private $cutPointCommit = self::ATTACHABLE; | private $cutPointCommit = self::ATTACHABLE; | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_SERIALIZATION => array( | self::CONFIG_SERIALIZATION => array( | ||||
'details' => self::SERIALIZATION_JSON, | 'details' => self::SERIALIZATION_JSON, | ||||
), | ), | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'basename' => 'text64', | |||||
'isActive' => 'bool', | |||||
'symbolicName' => 'text64?', | |||||
'name' => 'text128', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'releephProjectID' => array( | |||||
'columns' => array('releephProjectID', 'symbolicName'), | |||||
'unique' => true, | |||||
), | |||||
'releephProjectID_2' => array( | |||||
'columns' => array('releephProjectID', 'basename'), | |||||
'unique' => true, | |||||
), | |||||
'releephProjectID_name' => array( | |||||
'columns' => array('releephProjectID', 'name'), | |||||
'unique' => true, | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID(ReleephBranchPHIDType::TYPECONST); | return PhabricatorPHID::generateNewPHID(ReleephBranchPHIDType::TYPECONST); | ||||
} | } | ||||
public function getDetail($key, $default = null) { | public function getDetail($key, $default = null) { | ||||
▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines |