NotificationHistory: Rename column event_time to send_time

This commit is contained in:
Johannes Meyer 2019-11-29 15:27:47 +01:00
parent 1037f142e5
commit 604246290d
2 changed files with 4 additions and 4 deletions

View file

@ -29,7 +29,7 @@ class NotificationHistory extends Model
'service_id',
'notification_id',
'type',
'event_time',
'send_time',
'state',
'previous_hard_state',
'author',
@ -40,13 +40,13 @@ class NotificationHistory extends Model
public function getSortRules()
{
return ['event_time DESC'];
return ['send_time DESC'];
}
public function createBehaviors(Behaviors $behaviors)
{
$behaviors->add(new Timestamp([
'event_time'
'send_time'
]));
}

View file

@ -113,6 +113,6 @@ class NotificationListItem extends CommonListItem
protected function createTimestamp()
{
return new TimeAgo($this->item->event_time);
return new TimeAgo($this->item->send_time);
}
}