uninstall.sql 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. -- TABLE: PROFILES
  2. DROP TABLE IF EXISTS `bx_organizations_data`;
  3. DELETE FROM sys_profiles WHERE `type` = 'bx_organizations';
  4. -- TABLE: STORAGES & TRANSCODERS
  5. -- TODO: delete picture files as well
  6. DROP TABLE IF EXISTS `bx_organizations_pics`;
  7. DROP TABLE IF EXISTS `bx_organizations_pics_resized`;
  8. -- TABLE: VIEWS
  9. DROP TABLE IF EXISTS `bx_organizations_views_track`;
  10. -- FORMS
  11. DELETE FROM `sys_objects_form` WHERE `module` = 'bx_organizations';
  12. DELETE FROM `sys_form_displays` WHERE `module` = 'bx_organizations';
  13. DELETE FROM `sys_form_inputs` WHERE `module` = 'bx_organizations';
  14. DELETE FROM `sys_form_display_inputs` WHERE `display_name` IN('bx_organization_add', 'bx_organization_delete', 'bx_organization_edit', 'bx_organization_edit_cover', 'bx_organization_view');
  15. -- PRE-VALUES
  16. DELETE FROM `sys_form_pre_lists` WHERE `module` = 'bx_organizations';
  17. DELETE FROM `sys_form_pre_values` WHERE `Key` IN('bx_organizations_cats');
  18. -- STUDIO PAGE & WIDGET
  19. DELETE FROM `tp`, `tw`, `tpw`
  20. USING `sys_std_pages` AS `tp`, `sys_std_widgets` AS `tw`, `sys_std_pages_widgets` AS `tpw`
  21. WHERE `tp`.`id` = `tw`.`page_id` AND `tw`.`id` = `tpw`.`widget_id` AND `tp`.`name` = 'bx_organizations';