From 17f32a0c0b94ff0a22d1bcadaf2f9f1b297527b7 Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Fri, 16 Aug 2019 16:36:26 +0200 Subject: [PATCH] TT#65050 Add last_number_redial subscriber preference Change-Id: I3b56842fa3a6a86b4cb615d67d1a3c7545a4adcb --- db_scripts/diff/15562.down | 6 ++++++ db_scripts/diff/15562.up | 27 +++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 db_scripts/diff/15562.down create mode 100644 db_scripts/diff/15562.up diff --git a/db_scripts/diff/15562.down b/db_scripts/diff/15562.down new file mode 100644 index 00000000..a2266bcc --- /dev/null +++ b/db_scripts/diff/15562.down @@ -0,0 +1,6 @@ +use provisioning; +set autocommit=0; + +DELETE FROM voip_preferences WHERE attribute = "last_number_redial"; + +commit; \ No newline at end of file diff --git a/db_scripts/diff/15562.up b/db_scripts/diff/15562.up new file mode 100644 index 00000000..86d0d7b1 --- /dev/null +++ b/db_scripts/diff/15562.up @@ -0,0 +1,27 @@ +use provisioning; +set autocommit=0; + +SELECT id INTO @vpgid FROM voip_preference_groups WHERE name = "Internals"; + +insert into voip_preferences + set +voip_preference_groups_id = @vpgid, +attribute = "last_number_redial", +label = "Enable last number redial VSC", +type = 1, +max_occur = 1, +usr_pref = 1, +prof_pref = 0, +dom_pref = 1, +peer_pref = 0, +contract_pref = 0, +contract_location_pref = 0, +dev_pref = 0, +devprof_pref = 0, +internal = 0, +expose_to_customer = 0, +data_type = "boolean", +read_only = 0, +description = "Enable the Vertical Service Code to redial latest dialed number for this subscriber/domain."; + +commit;