From c9222b4c312f0298c77df1fad551a7c84ba4deeb Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Tue, 21 Apr 2026 13:48:15 -0500 Subject: [PATCH] fix: add InstallerScriptInterface for Joomla 6, run migration on install + update Co-Authored-By: Claude Opus 4.6 (1M context) --- src/script.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/script.php b/src/script.php index 878788d..e11ec38 100644 --- a/src/script.php +++ b/src/script.php @@ -21,9 +21,10 @@ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Installer\InstallerAdapter; +use Joomla\CMS\Installer\InstallerScriptInterface; use Joomla\CMS\Log\Log; -class Tpl_MokoonyxInstallerScript +class Tpl_MokoonyxInstallerScript implements InstallerScriptInterface { private const MIN_PHP = '8.1.0'; private const MIN_JOOMLA = '4.4.0'; @@ -87,8 +88,8 @@ class Tpl_MokoonyxInstallerScript public function postflight(string $type, InstallerAdapter $parent): bool { - // On install: migrate from MokoCassiopeia if it exists - if ($type === 'install') { + // On install or update: migrate from MokoCassiopeia if it exists + if ($type === 'install' || $type === 'update') { $this->migrateFromCassiopeia(); }