Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fact/storage/PhabricatorFactAggregate.php
<?php | <?php | ||||
final class PhabricatorFactAggregate extends PhabricatorFactDAO { | final class PhabricatorFactAggregate extends PhabricatorFactDAO { | ||||
protected $factType; | protected $factType; | ||||
protected $objectPHID; | protected $objectPHID; | ||||
protected $valueX; | protected $valueX; | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'id' => null, | 'id' => 'id64', | ||||
'factType' => 'text32', | 'factType' => 'text32', | ||||
'valueX' => 'uint64', | 'valueX' => 'uint64', | ||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'PRIMARY' => null, | |||||
'factType' => array( | 'factType' => array( | ||||
'columns' => array('factType', 'objectPHID'), | 'columns' => array('factType', 'objectPHID'), | ||||
'unique' => true, | 'unique' => true, | ||||
), | ), | ||||
), | ), | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
} | } |