Differential D10526 Diff 25300 src/infrastructure/customfield/storage/PhabricatorCustomFieldStorage.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/storage/PhabricatorCustomFieldStorage.php
<?php | <?php | ||||
abstract class PhabricatorCustomFieldStorage | abstract class PhabricatorCustomFieldStorage | ||||
extends PhabricatorLiskDAO { | extends PhabricatorLiskDAO { | ||||
protected $objectPHID; | protected $objectPHID; | ||||
protected $fieldIndex; | protected $fieldIndex; | ||||
protected $fieldValue; | protected $fieldValue; | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_TIMESTAMPS => false, | self::CONFIG_TIMESTAMPS => false, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'fieldIndex' => 'bytes12', | |||||
'fieldValue' => 'text', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'objectPHID' => array( | |||||
'columns' => array('objectPHID', 'fieldIndex'), | |||||
'unique' => true, | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
} | } |