From fcb0f3d658b6204b5ec4592730ecbfbb1c792446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Sun, 21 Apr 2024 01:40:41 +0200 Subject: [PATCH] Drop RCMAIL_VERSION < v1.2 check --- src/ExtensionInstaller.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/ExtensionInstaller.php b/src/ExtensionInstaller.php index 9c5f038..8cfbd61 100644 --- a/src/ExtensionInstaller.php +++ b/src/ExtensionInstaller.php @@ -108,12 +108,7 @@ public function install(InstalledRepositoryInterface $repo, PackageInterface $pa if ($sqldir = realpath($package_dir . \DIRECTORY_SEPARATOR . $extra['roundcube']['sql-dir'])) { $this->io->write("Running database initialization script for {$package_name}"); - $roundcube_version = self::versionNormalize(RCMAIL_VERSION); - if (self::versionCompare($roundcube_version, '1.2.0', '>=')) { - \rcmail_utils::db_init($sqldir); - } else { - throw new \Exception('Database initialization failed. Roundcube 1.2.0 or above required.'); - } + \rcmail_utils::db_init($sqldir); } } @@ -178,12 +173,7 @@ public function update(InstalledRepositoryInterface $repo, PackageInterface $ini if ($sqldir = realpath($package_dir . \DIRECTORY_SEPARATOR . $extra['roundcube']['sql-dir'])) { $this->io->write("Updating database schema for {$package_name}"); - $roundcube_version = self::versionNormalize(RCMAIL_VERSION); - if (self::versionCompare($roundcube_version, '1.2.0', '>=')) { - \rcmail_utils::db_update($sqldir, $package_name); - } else { - throw new \Exception('Database update failed. Roundcube 1.2.0 or above required.'); - } + \rcmail_utils::db_update($sqldir, $package_name); } }