Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialRevision.php
| Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | return array( | ||||
| 'authorPHID' => 'phid?', | 'authorPHID' => 'phid?', | ||||
| 'lastReviewerPHID' => 'phid?', | 'lastReviewerPHID' => 'phid?', | ||||
| 'lineCount' => 'uint32?', | 'lineCount' => 'uint32?', | ||||
| 'mailKey' => 'bytes40', | 'mailKey' => 'bytes40', | ||||
| 'branchName' => 'text255?', | 'branchName' => 'text255?', | ||||
| 'repositoryPHID' => 'phid?', | 'repositoryPHID' => 'phid?', | ||||
| ), | ), | ||||
| self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
| 'key_phid' => null, | |||||
| 'phid' => array( | |||||
| 'columns' => array('phid'), | |||||
| 'unique' => true, | |||||
| ), | |||||
| 'authorPHID' => array( | 'authorPHID' => array( | ||||
| 'columns' => array('authorPHID', 'status'), | 'columns' => array('authorPHID', 'status'), | ||||
| ), | ), | ||||
| 'repositoryPHID' => array( | 'repositoryPHID' => array( | ||||
| 'columns' => array('repositoryPHID'), | 'columns' => array('repositoryPHID'), | ||||
| ), | ), | ||||
| // If you (or a project you are a member of) is reviewing a significant | // If you (or a project you are a member of) is reviewing a significant | ||||
| // fraction of the revisions on an install, the result set of open | // fraction of the revisions on an install, the result set of open | ||||
| // revisions may be smaller than the result set of revisions where you | // revisions may be smaller than the result set of revisions where you | ||||
| // are a reviewer. In these cases, this key is better than keys on the | // are a reviewer. In these cases, this key is better than keys on the | ||||
| // edge table. | // edge table. | ||||
| 'key_status' => array( | 'key_status' => array( | ||||
| 'columns' => array('status', 'phid'), | 'columns' => array('status', 'phid'), | ||||
| ), | ), | ||||
| 'key_modified' => array( | |||||
| 'columns' => array('dateModified'), | |||||
| ), | |||||
| ), | ), | ||||
| ) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
| } | } | ||||
| public function setProperty($key, $value) { | public function setProperty($key, $value) { | ||||
| $this->properties[$key] = $value; | $this->properties[$key] = $value; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,008 Lines • Show Last 20 Lines | |||||