1
0
mirror of https://github.com/beestat/app.git synced 2026-06-08 15:25:16 -04:00

Allowed outdoor temperature/humidity to be null in runtime_thermostat_summary

Since runtime_thermostat is now allowing null values for these fields, the summary table also has to allow null values for when there is no weather data for the entire time period.
This commit is contained in:
Jon Ziebell
2023-09-06 22:35:11 -04:00
parent 7c23a14247
commit 5dd2e0ed37
2 changed files with 34 additions and 9 deletions
+4 -4
View File
@@ -491,10 +491,10 @@ CREATE TABLE `runtime_thermostat_summary` (
`sum_economizer` mediumint unsigned NOT NULL,
`sum_heating_degree_days` smallint unsigned NOT NULL,
`sum_cooling_degree_days` smallint unsigned NOT NULL,
`avg_outdoor_temperature` smallint NOT NULL,
`avg_outdoor_humidity` tinyint unsigned NOT NULL,
`min_outdoor_temperature` smallint NOT NULL,
`max_outdoor_temperature` smallint NOT NULL,
`avg_outdoor_temperature` smallint NULL,
`avg_outdoor_humidity` tinyint unsigned NULL,
`min_outdoor_temperature` smallint NULL,
`max_outdoor_temperature` smallint NULL,
`avg_indoor_temperature` smallint NOT NULL,
`avg_indoor_humidity` tinyint unsigned NOT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',