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