From 00a754e9c7cfd85633f5096bf7898907a39ac673 Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Thu, 9 Mar 2023 18:02:25 +0100 Subject: [PATCH] MT#56691 Expose to customer all the SoundSet announcements In the process of improvement and optimization of the whole soundset structure, it is fundamental to make the contract soundset behaving exactly like the system soundsets. Due to that now all the announcements are exposed to customers Change-Id: I5da9162ed544e69336e954d9257a180898157014 --- db_scripts/diff/15758.down | 15 +++++++++++++++ db_scripts/diff/15758.up | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100644 db_scripts/diff/15758.down create mode 100644 db_scripts/diff/15758.up diff --git a/db_scripts/diff/15758.down b/db_scripts/diff/15758.down new file mode 100644 index 00000000..fb425135 --- /dev/null +++ b/db_scripts/diff/15758.down @@ -0,0 +1,15 @@ +USE provisioning; +SET autocommit=0; + +-- Set by default all the handles as NOT exposed to customer +UPDATE voip_sound_handles SET expose_to_customer = 0; + +-- Set to 1 only the handles belonging to groups that have to be exposed +SELECT id INTO @pbxgid FROM voip_sound_groups WHERE name = 'pbx'; +SELECT id INTO @mohgid FROM voip_sound_groups WHERE name = 'music_on_hold'; +SELECT id INTO @diggid FROM voip_sound_groups WHERE name = 'digits'; +SELECT id INTO @anngid FROM voip_sound_groups WHERE name = 'custom_announcements'; + +UPDATE voip_sound_handles SET expose_to_customer = 1 WHERE group_id in (@pbxgid, @mohgid, @diggid, @anngid); + +COMMIT; \ No newline at end of file diff --git a/db_scripts/diff/15758.up b/db_scripts/diff/15758.up new file mode 100644 index 00000000..f7fd80f8 --- /dev/null +++ b/db_scripts/diff/15758.up @@ -0,0 +1,6 @@ +USE provisioning; +SET autocommit=0; + +UPDATE voip_sound_handles SET expose_to_customer = 1; + +COMMIT; \ No newline at end of file