diff options
author | Ted Trask <ttrask01@yahoo.com> | 2017-01-29 03:43:04 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2017-01-29 03:57:29 +0000 |
commit | 07027036bc14ebbb75e54f81b3134ec2b9dc0783 (patch) | |
tree | 9cc0c2844031d4cb27557cd7e2b821fb5c70997b /upgradeprovisioning | |
parent | 2f8246dc8b9a0341ca9451f1a20ffe296e76a0be (diff) | |
download | acf-provisioning-07027036bc14ebbb75e54f81b3134ec2b9dc0783.tar.bz2 acf-provisioning-07027036bc14ebbb75e54f81b3134ec2b9dc0783.tar.xz |
Add notifydevices param and add it to all actions that modify devices (not yet implemented)
Modify HTML views to display confirm warning about possible reboot when notifying devices
Split several get_ functions so notifydevices would not appear for new objects
Cleaned up some get_ functions to use handle_clientdata
Do not display filecontent in createtemplate HTML view (or write it in model)
Fix exception if bulkcreatedevices called with empty list
Modify 'device' provisioning_groups seq from 1 to 5 to allow notifydevices to display first
Diffstat (limited to 'upgradeprovisioning')
-rwxr-xr-x | upgradeprovisioning | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/upgradeprovisioning b/upgradeprovisioning index b06018f..73e046e 100755 --- a/upgradeprovisioning +++ b/upgradeprovisioning @@ -771,6 +771,8 @@ if [ "$version" -lt "12" ]; then psql -U postgres -c "INSERT INTO param_groups_to_params VALUES((SELECT group_id FROM provisioning_groups WHERE label='Public Phone'), (SELECT param_id FROM provisioning_params WHERE name='receivedcallhistoryenable'), 'true', false)" provisioning psql -U postgres -c "INSERT INTO param_groups_to_params VALUES((SELECT group_id FROM provisioning_groups WHERE label='Hotline'), (SELECT param_id FROM provisioning_params WHERE name='missedcallhistoryenable'), 'false', false)" provisioning psql -U postgres -c "INSERT INTO param_groups_to_params VALUES((SELECT group_id FROM provisioning_groups WHERE label='Hotline'), (SELECT param_id FROM provisioning_params WHERE name='receivedcallhistoryenable'), 'false', false)" provisioning + psql -U postgres -c "INSERT INTO provisioning_params VALUES(default, 'notifydevices', 'boolean', 'Notify Devices', 'Notify devices of changes (may cause reboot)', 'true', '1', '', null)" provisioning + psql -U postgres -c "UPDATE provisioning_groups SET (seq)=('5') WHERE name='device' AND seq='1'" provisioning # database psql -U postgres -c "UPDATE provisioning_params SET value='12' WHERE name='databaseversion'" provisioning |