Fix Service Templates Dynamic (#12626)

* Fix Service Templates Dynamic
Remove dynamic groups type, it did not work.
Rename and simplify field names.  (fixing an issue with the builder where the rules field should be named rules)

* update schema def

* wrong method name in migration

* fix rules builder

* corerct call to apply

* sqlite can't drop columns

* correct column rename order on down.

* fix sqlite again

* fix whitespace
This commit is contained in:
Tony Murray
2021-03-18 08:14:45 -05:00
committed by GitHub
parent 92bf7d5efa
commit ac7b4539ce
9 changed files with 130 additions and 224 deletions

View File

@@ -1763,11 +1763,9 @@ service_templates:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: ip, Type: text, 'Null': true, Extra: '' }
- { Field: type, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: dtype, Type: varchar(16), 'Null': false, Extra: '', Default: static }
- { Field: dgtype, Type: varchar(16), 'Null': false, Extra: '', Default: static }
- { Field: drules, Type: text, 'Null': true, Extra: '' }
- { Field: dgrules, Type: text, 'Null': true, Extra: '' }
- { Field: check, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: type, Type: varchar(16), 'Null': false, Extra: '', Default: static }
- { Field: rules, Type: text, 'Null': true, Extra: '' }
- { Field: desc, Type: text, 'Null': true, Extra: '' }
- { Field: param, Type: text, 'Null': true, Extra: '' }
- { Field: ignore, Type: tinyint, 'Null': false, Extra: '', Default: '0' }