bug: uninstall SQL missing analytics and category_rules table drops #225

Open
opened 2026-06-29 14:19:18 +00:00 by jmiller · 1 comment
Owner

Summary

The uninstall SQL script only drops 4 of 6 tables, leaving orphaned tables in the database after component removal.

Current State

File: source/packages/com_mokosuitecross/sql/uninstall.mysql.sql

DROP TABLE IF EXISTS `#__mokosuitecross_logs`;
DROP TABLE IF EXISTS `#__mokosuitecross_posts`;
DROP TABLE IF EXISTS `#__mokosuitecross_templates`;
DROP TABLE IF EXISTS `#__mokosuitecross_services`;

Missing

The install SQL (install.mysql.sql) creates two additional tables that are not dropped on uninstall:

-- These should be added BEFORE the existing drops (FK order):
DROP TABLE IF EXISTS `#__mokosuitecross_analytics`;
DROP TABLE IF EXISTS `#__mokosuitecross_category_rules`;

Impact

  • Severity: Medium
  • After uninstalling MokoSuiteCross, #__mokosuitecross_analytics and #__mokosuitecross_category_rules remain as orphaned tables
  • Reinstalling will work (CREATE TABLE IF NOT EXISTS) but stale data persists
## Summary The uninstall SQL script only drops 4 of 6 tables, leaving orphaned tables in the database after component removal. ## Current State **File:** `source/packages/com_mokosuitecross/sql/uninstall.mysql.sql` ```sql DROP TABLE IF EXISTS `#__mokosuitecross_logs`; DROP TABLE IF EXISTS `#__mokosuitecross_posts`; DROP TABLE IF EXISTS `#__mokosuitecross_templates`; DROP TABLE IF EXISTS `#__mokosuitecross_services`; ``` ## Missing The install SQL (`install.mysql.sql`) creates two additional tables that are not dropped on uninstall: ```sql -- These should be added BEFORE the existing drops (FK order): DROP TABLE IF EXISTS `#__mokosuitecross_analytics`; DROP TABLE IF EXISTS `#__mokosuitecross_category_rules`; ``` ## Impact - **Severity:** Medium - After uninstalling MokoSuiteCross, `#__mokosuitecross_analytics` and `#__mokosuitecross_category_rules` remain as orphaned tables - Reinstalling will work (CREATE TABLE IF NOT EXISTS) but stale data persists
Author
Owner

Branch created: feature/225-bug-uninstall-sql-missing-analytics-and-

git fetch origin
git checkout feature/225-bug-uninstall-sql-missing-analytics-and-
Branch created: [`feature/225-bug-uninstall-sql-missing-analytics-and-`](https://git.mokoconsulting.tech/MokoConsulting/MokoSuiteCross/src/branch/feature/225-bug-uninstall-sql-missing-analytics-and-) ```bash git fetch origin git checkout feature/225-bug-uninstall-sql-missing-analytics-and- ```
Sign in to join this conversation.
No labels
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteCross#225