State|StateHistory: Use placholder for scheduling_source

This commit is contained in:
Johannes Meyer 2021-08-20 16:51:16 +02:00
parent 03ea5ed9b3
commit 3cb6082d2b
2 changed files with 8 additions and 2 deletions

View file

@ -9,6 +9,7 @@ use Icinga\Module\Icingadb\Model\Behavior\Timestamp;
use Icinga\Module\Icingadb\Model\Behavior\VolatileState;
use ipl\Orm\Behaviors;
use ipl\Orm\Model;
use ipl\Sql\Expression;
/**
* Base class for the {@link HostState} and {@link ServiceState} models providing common columns.
@ -42,7 +43,9 @@ abstract class State extends Model
'latency',
'timeout',
'check_source',
'scheduling_source',
'scheduling_source' => new Expression( // TODO: Do as told
"'remove me if https://github.com/Icinga/icingadb/issues/160 is done'"
),
'last_update',
'last_state_change',
'next_check',

View file

@ -8,6 +8,7 @@ use Icinga\Module\Icingadb\Model\Behavior\Timestamp;
use ipl\Orm\Behaviors;
use ipl\Orm\Model;
use ipl\Orm\Relations;
use ipl\Sql\Expression;
/**
* Model for table `state_history`
@ -46,7 +47,9 @@ class StateHistory extends Model
'long_output',
'max_check_attempts',
'check_source',
'scheduling_source'
'scheduling_source' => new Expression( // TODO: Do as told
"'remove me if https://github.com/Icinga/icingadb/issues/160 is done'"
)
];
}