disable.sql 789 B

12345678910111213141516171819202122232425
  1. -- Email template
  2. DELETE FROM `sys_email_templates` WHERE `Name` = 'bx_unacon_password_generated';
  3. -- Auth objects
  4. DELETE FROM `sys_objects_auths` WHERE `Name` = 'bx_unacon';
  5. -- Alerts
  6. SET @iHandlerId := (SELECT `id` FROM `sys_alerts_handlers` WHERE `name` = 'bx_unacon');
  7. DELETE FROM `sys_alerts_handlers` WHERE `id` = @iHandlerId;
  8. DELETE FROM `sys_alerts` WHERE `handler_id` = @iHandlerId;
  9. -- Options
  10. 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_unacon';
  11. -- Pages
  12. DELETE FROM `sys_objects_page` WHERE `module` = 'bx_unacon';
  13. DELETE FROM `sys_pages_blocks` WHERE `module` = 'bx_unacon';