From 21eafdeaf1becb23b27ff00506207ec7eb163848 Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Wed, 15 Oct 2014 15:41:28 +0300 Subject: [PATCH] MT#9431 Add proper enum values for cloud_pbx_hunt_policy preferences. --- db_scripts/diff/15106.down | 6 ++++++ db_scripts/diff/15106.up | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 db_scripts/diff/15106.down create mode 100644 db_scripts/diff/15106.up diff --git a/db_scripts/diff/15106.down b/db_scripts/diff/15106.down new file mode 100644 index 00000000..979ca030 --- /dev/null +++ b/db_scripts/diff/15106.down @@ -0,0 +1,6 @@ +USE provisioning; + + +SELECT id INTO @pref_id FROM voip_preferences WHERE attribute='cloud_pbx_hunt_policy'; + +delete from voip_preferences_enum where preference_id=@pref_id and value in('random','circular'); diff --git a/db_scripts/diff/15106.up b/db_scripts/diff/15106.up new file mode 100644 index 00000000..7afebf78 --- /dev/null +++ b/db_scripts/diff/15106.up @@ -0,0 +1,11 @@ +USE provisioning; + +SELECT id INTO @pref_id FROM voip_preferences WHERE attribute='cloud_pbx_hunt_policy'; + +INSERT INTO voip_preferences_enum +(preference_id, label, value, usr_pref, dom_pref, peer_pref, default_val) +VALUES +(@pref_id, 'random', 'random', 1, 0, 0, 0), +(@pref_id, 'circular', 'circular', 1, 0, 0, 0); + + \ No newline at end of file