Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/conpherence/storage/ConpherenceIndex.php
12256 views
1
<?php
2
3
final class ConpherenceIndex
4
extends ConpherenceDAO {
5
6
protected $threadPHID;
7
protected $transactionPHID;
8
protected $previousTransactionPHID;
9
protected $corpus;
10
11
protected function getConfiguration() {
12
return array(
13
self::CONFIG_TIMESTAMPS => false,
14
self::CONFIG_COLUMN_SCHEMA => array(
15
'previousTransactionPHID' => 'phid?',
16
'corpus' => 'fulltext',
17
),
18
self::CONFIG_KEY_SCHEMA => array(
19
'key_thread' => array(
20
'columns' => array('threadPHID'),
21
),
22
'key_transaction' => array(
23
'columns' => array('transactionPHID'),
24
'unique' => true,
25
),
26
'key_previous' => array(
27
'columns' => array('previousTransactionPHID'),
28
'unique' => true,
29
),
30
'key_corpus' => array(
31
'columns' => array('corpus'),
32
'type' => 'FULLTEXT',
33
),
34
),
35
) + parent::getConfiguration();
36
}
37
38
}
39
40