From 80e442e3967ef119076f4f7d76afe7034240a54b Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Tue, 10 Jan 2023 22:15:57 +0100 Subject: [PATCH] set version to 2.0.7 Signed-off-by: Michael Kaufmann --- install/froxlor.sql.php | 4 ++-- install/updates/froxlor/update_2.x.inc.php | 10 ++++++++++ lib/Froxlor/Froxlor.php | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/install/froxlor.sql.php b/install/froxlor.sql.php index 0b5c9bd0..1f64b9ce 100644 --- a/install/froxlor.sql.php +++ b/install/froxlor.sql.php @@ -696,7 +696,7 @@ opcache.validate_timestamps'), ('system', 'distribution', ''), ('system', 'update_channel', 'stable'), ('system', 'updatecheck_data', ''), - ('system', 'update_notify_last', '2.0.6'), + ('system', 'update_notify_last', '2.0.7'), ('system', 'traffictool', 'goaccess'), ('api', 'enabled', '0'), ('2fa', 'enabled', '1'), @@ -740,7 +740,7 @@ opcache.validate_timestamps'), ('panel', 'logo_overridetheme', '0'), ('panel', 'logo_overridecustom', '0'), ('panel', 'settings_mode', '0'), - ('panel', 'version', '2.0.6'), + ('panel', 'version', '2.0.7'), ('panel', 'db_version', '202212060'); diff --git a/install/updates/froxlor/update_2.x.inc.php b/install/updates/froxlor/update_2.x.inc.php index 5a9dac8f..436d5f69 100644 --- a/install/updates/froxlor/update_2.x.inc.php +++ b/install/updates/froxlor/update_2.x.inc.php @@ -291,3 +291,13 @@ if (Froxlor::isFroxlorVersion('2.0.5')) { Froxlor::updateToVersion('2.0.6'); } + +if (Froxlor::isFroxlorVersion('2.0.6')) { + Update::showUpdateStep("Updating from 2.0.6 to 2.0.7", false); + + Update::showUpdateStep("Correcting allowed_mysqlserver for customers"); + Database::query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `allowed_mysqlserver` = '[0]' WHERE `allowed_mysqlserver` = ''"); + Update::lastStepStatus(0); + + Froxlor::updateToVersion('2.0.7'); +} diff --git a/lib/Froxlor/Froxlor.php b/lib/Froxlor/Froxlor.php index f17f5d78..dafed67a 100644 --- a/lib/Froxlor/Froxlor.php +++ b/lib/Froxlor/Froxlor.php @@ -31,7 +31,7 @@ final class Froxlor { // Main version variable - const VERSION = '2.0.6'; + const VERSION = '2.0.7'; // Database version (YYYYMMDDC where C is a daily counter) const DBVERSION = '202212060';