From a8a112af4962ef70c48132237fe7ec6f63aea8a7 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sun, 8 Jan 2023 15:44:32 +0100 Subject: [PATCH] sql text field corrections Signed-off-by: Michael Kaufmann --- install/froxlor.sql.php | 2 +- install/updates/froxlor/update_2.x.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install/froxlor.sql.php b/install/froxlor.sql.php index 41b85ac7..eb12826c 100644 --- a/install/froxlor.sql.php +++ b/install/froxlor.sql.php @@ -217,7 +217,7 @@ CREATE TABLE `panel_customers` ( `lepublickey` mediumtext default NULL, `leprivatekey` mediumtext default NULL, `leregistered` tinyint(1) NOT NULL default '0', - `allowed_phpconfigs` text NOT NULL default '', + `allowed_phpconfigs` text NOT NULL, `type_2fa` tinyint(1) NOT NULL default '0', `data_2fa` varchar(25) NOT NULL default '', `api_allowed` tinyint(1) NOT NULL default '1', diff --git a/install/updates/froxlor/update_2.x.inc.php b/install/updates/froxlor/update_2.x.inc.php index c79f48e9..c6c7419c 100644 --- a/install/updates/froxlor/update_2.x.inc.php +++ b/install/updates/froxlor/update_2.x.inc.php @@ -233,7 +233,7 @@ if (Froxlor::isFroxlorVersion('2.0.0')) { Update::showUpdateStep("Creating new tables and fields"); // new customer allowed_mysqlserver field Database::query("ALTER TABLE `" . TABLE_PANEL_CUSTOMERS . "` CHANGE COLUMN `allowed_mysqlserver` `allowed_mysqlserver` text NOT NULL default '[0]';"); - Database::query("ALTER TABLE `" . TABLE_PANEL_CUSTOMERS . "` CHANGE COLUMN `allowed_phpconfigs` `allowed_phpconfigs` text NOT NULL default '';"); + Database::query("ALTER TABLE `" . TABLE_PANEL_CUSTOMERS . "` CHANGE COLUMN `allowed_phpconfigs` `allowed_phpconfigs` text NOT NULL;"); Database::query("ALTER TABLE `" . TABLE_PANEL_CUSTOMERS . "` CHANGE COLUMN `customernumber` `customernumber` varchar(100) NOT NULL default '';"); Update::lastStepStatus(0); }