@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at recaptime-dev/main 38 lines 954 B view raw
1<?php 2 3final 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}