uninstall.sql 475 B

12345678910
  1. SET @sName = 'bx_notifications';
  2. DROP TABLE IF EXISTS `bx_notifications_events`, `bx_notifications_events2users`, `bx_notifications_handlers`, `bx_notifications_settings`, `bx_notifications_settings2users`, `bx_notifications_queue`;
  3. -- STUDIO PAGE & WIDGET
  4. DELETE FROM `tp`, `tw`, `tpw`
  5. USING `sys_std_pages` AS `tp`, `sys_std_widgets` AS `tw`, `sys_std_pages_widgets` AS `tpw`
  6. WHERE `tp`.`id` = `tw`.`page_id` AND `tw`.`id` = `tpw`.`widget_id` AND `tp`.`name` = @sName;