Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / search / storage / document / PhabricatorSearchDocumentRelationship.php
blob5629e4391dfdd0598f192f84b38cdcd001351e01
1 <?php
3 final class PhabricatorSearchDocumentRelationship extends PhabricatorSearchDAO {
5 protected $relatedPHID;
6 protected $relation;
7 protected $relatedType;
8 protected $relatedTime;
10 protected function getConfiguration() {
11 return array(
12 self::CONFIG_TIMESTAMPS => false,
13 self::CONFIG_IDS => self::IDS_MANUAL,
14 self::CONFIG_COLUMN_SCHEMA => array(
15 'relation' => 'text4',
16 'relatedType' => 'text4',
17 'relatedTime' => 'epoch',
19 self::CONFIG_KEY_SCHEMA => array(
20 'key_phid' => null,
21 'phid' => array(
22 'columns' => array('phid'),
24 'relatedPHID' => array(
25 'columns' => array('relatedPHID', 'relation'),
27 'relation' => array(
28 'columns' => array('relation', 'relatedPHID'),
31 ) + parent::getConfiguration();
34 public function getIDKey() {
35 return 'phid';