mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-29 02:02:41 +01:00
d6b882a804
Summary: Ref T6822. Test Plan: `grep` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: hach-que, Korvin, epriestley Maniphest Tasks: T6822 Differential Revision: https://secure.phabricator.com/D11370
38 lines
954 B
PHP
38 lines
954 B
PHP
<?php
|
|
|
|
final class ConpherenceIndex
|
|
extends ConpherenceDAO {
|
|
|
|
protected $threadPHID;
|
|
protected $transactionPHID;
|
|
protected $previousTransactionPHID;
|
|
protected $corpus;
|
|
|
|
protected function getConfiguration() {
|
|
return array(
|
|
self::CONFIG_TIMESTAMPS => false,
|
|
self::CONFIG_COLUMN_SCHEMA => array(
|
|
'previousTransactionPHID' => 'phid?',
|
|
'corpus' => 'fulltext',
|
|
),
|
|
self::CONFIG_KEY_SCHEMA => array(
|
|
'key_thread' => array(
|
|
'columns' => array('threadPHID'),
|
|
),
|
|
'key_transaction' => array(
|
|
'columns' => array('transactionPHID'),
|
|
'unique' => true,
|
|
),
|
|
'key_previous' => array(
|
|
'columns' => array('previousTransactionPHID'),
|
|
'unique' => true,
|
|
),
|
|
'key_corpus' => array(
|
|
'columns' => array('corpus'),
|
|
'type' => 'FULLTEXT',
|
|
),
|
|
),
|
|
) + parent::getConfiguration();
|
|
}
|
|
|
|
}
|