Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/ferret/PhabricatorFerretDocument.php
Show All 21 Lines | return array( | ||||
'epochCreated' => 'epoch', | 'epochCreated' => 'epoch', | ||||
'epochModified' => 'epoch', | 'epochModified' => 'epoch', | ||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'key_object' => array( | 'key_object' => array( | ||||
'columns' => array('objectPHID'), | 'columns' => array('objectPHID'), | ||||
'unique' => true, | 'unique' => true, | ||||
), | ), | ||||
'key_author' => array( | |||||
'columns' => array('authorPHID'), | |||||
), | |||||
'key_owner' => array( | |||||
'columns' => array('ownerPHID'), | |||||
), | |||||
'key_created' => array( | |||||
'columns' => array('epochCreated'), | |||||
), | |||||
'key_modified' => array( | |||||
'columns' => array('epochModified'), | |||||
), | |||||
), | ), | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function getTableName() { | public function getTableName() { | ||||
$application = $this->getApplicationName(); | $application = $this->getApplicationName(); | ||||
$key = $this->getIndexKey(); | $key = $this->getIndexKey(); | ||||
return "{$application}_{$key}_fdocument"; | return "{$application}_{$key}_fdocument"; | ||||
} | } | ||||
} | } |