From 3ec81da8d18cd0288c15d2a5a5752e86c5a69d51 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Tue, 30 Dec 2014 00:03:58 -0500 Subject: [PATCH] #30 Added SQL migrations to update script --- install/updateTo1-6-1.php | 4 +- install/updateTo2-0-0.php | 83 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+), 3 deletions(-) create mode 100644 install/updateTo2-0-0.php diff --git a/install/updateTo1-6-1.php b/install/updateTo1-6-1.php index 359edddf..1c6e7edf 100644 --- a/install/updateTo1-6-1.php +++ b/install/updateTo1-6-1.php @@ -5,7 +5,5 @@ require(HESK_PATH . 'install/install_functions.inc.php'); require(HESK_PATH . 'hesk_settings.inc.php'); hesk_dbConnect(); hesk_dbQuery("UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."settings` SET `Value` = '1.6.1' WHERE `Key` = 'modsForHeskVersion'"); -?> -

Installation / 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: updateTo2-0-0.php'); \ No newline at end of file diff --git a/install/updateTo2-0-0.php b/install/updateTo2-0-0.php new file mode 100644 index 00000000..6b678bc2 --- /dev/null +++ b/install/updateTo2-0-0.php @@ -0,0 +1,83 @@ +Failure!

An issue occurred when trying to update the modsForHesk_settings.inc.php file.

'; +} + +if ($updateSuccess) { +?> + +

Installation / Update complete!

+

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

+ + \ No newline at end of file