Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/storage/PhabricatorProject.php
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | final class PhabricatorProject extends PhabricatorProjectDAO | ||||
} | } | ||||
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( | ||||
'subprojectPHIDs' => self::SERIALIZATION_JSON, | 'subprojectPHIDs' => self::SERIALIZATION_JSON, | ||||
), | ), | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'name' => 'text255', | |||||
'status' => 'text32', | |||||
'phrictionSlug' => 'text128?', | |||||
'joinPolicy' => 'policy', | |||||
'isMembershipLocked' => 'bool', | |||||
'profileImagePHID' => 'phid?', | |||||
'icon' => 'text32', | |||||
'color' => 'text32', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'key_phid' => null, | |||||
'phid' => array( | |||||
'columns' => array('phid'), | |||||
'unique' => true, | |||||
), | |||||
'key_icon' => array( | |||||
'columns' => array('icon'), | |||||
), | |||||
'key_color' => array( | |||||
'columns' => array('color'), | |||||
), | |||||
'phrictionSlug' => array( | |||||
'columns' => array('phrictionSlug'), | |||||
'unique' => true, | |||||
), | |||||
'name' => array( | |||||
'columns' => array('name'), | |||||
'unique' => true, | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
PhabricatorProjectProjectPHIDType::TYPECONST); | PhabricatorProjectProjectPHIDType::TYPECONST); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 205 Lines • Show Last 20 Lines |