Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112243600
PhabricatorCustomFieldStringIndexStorage.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, May 9, 06:48
Size
879 B
Mime Type
text/x-php
Expires
Sun, May 11, 06:48 (1 d, 5 h)
Engine
blob
Format
Raw Data
Handle
26050586
Attached To
rPH Phabricator
PhabricatorCustomFieldStringIndexStorage.php
View Options
<?php
abstract
class
PhabricatorCustomFieldStringIndexStorage
extends
PhabricatorCustomFieldIndexStorage
{
protected
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_COLUMN_SCHEMA
=>
array
(
'indexKey'
=>
'bytes12'
,
'indexValue'
=>
'sort'
,
),
self
::
CONFIG_KEY_SCHEMA
=>
array
(
'key_join'
=>
array
(
'columns'
=>
array
(
'objectPHID'
,
'indexKey'
,
'indexValue(64)'
),
),
'key_find'
=>
array
(
'columns'
=>
array
(
'indexKey'
,
'indexValue(64)'
),
),
),
)
+
parent
::
getConfiguration
();
}
public
function
formatForInsert
(
AphrontDatabaseConnection
$conn
)
{
return
qsprintf
(
$conn
,
'(%s, %s, %s)'
,
$this
->
getObjectPHID
(),
$this
->
getIndexKey
(),
$this
->
getIndexValue
());
}
public
function
getIndexValueType
()
{
return
'string'
;
}
}
Event Timeline
Log In to Comment