From 04e28b605ca895c1821e78d8febb58778b5081bd Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Tue, 3 Aug 2021 17:48:26 +0300 Subject: [PATCH] TT#133301 Let 'voip_pbx_autoattendants.choice' be compatible with string literals As the option to add default actions has been introduced for Auto-Attendant, where we are using string literals as lables/values, we need to let the SQL structure be compatible with this update. Hence our customers will be able to set and then see the default action in the Auto-Attendant menu for a subscriber. Change-Id: I949d7b72c9211588389a64df9af49b0201587d87 --- db_scripts/diff/15687.down | 8 ++++++++ db_scripts/diff/15687.up | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 db_scripts/diff/15687.down create mode 100644 db_scripts/diff/15687.up diff --git a/db_scripts/diff/15687.down b/db_scripts/diff/15687.down new file mode 100644 index 00000000..d304a4bd --- /dev/null +++ b/db_scripts/diff/15687.down @@ -0,0 +1,8 @@ +USE provisioning; +SET autocommit=0; + +DELETE FROM provisioning.voip_pbx_autoattendants WHERE choice = 'default'; + +ALTER TABLE provisioning.voip_pbx_autoattendants MODIFY choice TINYINT(3) NOT NULL; + +COMMIT; diff --git a/db_scripts/diff/15687.up b/db_scripts/diff/15687.up new file mode 100644 index 00000000..1f61ad62 --- /dev/null +++ b/db_scripts/diff/15687.up @@ -0,0 +1,6 @@ +USE provisioning; +SET autocommit=0; + +ALTER TABLE provisioning.voip_pbx_autoattendants MODIFY choice VARCHAR(16) NOT NULL; + +COMMIT;