From 6b3e7158ef9be01a5808cf39a06a70be628e8d1f Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Mon, 24 Jul 2023 07:08:44 -0400 Subject: [PATCH] Updated SQL for #365 --- api/beestat.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/beestat.sql b/api/beestat.sql index f1310a3..a4b28f8 100644 --- a/api/beestat.sql +++ b/api/beestat.sql @@ -423,10 +423,10 @@ CREATE TABLE `runtime_sensor` ( `temperature` smallint DEFAULT NULL, `occupancy` tinyint unsigned DEFAULT NULL, `air_pressure` mediumint unsigned DEFAULT NULL, - `air_quality` tinyint unsigned DEFAULT NULL, + `air_quality` smallint unsigned DEFAULT NULL, `air_quality_accuracy` tinyint unsigned DEFAULT NULL, - `voc_concentration` smallint unsigned DEFAULT NULL, - `co2_concentration` smallint unsigned DEFAULT NULL, + `voc_concentration` mediumint unsigned DEFAULT NULL, + `co2_concentration` mediumint unsigned DEFAULT NULL, PRIMARY KEY (`runtime_sensor_id`,`timestamp`), UNIQUE KEY `thermostat_id_timestamp` (`sensor_id`,`timestamp`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci ROW_FORMAT=COMPRESSED;