1
0

disable.sql 555 B

123456789101112131415
  1. -- Settings
  2. DELETE FROM `top`, `toc`, `to` USING `sys_options_types` AS `top` LEFT JOIN `sys_options_categories` AS `toc` ON `top`.`id`=`toc`.`type_id` LEFT JOIN `sys_options` AS `to` ON `toc`.`id`=`to`.`category_id` WHERE `top`.`name` = 'bx_intercom';
  3. -- Injections
  4. DELETE FROM `sys_injections` WHERE `name` = 'bx_intercom';
  5. -- Alerts
  6. SET @iHandlerId := (SELECT `id` FROM `sys_alerts_handlers` WHERE `name` = 'bx_intercom');
  7. DELETE FROM `sys_alerts_handlers` WHERE `id` = @iHandlerId;
  8. DELETE FROM `sys_alerts` WHERE `handler_id` = @iHandlerId ;