Differential D10601 Diff 25473 src/applications/repository/storage/PhabricatorRepositoryCommitData.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryCommitData.php
Show All 14 Lines | final class PhabricatorRepositoryCommitData extends PhabricatorRepositoryDAO { | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_TIMESTAMPS => false, | self::CONFIG_TIMESTAMPS => false, | ||||
self::CONFIG_SERIALIZATION => array( | self::CONFIG_SERIALIZATION => array( | ||||
'commitDetails' => self::SERIALIZATION_JSON, | 'commitDetails' => self::SERIALIZATION_JSON, | ||||
), | ), | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'authorName' => 'text255', | 'authorName' => 'text', | ||||
epriestley: See T6105, plus the key is useles. | |||||
'commitMessage' => 'text', | 'commitMessage' => 'text', | ||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'commitID' => array( | 'commitID' => array( | ||||
'columns' => array('commitID'), | 'columns' => array('commitID'), | ||||
'unique' => true, | 'unique' => true, | ||||
), | ), | ||||
'authorName' => array( | |||||
'columns' => array('authorName'), | |||||
), | |||||
), | ), | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function getSummary() { | public function getSummary() { | ||||
$message = $this->getCommitMessage(); | $message = $this->getCommitMessage(); | ||||
return self::summarizeCommitMessage($message); | return self::summarizeCommitMessage($message); | ||||
} | } | ||||
Show All 35 Lines |
See T6105, plus the key is useles.