From a5fbdbc01eee519ac0177daebf0c3bcd36160ece Mon Sep 17 00:00:00 2001 From: Andrew Pogrebennyk Date: Wed, 28 Aug 2013 13:59:35 +0200 Subject: [PATCH] Add new up script for outbound_history_info pref (3.0). --- db_scripts/diff/15008.up | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 db_scripts/diff/15008.up diff --git a/db_scripts/diff/15008.up b/db_scripts/diff/15008.up new file mode 100644 index 00000000..9593e3eb --- /dev/null +++ b/db_scripts/diff/15008.up @@ -0,0 +1,22 @@ +use provisioning +set autocommit=0; + +SELECT id INTO @vpg_id FROM voip_preference_groups + WHERE name='Number Manipulations'; + +INSERT INTO voip_preferences +(voip_preference_groups_id, attribute, type, max_occur, usr_pref, dom_pref, peer_pref, modify_timestamp, internal, data_type, read_only, description) +VALUES +(@vpg_id, 'outbound_history_info', 0, 1, 1, 1, 1, '1970-01-01 00:00:00', 0, 'enum', 0, 'The content to put into the History-Info header for outbound calls (use "None" to not set header at all)'); +SELECT last_insert_id() INTO @pref_id; + + +INSERT INTO voip_preferences_enum +(preference_id, label, value, usr_pref, dom_pref, peer_pref, default_val) +VALUES +(@pref_id, 'None', NULL, 0, 1, 1, 1), +(@pref_id, 'None', 'none', 1, 0, 0, 0), +(@pref_id, 'use domain default', NULL, 1, 0, 0, 0), +(@pref_id, 'UPRN', 'uprn', 1, 1, 1, 0); + +commit;