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;