mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-04-24 07:38:05 -04:00
NotificationHistory: Rename column event_time to send_time
This commit is contained in:
parent
1037f142e5
commit
604246290d
2 changed files with 4 additions and 4 deletions
|
|
@ -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'
|
||||
]));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue