fix: add InstallerScriptInterface for Joomla 6, run migration on install + update
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -21,9 +21,10 @@ defined('_JEXEC') or die;
|
|||||||
|
|
||||||
use Joomla\CMS\Factory;
|
use Joomla\CMS\Factory;
|
||||||
use Joomla\CMS\Installer\InstallerAdapter;
|
use Joomla\CMS\Installer\InstallerAdapter;
|
||||||
|
use Joomla\CMS\Installer\InstallerScriptInterface;
|
||||||
use Joomla\CMS\Log\Log;
|
use Joomla\CMS\Log\Log;
|
||||||
|
|
||||||
class Tpl_MokoonyxInstallerScript
|
class Tpl_MokoonyxInstallerScript implements InstallerScriptInterface
|
||||||
{
|
{
|
||||||
private const MIN_PHP = '8.1.0';
|
private const MIN_PHP = '8.1.0';
|
||||||
private const MIN_JOOMLA = '4.4.0';
|
private const MIN_JOOMLA = '4.4.0';
|
||||||
@@ -87,8 +88,8 @@ class Tpl_MokoonyxInstallerScript
|
|||||||
|
|
||||||
public function postflight(string $type, InstallerAdapter $parent): bool
|
public function postflight(string $type, InstallerAdapter $parent): bool
|
||||||
{
|
{
|
||||||
// On install: migrate from MokoCassiopeia if it exists
|
// On install or update: migrate from MokoCassiopeia if it exists
|
||||||
if ($type === 'install') {
|
if ($type === 'install' || $type === 'update') {
|
||||||
$this->migrateFromCassiopeia();
|
$this->migrateFromCassiopeia();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user