mirror of https://github.com/sipwise/db-schema.git
Sipwise against Russian aggression in Ukraine: https://war.ukraine.ua Change-Id: Ie0496094687749936eeb24e6a0566736a7e5f84fmr10.4.1
parent
c956ea8807
commit
fad463b5dd
@ -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, 'Russian', 'ru', 1, 1, 0, 0, 0, 0);
|
||||
|
||||
commit;
|
||||
@ -0,0 +1,12 @@
|
||||
SET autocommit=0;
|
||||
|
||||
USE provisioning
|
||||
|
||||
SELECT id FROM voip_preferences where attribute='language' INTO @pref_id;
|
||||
|
||||
UPDATE voip_usr_preferences SET value = 'en' WHERE value = 'ru' AND attribute_id = @pref_id;
|
||||
UPDATE voip_dom_preferences SET value = 'en' WHERE value = 'ru' AND attribute_id = @pref_id;
|
||||
|
||||
DELETE FROM voip_preferences_enum WHERE preference_id=@pref_id AND value in ('ru');
|
||||
|
||||
commit;
|
||||
Loading…
Reference in new issue