From 95606d1f0a69a7fdee0d2ab26ad7788413328ca8 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Tue, 11 Apr 2017 12:13:59 -0400 Subject: [PATCH] Update installer the right way --- build.php | 2 +- install/mods-for-hesk/ajax/install-database-ajax.php | 2 ++ install/mods-for-hesk/installModsForHesk.php | 1 + install/mods-for-hesk/js/version-scripts.js | 3 +++ install/mods-for-hesk/sql/installSql.php | 7 +++++++ 5 files changed, 14 insertions(+), 1 deletion(-) diff --git a/build.php b/build.php index 5011a29c..354f8da4 100644 --- a/build.php +++ b/build.php @@ -1,4 +1,4 @@ '3.0.3', 38 => '3.0.4', 39 => '3.0.5', + 40 => '3.0.6', ); function echoInitialVersionRows($version, $build_to_version_map) diff --git a/install/mods-for-hesk/js/version-scripts.js b/install/mods-for-hesk/js/version-scripts.js index f902ae7d..b0210ce5 100644 --- a/install/mods-for-hesk/js/version-scripts.js +++ b/install/mods-for-hesk/js/version-scripts.js @@ -113,6 +113,9 @@ function processUpdates(startingVersion) { } else if (startingVersion < 39) { startVersionUpgrade('305'); executeUpdate(39, '305', '3.0.5'); + } else if (startingVersion < 40) { + startVersionUpgrade('306'); + executeUpdate(40, '306', '3.0.6'); } else { installationFinished(); } diff --git a/install/mods-for-hesk/sql/installSql.php b/install/mods-for-hesk/sql/installSql.php index e76d3bb2..e80de735 100644 --- a/install/mods-for-hesk/sql/installSql.php +++ b/install/mods-for-hesk/sql/installSql.php @@ -972,4 +972,11 @@ function execute305Scripts() { hesk_dbConnect(); updateVersion('3.0.5'); +} + +function execute306Scripts() { + global $hesk_settings; + hesk_dbConnect(); + + updateVersion('3.0.6'); } \ No newline at end of file