Differential D10590 Diff 25464 src/applications/notification/storage/PhabricatorFeedStoryNotification.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/notification/storage/PhabricatorFeedStoryNotification.php
Show All 14 Lines | return array( | ||||
'chronologicalKey' => 'uint64', | 'chronologicalKey' => 'uint64', | ||||
'hasViewed' => 'bool', | 'hasViewed' => 'bool', | ||||
'id' => null, | 'id' => null, | ||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'PRIMARY' => null, | 'PRIMARY' => null, | ||||
'userPHID' => array( | 'userPHID' => array( | ||||
'columns' => array('userPHID', 'chronologicalKey'), | 'columns' => array('userPHID', 'chronologicalKey'), | ||||
'unique' => true, | |||||
), | |||||
'userPHID_2' => array( | |||||
'columns' => array('userPHID', 'hasViewed', 'primaryObjectPHID'), | |||||
), | ), | ||||
), | ), | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
static public function updateObjectNotificationViews( | static public function updateObjectNotificationViews( | ||||
PhabricatorUser $user, | PhabricatorUser $user, | ||||
$object_phid) { | $object_phid) { | ||||
Show All 35 Lines |