Support device group definitions from v2 (#4591)

* Support device group definitions from v2
Disable editing v2 groups.

V2 Device groups are defined as follows:
pattern = WHERE query with ? placeholders for values
params = json encoded array of values

* Can't array_unshift something that isn't an array...
This commit is contained in:
Tony Murray
2016-09-27 11:50:52 -05:00
committed by Neil Lathwood
parent 4f90d389c6
commit 02b84cf3f7
4 changed files with 77 additions and 24 deletions

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

@@ -0,0 +1 @@
ALTER TABLE `device_groups` ADD `params` TEXT NULL DEFAULT NULL AFTER `pattern`;