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/15698_not_replicated.down

20 lines
828 B

USE provisioning;
SET autocommit=0;
SET sql_log_bin=0;
SELECT id FROM voip_preferences WHERE attribute='mobile_push_enable' INTO @pref_id;
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='mobile_push_enable';
UPDATE kamailio.dom_preferences SET type = 1 WHERE attribute='mobile_push_enable';
DELETE from voip_usr_preferences WHERE value <> 'always' AND attribute_id = @pref_id;
UPDATE voip_usr_preferences SET value = 1 WHERE value = 'always' AND attribute_id = @pref_id;
DELETE from voip_dom_preferences WHERE value <> 'always' AND attribute_id = @pref_id;
UPDATE voip_dom_preferences SET value = 1 WHERE value = 'always' AND attribute_id = @pref_id;
COMMIT;