diff --git a/library/Icingadb/Model/State.php b/library/Icingadb/Model/State.php index f2b871a7..5e7073ee 100644 --- a/library/Icingadb/Model/State.php +++ b/library/Icingadb/Model/State.php @@ -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', diff --git a/library/Icingadb/Model/StateHistory.php b/library/Icingadb/Model/StateHistory.php index e543650d..ea360fb9 100644 --- a/library/Icingadb/Model/StateHistory.php +++ b/library/Icingadb/Model/StateHistory.php @@ -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'" + ) ]; }