From ee0e1d55c288da572f77f2024d6966ca307a812b Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Wed, 6 Dec 2023 21:29:38 -0500 Subject: [PATCH] Updated runtime_sensor.occupancy column type for #401 --- api/beestat.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/beestat.sql b/api/beestat.sql index 6a8732b..5df9705 100644 --- a/api/beestat.sql +++ b/api/beestat.sql @@ -421,7 +421,7 @@ CREATE TABLE `runtime_sensor` ( `sensor_id` int unsigned NOT NULL, `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `temperature` smallint DEFAULT NULL, - `occupancy` tinyint unsigned DEFAULT NULL, + `occupancy` tinyint(1) DEFAULT NULL, `air_pressure` mediumint unsigned DEFAULT NULL, `air_quality` smallint unsigned DEFAULT NULL, `air_quality_accuracy` tinyint unsigned DEFAULT NULL,