| 12345678 |
- SET @sName = 'bx_charts';
- DROP TABLE IF EXISTS `bx_charts_top_by_likes`, `bx_charts_most_active_profiles`, `bx_charts_most_followed_profiles`;
- -- STUDIO WIDGET
- DELETE FROM `tp`, `tw`, `twb`, `tpw`
- USING `sys_std_pages` AS `tp` LEFT JOIN `sys_std_widgets` AS `tw` ON `tp`.`id` = `tw`.`page_id` LEFT JOIN `sys_std_widgets_bookmarks` AS `twb` ON `tw`.`id` = `twb`.`widget_id` LEFT JOIN `sys_std_pages_widgets` AS `tpw` ON `tw`.`id` = `tpw`.`widget_id`
- WHERE `tp`.`name` = @sName;
|