History: Add relation for acknowledgement_history

refs #27
This commit is contained in:
Johannes Meyer 2020-03-10 08:17:39 +01:00
parent d1099bb02e
commit 3a8955a537

View file

@ -32,6 +32,7 @@ class History extends Model
'downtime_history_id',
'flapping_history_id',
'notification_history_id',
'acknowledgement_history_id',
'state_history_id',
'event_type',
'event_time'
@ -70,6 +71,7 @@ class History extends Model
->setForeignKey('downtime_id')
->setJoinType('LEFT');
$relations->belongsTo('notification', NotificationHistory::class)->setJoinType('LEFT');
$relations->belongsTo('acknowledgement', AcknowledgementHistory::class)->setJoinType('LEFT');
$relations->belongsTo('state', StateHistory::class)->setJoinType('LEFT');
}
}