uninstall.sql 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. -- TABLES
  2. DROP TABLE IF EXISTS `bx_cnl_data`, `bx_cnl_pics`, `bx_cnl_pics_resized`, `bx_cnl_cmts`, `bx_cnl_views_track`, `bx_cnl_meta_keywords`, `bx_cnl_meta_mentions`, `bx_cnl_fans`, `bx_cnl_admins`, `bx_cnl_votes`, `bx_cnl_votes_track`, `bx_cnl_reports`, `bx_cnl_reports_track`, `bx_cnl_favorites_track`, `bx_cnl_scores`, `bx_cnl_scores_track`;
  3. -- PROFILES
  4. DELETE FROM sys_profiles WHERE `type` = 'bx_channels';
  5. -- STORAGES & TRANSCODERS
  6. DELETE FROM `sys_objects_storage` WHERE `object` IN('bx_channels_pics', 'bx_channels_pics_resized');
  7. DELETE FROM `sys_storage_tokens` WHERE `object` IN('bx_channels_pics', 'bx_channels_pics_resized');
  8. DELETE FROM `sys_objects_transcoder` WHERE `object` IN('bx_channels_icon', 'bx_channels_thumb', 'bx_channels_avatar', 'bx_channels_picture', 'bx_channels_cover', 'bx_channels_cover_thumb', 'bx_channels_gallery');
  9. DELETE FROM `sys_transcoder_filters` WHERE `transcoder_object` IN('bx_channels_icon', 'bx_channels_thumb', 'bx_channels_avatar', 'bx_channels_picture', 'bx_channels_cover', 'bx_channels_cover_thumb', 'bx_channels_gallery');
  10. DELETE FROM `sys_transcoder_images_files` WHERE `transcoder_object` IN('bx_channels_icon', 'bx_channels_thumb', 'bx_channels_avatar', 'bx_channels_picture', 'bx_channels_cover', 'bx_channels_cover_thumb', 'bx_channels_gallery');
  11. -- FORMS
  12. DELETE FROM `sys_objects_form` WHERE `module` = 'bx_channels';
  13. DELETE FROM `sys_form_displays` WHERE `module` = 'bx_channels';
  14. DELETE FROM `sys_form_inputs` WHERE `module` = 'bx_channels';
  15. DELETE FROM `sys_form_display_inputs` WHERE `display_name` IN('bx_channel_add', 'bx_channel_delete', 'bx_channel_edit', 'bx_channel_edit_cover', 'bx_channel_view', 'bx_channel_view_full', 'bx_channel_invite');
  16. -- PRE-VALUES
  17. DELETE FROM `sys_form_pre_lists` WHERE `module` = 'bx_channels';
  18. DELETE FROM `sys_form_pre_values` WHERE `Key` IN('bx_channels_cats');
  19. -- CONTENT INFO
  20. DELETE FROM `sys_objects_content_info` WHERE `name` IN ('bx_channels', 'bx_channels_cmts');
  21. DELETE FROM `sys_content_info_grids` WHERE `object` IN ('bx_channels');
  22. -- SEARCH EXTENDED
  23. DELETE FROM `sys_objects_search_extended` WHERE `module` = 'bx_channels';
  24. -- STUDIO PAGE & WIDGET
  25. DELETE FROM `tp`, `tw`, `tpw`
  26. USING `sys_std_pages` AS `tp`, `sys_std_widgets` AS `tw`, `sys_std_pages_widgets` AS `tpw`
  27. WHERE `tp`.`id` = `tw`.`page_id` AND `tw`.`id` = `tpw`.`widget_id` AND `tp`.`name` = 'bx_channels';