uninstall.sql 427 B

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