You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
db-schema/db_scripts/diff/15400_not_replicated.down

19 lines
851 B

USE provisioning;
SET autocommit=0;
SET sql_log_bin=0;
SELECT id INTO @pref_id FROM voip_preferences WHERE attribute='force_inbound_calls_to_peer';
DELETE FROM voip_preferences_enum WHERE preference_id=@pref_id;
update voip_preferences set data_type = 'boolean', type = 1 where id = @pref_id;
update kamailio.usr_preferences set type = 1 where attribute='force_inbound_calls_to_peer';
update kamailio.dom_preferences set type = 1 where attribute='force_inbound_calls_to_peer';
delete from voip_usr_preferences where value <> 'force' and attribute_id = @pref_id;
update voip_usr_preferences set value = 1 where value = 'force' and attribute_id = @pref_id;
delete from voip_dom_preferences where value <> 'force' and attribute_id = @pref_id;
update voip_dom_preferences set value = 1 where value = 'force' and attribute_id = @pref_id;
commit;