Changeset View
Changeset View
Standalone View
Standalone View
src/applications/releeph/storage/ReleephProject.php
Show All 23 Lines | final class ReleephProject extends ReleephDAO | ||||
private $arcanistProject = self::ATTACHABLE; | private $arcanistProject = 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( | |||||
'name' => 'text255', | |||||
'trunkBranch' => 'text255', | |||||
'isActive' => 'bool', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'projectName' => array( | |||||
'columns' => array('name'), | |||||
'unique' => true, | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID(ReleephProductPHIDType::TYPECONST); | return PhabricatorPHID::generateNewPHID(ReleephProductPHIDType::TYPECONST); | ||||
} | } | ||||
public function getDetail($key, $default = null) { | public function getDetail($key, $default = null) { | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |