From c2836fd590978e2e7e21d943086e144c178f3184 Mon Sep 17 00:00:00 2001 From: Andrew Pogrebennyk Date: Fri, 3 Feb 2017 15:12:10 +0100 Subject: [PATCH] MT#21817 add preference max_call_duration Change-Id: Ie7d1a86710a5c718f797ba1a3496c3e5024bfd82 --- db_scripts/diff/15320.down | 3 +++ db_scripts/diff/15320.up | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 db_scripts/diff/15320.down create mode 100644 db_scripts/diff/15320.up diff --git a/db_scripts/diff/15320.down b/db_scripts/diff/15320.down new file mode 100644 index 00000000..1f0180cd --- /dev/null +++ b/db_scripts/diff/15320.down @@ -0,0 +1,3 @@ +USE provisioning; + +DELETE FROM voip_preferences WHERE attribute='max_call_duration'; diff --git a/db_scripts/diff/15320.up b/db_scripts/diff/15320.up new file mode 100644 index 00000000..c33adf1d --- /dev/null +++ b/db_scripts/diff/15320.up @@ -0,0 +1,16 @@ +USE provisioning; +SET autocommit=0; + +SELECT id INTO @grpid FROM voip_preference_groups WHERE name = 'Access Restrictions'; + +INSERT INTO voip_preferences( + id,voip_preference_groups_id, attribute, label, type, max_occur, + usr_pref, prof_pref, dom_pref, peer_pref, contract_pref, contract_location_pref, + modify_timestamp, internal, expose_to_customer, data_type, read_only, description + ) VALUES + (NULL, @grpid, 'max_call_duration', 'Maximum Call Duration (seconds)', 0, 1, + 1, 0, 1, 0, 0, 0, + now(), 0, 1, 'string', 0, 'Maximum Call Duration (seconds).' + ); + +COMMIT;