fix: sync schema version and add missing license_cache migration #275

Merged
jmiller merged 4 commits from fix/schema-version-sync into main 2026-06-29 15:43:16 +00:00
Owner

Summary

  • Adds 02.52.00.sql migration file to match the current manifest version
  • Creates the mokosuite_license_cache table that was present in install.mysql.sql but never had a migration file

Problem

Joomla reports a database schema mismatch on sites running MokoSuiteClient:

  • Manifest version: 02.52.00 (or 02.51.08 on suite.dev)
  • Schema version: 02.48.20 (the last SQL update file)

No SQL update files existed between 02.48.20 and 02.52.00, so #__schemas was stuck at the old version. This also caused Joomla to report the issue under MokoSuiteBackup (since MokoSuiteClient is a child package of pkg_mokosuitebackup).

Additionally, the mokosuite_license_cache table was added to install.mysql.sql but never had a migration — so existing installs that upgraded through never received it.

Verified on suite.dev

  • 21 MokoSuiteClient tables exist ✓
  • mokosuite_license_cache is MISSING (confirmed)
  • Schema version stuck at 02.48.20 (confirmed)

Test plan

  • Install updated package on suite.dev
  • Verify mokosuite_license_cache table is created
  • Verify #__schemas for com_mokosuiteclient shows 02.52.00
  • Verify Joomla System → Database no longer shows mismatch
## Summary - Adds `02.52.00.sql` migration file to match the current manifest version - Creates the `mokosuite_license_cache` table that was present in `install.mysql.sql` but never had a migration file ## Problem Joomla reports a database schema mismatch on sites running MokoSuiteClient: - **Manifest version**: 02.52.00 (or 02.51.08 on suite.dev) - **Schema version**: 02.48.20 (the last SQL update file) No SQL update files existed between 02.48.20 and 02.52.00, so `#__schemas` was stuck at the old version. This also caused Joomla to report the issue under **MokoSuiteBackup** (since MokoSuiteClient is a child package of pkg_mokosuitebackup). Additionally, the `mokosuite_license_cache` table was added to `install.mysql.sql` but never had a migration — so existing installs that upgraded through never received it. ## Verified on suite.dev - 21 MokoSuiteClient tables exist ✓ - `mokosuite_license_cache` is **MISSING** (confirmed) - Schema version stuck at `02.48.20` (confirmed) ## Test plan - [ ] Install updated package on suite.dev - [ ] Verify `mokosuite_license_cache` table is created - [ ] Verify `#__schemas` for com_mokosuiteclient shows `02.52.00` - [ ] Verify Joomla System → Database no longer shows mismatch
jmiller added 2 commits 2026-06-29 15:16:40 +00:00
chore(version): pre-release bump to 02.52.02-dev [skip ci]
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 32s
31a049141f
fix: add missing SQL migration for license_cache table and sync schema version
Universal: PR Check / Branch Policy (pull_request) Failing after 3s
Joomla: Extension CI / Release Readiness Check (pull_request) Failing after 7s
Generic: Repo Health / Access control (pull_request) Successful in 3s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Universal: PR Check / Validate PR (pull_request) Failing after 12s
Generic: Project CI / Lint & Validate (pull_request) Successful in 16s
Universal: PR Check / Secret Scan (pull_request) Successful in 21s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 30s
Joomla: Extension CI / Lint & Validate (pull_request) Failing after 1m2s
Joomla: Metadata Validation / Validate Joomla Metadata (pull_request) Successful in 1m3s
Universal: Build & Release / Promote to RC (pull_request) Failing after 13s
Universal: Build & Release / Build & Release Pipeline (pull_request) Has been skipped
Generic: Project CI / Tests (pull_request) Has been cancelled
Joomla: Extension CI / Tests (PHP 8.2) (pull_request) Has been cancelled
Joomla: Extension CI / Tests (PHP 8.3) (pull_request) Has been cancelled
Joomla: Extension CI / PHPStan Analysis (pull_request) Has been cancelled
Joomla: Extension CI / Build RC Pre-Release (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
Generic: Repo Health / Scripts governance (pull_request) Has been cancelled
Generic: Repo Health / Repository health (pull_request) Has been cancelled
Generic: Repo Health / Report: Scripts Governance (pull_request) Has been cancelled
Generic: Repo Health / Report: Repository Health (pull_request) Has been cancelled
e746afd835
The mokosuite_license_cache table was added to install.mysql.sql but
never had a corresponding update file. Existing installs (upgrading
from pre-02.48.20) never received this table.

Additionally, no SQL update files existed between 02.48.20 and 02.52.00,
causing Joomla to report a database schema mismatch (manifest says
02.52.00 but #__schemas is stuck at 02.48.20).
jmiller added 1 commit 2026-06-29 15:16:59 +00:00
jmiller added 1 commit 2026-06-29 15:17:31 +00:00
chore(version): pre-release bump to 02.52.04-dev [skip ci]
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Successful in 2s
Universal: Build & Release / Build & Release Pipeline (pull_request) Successful in 35s
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Successful in 4m21s
dea991a3b2
jmiller merged commit 8e564b1fca into main 2026-06-29 15:43:16 +00:00
jmiller deleted branch fix/schema-version-sync 2026-06-29 15:43:17 +00:00
Sign in to join this conversation.
No Reviewers
No labels
Priority -
Type -
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteClient#275