fix: uninstall.mysql.sql missing DROP for snapshots table #181

Open
opened 2026-06-29 14:39:43 +00:00 by jmiller · 2 comments
Owner

Summary

sql/uninstall.mysql.sql drops #__mokosuitebackup_profiles, #__mokosuitebackup_records, and #__mokosuitebackup_remotes but is missing DROP TABLE IF EXISTS #__mokosuitebackup_snapshots.

Uninstalling the component leaves an orphaned table in the database.

Location

source/packages/com_mokosuitebackup/sql/uninstall.mysql.sql

Fix

Add: DROP TABLE IF EXISTS #__mokosuitebackup_snapshots;

## Summary `sql/uninstall.mysql.sql` drops `#__mokosuitebackup_profiles`, `#__mokosuitebackup_records`, and `#__mokosuitebackup_remotes` but is missing `DROP TABLE IF EXISTS #__mokosuitebackup_snapshots`. Uninstalling the component leaves an orphaned table in the database. ## Location `source/packages/com_mokosuitebackup/sql/uninstall.mysql.sql` ## Fix Add: `DROP TABLE IF EXISTS #__mokosuitebackup_snapshots;`
jmiller added the component: engine label 2026-06-29 14:39:43 +00:00
Author
Owner

Branch created: feature/181-fix-uninstall-mysql-sql-missing-drop-for

git fetch origin
git checkout feature/181-fix-uninstall-mysql-sql-missing-drop-for
Branch created: [`feature/181-fix-uninstall-mysql-sql-missing-drop-for`](https://git.mokoconsulting.tech/MokoConsulting/MokoSuiteBackup/src/branch/feature/181-fix-uninstall-mysql-sql-missing-drop-for) ```bash git fetch origin git checkout feature/181-fix-uninstall-mysql-sql-missing-drop-for ```
Author
Owner

Confirmed in 02.56.05 — keep open.

sql/uninstall.mysql.sql drops only three tables (remotes, records, profiles); there is no DROP TABLE IF EXISTS #__mokosuitebackup_snapshots;. The snapshots table is left orphaned on uninstall. Add the missing DROP.

Confirmed in 02.56.05 — keep open. `sql/uninstall.mysql.sql` drops only three tables (remotes, records, profiles); there is no `DROP TABLE IF EXISTS #__mokosuitebackup_snapshots;`. The snapshots table is left orphaned on uninstall. Add the missing DROP.
Sign in to join this conversation.