Changeset View
Changeset View
Standalone View
Standalone View
src/applications/system/storage/PhabricatorSystemActionLog.php
Show All 11 Lines | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_TIMESTAMPS => false, | self::CONFIG_TIMESTAMPS => false, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'actorHash' => 'bytes12', | 'actorHash' => 'bytes12', | ||||
'actorIdentity' => 'text255', | 'actorIdentity' => 'text255', | ||||
'action' => 'text32', | 'action' => 'text32', | ||||
'score' => 'double', | 'score' => 'double', | ||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'key_epoch' => array( | |||||
'columns' => array('epoch'), | |||||
), | |||||
'key_action' => array( | |||||
'columns' => array('actorHash', 'action', 'epoch'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function setActorIdentity($identity) { | public function setActorIdentity($identity) { | ||||
$this->setActorHash(PhabricatorHash::digestForIndex($identity)); | $this->setActorHash(PhabricatorHash::digestForIndex($identity)); | ||||
return parent::setActorIdentity($identity); | return parent::setActorIdentity($identity); | ||||
} | } | ||||
} | } |