From b2ee6ad853acb20da1b5099c143e7fc93f126998 Mon Sep 17 00:00:00 2001 From: steve-lad <72376554+steve-lad@users.noreply.github.com> Date: Wed, 16 Jun 2021 10:27:28 +0200 Subject: [PATCH] Correct NOT NULL fields Ensure all enums are NOT NULL Correct variable name to lowercase --- install.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.php b/install.php index a2f9e8e..3118f76 100644 --- a/install.php +++ b/install.php @@ -211,7 +211,7 @@ function Get_DB_config($sccp_compatible) // whereas previously they were all global. // By prefixing with an underscore, these fields are ignored by chan-sccp // which is not an issue as they are not "runtime" - $db_config_V5 = array( + $db_config_v5 = array( 'sccpdevice' => array( '_logserver' => array('create' => "varchar(100) NULL default null", 'modify' => "VARCHAR(20)"), '_daysdisplaynotactive' => array('create' => "varchar(20) NULL default null", 'modify' => "VARCHAR(20)"), @@ -225,10 +225,10 @@ function Get_DB_config($sccp_compatible) '_pcport' => array('create' => "enum('on','off') NOT NULL default 'on'", 'modify' => "enum('on','off')"), '_spantopcport' => array('create' => "enum('on','off') NOT NULL default 'on'", 'modify' => "enum('on','off')"), '_voicevlanaccess' => array('create' => "enum('on','off') NOT NULL default 'off'", 'modify' => "enum('on','off')"), - '_enablecdpswport' => array('create' => "enum('on','off') NULL default 'off'", 'modify' => "enum('on','off')"), - '_enablecdppcport' => array('create' => "enum('on','off') NULL default 'off'", 'modify' => "enum('on','off')"), - '_enablelldpswport' => array('create' => "enum('on','off') NULL default 'off'", 'modify' => "enum('on','off')"), - '_enablelldppcport' => array('create' => "enum('on','off') NULL default 'off'", 'modify' => "enum('on','off')") + '_enablecdpswport' => array('create' => "enum('on','off') NOT NULL default 'off'", 'modify' => "enum('on','off')"), + '_enablecdppcport' => array('create' => "enum('on','off') NOT NULL default 'off'", 'modify' => "enum('on','off')"), + '_enablelldpswport' => array('create' => "enum('on','off') NOT NULL default 'off'", 'modify' => "enum('on','off')"), + '_enablelldppcport' => array('create' => "enum('on','off') NOT NULL default 'off'", 'modify' => "enum('on','off')") ) );