mirror of https://github.com/sipwise/db-schema.git
* backward compatibility to support existing 0 values
of the 'lock' preference in voip_usr_preferences
Change-Id: I7c497e14695891d3b7a4ee018cf5429f79a0a485
changes/30/14730/1
parent
4586af55f5
commit
0aa6c5abd5
@ -0,0 +1,13 @@
|
||||
use provisioning;
|
||||
set autocommit=0;
|
||||
|
||||
set @pid = 0;
|
||||
select id into @pid from voip_preferences where attribute = "lock";
|
||||
|
||||
DELETE FROM voip_preferences_enum
|
||||
WHERE preference_id = @pid
|
||||
AND label = 'none'
|
||||
AND value = 0
|
||||
AND default_val = 0;
|
||||
|
||||
commit;
|
||||
@ -0,0 +1,10 @@
|
||||
use provisioning;
|
||||
set autocommit=0;
|
||||
|
||||
set @pid = 0;
|
||||
select id into @pid from voip_preferences where attribute = "lock";
|
||||
|
||||
INSERT INTO voip_preferences_enum
|
||||
(preference_id, label, value, default_val) VALUES (@pid, 'none', 0, 0);
|
||||
|
||||
commit;
|
||||
Loading…
Reference in new issue