fix: issue with wireless sensors when there are too many oids (#6578)

fixes: 6560
This commit is contained in:
Tony Murray
2017-05-04 13:56:25 -05:00
committed by Neil Lathwood
parent 4ba8be2dfe
commit 422b2c8ae1
2 changed files with 2 additions and 1 deletions

View File

@@ -1615,7 +1615,7 @@ wireless_sensors:
sensor_limit_low_warn: { Field: sensor_limit_low_warn, Type: float, 'Null': true, Default: null, Extra: '' }
sensor_limit_warn: { Field: sensor_limit_warn, Type: float, 'Null': true, Default: null, Extra: '' }
sensor_multiplier: { Field: sensor_multiplier, Type: int(11), 'Null': false, Default: '1', Extra: '' }
sensor_oids: { Field: sensor_oids, Type: varchar(255), 'Null': false, Default: null, Extra: '' }
sensor_oids: { Field: sensor_oids, Type: text, 'Null': false, Default: null, Extra: '' }
sensor_prev: { Field: sensor_prev, Type: float, 'Null': true, Default: null, Extra: '' }
sensor_type: { Field: sensor_type, Type: varchar(255), 'Null': false, Default: null, Extra: '' }
Indexes:

1
sql-schema/190.sql Normal file
View File

@@ -0,0 +1 @@
ALTER TABLE `wireless_sensors` MODIFY `sensor_oids` TEXT NOT NULL;