From 6c3237c58cf5508630fc54e2b8571986fb9ab644 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Mon, 13 Oct 2014 22:04:50 -0400 Subject: [PATCH] #59: Added alter table statement for a user's active flag --- install/updateNuMods.php | 10 ++++++---- install/updateTo1-4-1.php | 4 +--- install/updateTo1-5-0.php | 11 +++++++++++ 3 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 install/updateTo1-5-0.php diff --git a/install/updateNuMods.php b/install/updateNuMods.php index 7dcb6ab6..f6ffe6d9 100644 --- a/install/updateNuMods.php +++ b/install/updateNuMods.php @@ -61,21 +61,23 @@ if ($_GET['update'] == 1) `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`;"); - + hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."users` ADD COLUMN `active` BIT NOT NULL DEFAULT 1 AFTER `autorefresh`"); } } ?> - NuMods 1.4.1 Install / Upgrade + NuMods 1.5.0 Install / Upgrade
-

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

+

Update NuMods from v1.4.1 to v1.5.0

+

Update here. Do not use the installation below!

+

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

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

+

Install NuMods v1.5.0 for the first time

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


Please verify the database information below. Additionally, ensure that the database user has CREATE and ALTER permissions.

diff --git a/install/updateTo1-4-1.php b/install/updateTo1-4-1.php index 647cce67..c9332fb0 100644 --- a/install/updateTo1-4-1.php +++ b/install/updateTo1-4-1.php @@ -14,7 +14,5 @@ if (!isset($_GET['ar'])) { } 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`;"); -?> -

Update complete!

-

Please delete the install folder for security reasons, and then proceed back to the Help Desk

\ No newline at end of file +header('Location: updateTo1-5-0.php'); \ No newline at end of file diff --git a/install/updateTo1-5-0.php b/install/updateTo1-5-0.php new file mode 100644 index 00000000..4af7b6a0 --- /dev/null +++ b/install/updateTo1-5-0.php @@ -0,0 +1,11 @@ + + +

Update complete!

+

Please delete the install folder for security reasons, and then proceed back to the Help Desk

\ No newline at end of file