Commit graph

9 commits

Author SHA1 Message Date
Sukhwinder Dhillon
e26db03e19 Deprecate Icingadb\Model\Behavior\BoolCast and use \ipl\Orm\Behavior\BoolCast instead 2025-06-11 14:25:56 +02:00
Johannes Meyer
54b3d3ad7a Instance: Add new column icingadb_version 2025-06-11 12:13:51 +02:00
Sukhwinder Dhillon
89c0bb0686 Models: Add property type hints so that phpstan can scan correctly 2024-03-13 16:34:21 +01:00
Sukhwinder Dhillon
cb5373b49e
Models: Use MillisecondTimestamp instead of Timestamp behavior (#753)
The `Timestamp` behavior returns float values, which the database (pgsql) cannot convert properly.
We already have a `MillisecondTimestamp` behavior, so we should use that.
2023-05-30 16:05:11 +02:00
Eric Lippmann
d0d9a5edc0 Drop Binary behavior
Now part of ipl-orm.
2022-05-24 16:04:23 +02:00
Eric Lippmann
c859ec3a0d Add Binary behavior for binary columns 2022-05-24 16:04:23 +02:00
Alexander Aleksandrovič Klimov
1a9237ced8
Model\Instance: sort rows of equal responsibility by latest heartbeat
In case of multiple responsible=y rows (crashed instance and running instance)
make sure to get the one with the latest heartbeat not to give a false positive "Icinga DB is not running" (other heartbeat expired).
2022-04-11 12:58:21 +02:00
Johannes Meyer
5e441c93a0 Add license note to every file 2020-03-13 10:36:24 +01:00
Eric Lippmann
7747870c7f Introdue model Instance 2020-01-08 09:34:20 +01:00