From 07027036bc14ebbb75e54f81b3134ec2b9dc0783 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Sun, 29 Jan 2017 03:43:04 +0000 Subject: 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 --- upgradeprovisioning | 2 ++ 1 file changed, 2 insertions(+) (limited to 'upgradeprovisioning') 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 -- cgit v1.2.3