From 324a9b47f0902db03dbdf267bfaf3e2cf5f56fb0 Mon Sep 17 00:00:00 2001 From: Andreas Granig <agranig@sipwise.com> Date: Fri, 15 Feb 2019 17:01:28 +0100 Subject: [PATCH] TT#52961 Add DNS_SRV_enable device preference Change-Id: I6dc8ffaf9bc81a8c33767e6b917549d0ef89d8bc --- db_scripts/diff/15506.down | 3 +++ db_scripts/diff/15506.up | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 db_scripts/diff/15506.down create mode 100644 db_scripts/diff/15506.up diff --git a/db_scripts/diff/15506.down b/db_scripts/diff/15506.down new file mode 100644 index 00000000..9011bb7c --- /dev/null +++ b/db_scripts/diff/15506.down @@ -0,0 +1,3 @@ +USE provisioning; + +DELETE FROM voip_preferences WHERE attribute = 'DNS_SRV_enable'; diff --git a/db_scripts/diff/15506.up b/db_scripts/diff/15506.up new file mode 100644 index 00000000..dcfd8f2c --- /dev/null +++ b/db_scripts/diff/15506.up @@ -0,0 +1,19 @@ +USE provisioning; + +SELECT id INTO @vpgid FROM voip_preference_groups + WHERE name = 'CPBX Device Administration'; + +INSERT INTO voip_preferences + (voip_preference_groups_id, attribute, label, type, max_occur, + usr_pref, prof_pref, dom_pref, peer_pref, contract_pref, + contract_location_pref, dev_pref, devprof_pref, fielddev_pref, + modify_timestamp, internal, expose_to_customer, data_type, read_only, + description, + dynamic) + VALUES + (@vpgid, 'DNS_SRV_enable', 'Enable DNS SRV', 0, 1, + 0, 0, 0, 0, 0, + 0, 1, 1, 1, + now(), 0, 0, 'boolean', 0, + 'Enable DNS SRV on device when resolving server host', + 0);