From df847c7e18899b0296976841750fc03903bfd53a Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sun, 28 Sep 2014 10:24:36 -0400 Subject: [PATCH] Fixed update script for those who attempted the 1.4.0 installation --- install/updateNuMods.php | 1 + install/updateTo1-4-1.php | 13 ++++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/install/updateNuMods.php b/install/updateNuMods.php index 82f156d7..7dcb6ab6 100644 --- a/install/updateNuMods.php +++ b/install/updateNuMods.php @@ -73,6 +73,7 @@ if ($_GET['update'] == 1)

Update NuMods from v1.2.4 - v1.3.0 to v1.4.1

+

If you attempted the v1.4.0 installation and it failed, use this update link. Do not use the link below!

Update here. Do not use the installation below!

Install NuMods v1.4.1 for the first time

If you have not yet installed/updated HESK, please do so first before continuing; otherwise installation will fail!

diff --git a/install/updateTo1-4-1.php b/install/updateTo1-4-1.php index f934fbf6..647cce67 100644 --- a/install/updateTo1-4-1.php +++ b/install/updateTo1-4-1.php @@ -4,11 +4,14 @@ define('HESK_PATH','../'); require(HESK_PATH . 'install/install_functions.inc.php'); require(HESK_PATH . 'hesk_settings.inc.php'); hesk_dbConnect(); -hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."users` ADD COLUMN `autorefresh` BIGINT NOT NULL DEFAULT 0 AFTER `replies`;"); -hesk_dbQuery("CREATE TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."denied_ips` ( - `ID` INT NOT NULL PRIMARY KEY AUTO_INCREMENT, - `RangeStart` VARCHAR(100) NOT NULL, - `RangeEnd` VARCHAR(100) NOT NULL)"); +if (!isset($_GET['ar'])) { + hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."users` ADD COLUMN `autorefresh` BIGINT NOT NULL DEFAULT 0 AFTER `replies`;"); + + hesk_dbQuery("CREATE TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."denied_ips` ( + `ID` INT NOT NULL PRIMARY KEY AUTO_INCREMENT, + `RangeStart` VARCHAR(100) NOT NULL, + `RangeEnd` VARCHAR(100) NOT NULL)"); +} hesk_dbQuery("CREATE TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."denied_emails` (ID INT NOT NULL PRIMARY KEY AUTO_INCREMENT, Email VARCHAR(100) NOT NULL);"); hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."tickets` ADD COLUMN `parent` MEDIUMINT(8) NULL AFTER `custom20`;"); ?>