Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / search / storage / PhabricatorSearchIndexVersion.php
blobc6c8be044726be0fd64ba215d96c9f6141f23e7c
1 <?php
3 final class PhabricatorSearchIndexVersion
4 extends PhabricatorSearchDAO {
6 protected $objectPHID;
7 protected $extensionKey;
8 protected $version;
9 protected $indexVersion;
10 protected $indexEpoch;
12 protected function getConfiguration() {
13 return array(
14 self::CONFIG_TIMESTAMPS => false,
15 self::CONFIG_COLUMN_SCHEMA => array(
16 'extensionKey' => 'text64',
17 'version' => 'text128',
18 'indexVersion' => 'bytes12',
19 'indexEpoch' => 'epoch',
21 self::CONFIG_KEY_SCHEMA => array(
22 'key_object' => array(
23 'columns' => array('objectPHID', 'extensionKey'),
24 'unique' => true,
27 // NOTE: "bin/search index" may query this table by "indexVersion" or
28 // "indexEpoch", but this is rare and scanning the table seems fine.
31 ) + parent::getConfiguration();