Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialRevision.php
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | final class DifferentialRevision extends DifferentialDAO | ||||
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( | ||||
'attached' => self::SERIALIZATION_JSON, | 'attached' => self::SERIALIZATION_JSON, | ||||
'unsubscribed' => self::SERIALIZATION_JSON, | 'unsubscribed' => self::SERIALIZATION_JSON, | ||||
), | ), | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'title' => 'text255', | |||||
'originalTitle' => 'text255', | |||||
'status' => 'text32', | |||||
'summary' => 'text', | |||||
'testPlan' => 'text', | |||||
'authorPHID' => 'phid?', | |||||
'lastReviewerPHID' => 'phid?', | |||||
'lineCount' => 'uint32?', | |||||
'mailKey' => 'bytes40', | |||||
'branchName' => 'text255', | |||||
'arcanistProjectPHID' => 'phid?', | |||||
'repositoryPHID' => 'phid?', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'key_phid' => null, | |||||
'phid' => array( | |||||
'columns' => array('phid'), | |||||
'unique' => true, | |||||
), | |||||
'authorPHID' => array( | |||||
'columns' => array('authorPHID', 'status'), | |||||
), | |||||
'repositoryPHID' => array( | |||||
'columns' => array('repositoryPHID'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function getMonogram() { | public function getMonogram() { | ||||
$id = $this->getID(); | $id = $this->getID(); | ||||
return "D{$id}"; | return "D{$id}"; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 416 Lines • Show Last 20 Lines |