From 604656c031f6b4d7154b1be857ec28e62f74e76e Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Tue, 1 Aug 2023 09:50:50 +0200 Subject: [PATCH] MT#56977 add Brazilian Portuguese language to the enum preference Change-Id: I36cc20696fdc847214511017eae1ac276a839f1d --- db_scripts/diff/15778.down | 9 +++++++++ db_scripts/diff/15778.up | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 db_scripts/diff/15778.down create mode 100644 db_scripts/diff/15778.up diff --git a/db_scripts/diff/15778.down b/db_scripts/diff/15778.down new file mode 100644 index 00000000..92aa9f1e --- /dev/null +++ b/db_scripts/diff/15778.down @@ -0,0 +1,9 @@ +SET autocommit=0; + +USE provisioning + +SELECT id FROM voip_preferences where attribute='language' INTO @pref_id; + +DELETE FROM voip_preferences_enum WHERE preference_id=@pref_id AND value='pt_br'; + +commit; diff --git a/db_scripts/diff/15778.up b/db_scripts/diff/15778.up new file mode 100644 index 00000000..7b72742f --- /dev/null +++ b/db_scripts/diff/15778.up @@ -0,0 +1,12 @@ +SET autocommit=0; + +USE provisioning + +SELECT id FROM voip_preferences where attribute='language' INTO @pref_id; + +INSERT INTO voip_preferences_enum +(preference_id, label, value, usr_pref, dom_pref, peer_pref, contract_pref, prof_pref, default_val) +VALUES +(@pref_id, 'Brazilian Portuguese', 'pt_br', 1, 1, 0, 0, 0, 0); + +commit;