Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / infrastructure / customfield / storage / PhabricatorCustomFieldStringIndexStorage.php
blobb16f851a6073797dee393928a1c1c40778ce3738
1 <?php
3 abstract class PhabricatorCustomFieldStringIndexStorage
4 extends PhabricatorCustomFieldIndexStorage {
6 protected function getConfiguration() {
7 return array(
8 self::CONFIG_COLUMN_SCHEMA => array(
9 'indexKey' => 'bytes12',
10 'indexValue' => 'sort',
12 self::CONFIG_KEY_SCHEMA => array(
13 'key_join' => array(
14 'columns' => array('objectPHID', 'indexKey', 'indexValue(64)'),
16 'key_find' => array(
17 'columns' => array('indexKey', 'indexValue(64)'),
20 ) + parent::getConfiguration();
23 public function formatForInsert(AphrontDatabaseConnection $conn) {
24 return qsprintf(
25 $conn,
26 '(%s, %s, %s)',
27 $this->getObjectPHID(),
28 $this->getIndexKey(),
29 $this->getIndexValue());
32 public function getIndexValueType() {
33 return 'string';