Update installer / build number

This commit is contained in:
Mike Koch 2017-04-12 19:36:23 -04:00
parent b64aa60fa0
commit fe6b4b1c48
7 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<?php
// Define the current build
define('MODS_FOR_HESK_BUILD', 40);
define('MODS_FOR_HESK_BUILD', 41);

View File

@ -37,7 +37,7 @@ if (!defined('IN_SCRIPT')) {die('Invalid attempt');}
// We will be installing this HESK version:
define('HESK_NEW_VERSION','2.7.3');
define('MODS_FOR_HESK_NEW_VERSION','3.0.6');
define('MODS_FOR_HESK_NEW_VERSION','3.0.7');
define('REQUIRE_PHP_VERSION','5.3.0');
define('REQUIRE_MYSQL_VERSION','5.0.7');

View File

@ -86,6 +86,8 @@ if ($version == 2) {
execute305Scripts();
} elseif ($version == 40) {
execute306Scripts();
} elseif ($version == 41) {
execute307Scripts();
} else {
$response = 'The version "' . $version . '" was not recognized. Check the value submitted and try again.';
print $response;

View File

@ -49,6 +49,7 @@ $buildToVersionMap = array(
38 => '3.0.4',
39 => '3.0.5',
40 => '3.0.6',
41 => '3.0.7',
);
function echoInitialVersionRows($version, $build_to_version_map)

View File

@ -116,6 +116,9 @@ function processUpdates(startingVersion) {
} else if (startingVersion < 40) {
startVersionUpgrade('306');
executeUpdate(40, '306', '3.0.6');
} else if (startingVersion < 41) {
startVersionUpgrade('307');
executeUpdate(41, '307', '3.0.7');
} else {
installationFinished();
}

View File

@ -118,6 +118,7 @@ hesk_dbConnect();
<select name="current-version" class="form-control">
<option disabled>Select One, or "No Previous Installation" Below</option>
<optgroup label="Mods for HESK 3">
<option value="40">3.0.6</option>
<option value="39">3.0.5</option>
<option value="38">3.0.4</option>
<option value="37">3.0.3</option>

View File

@ -979,4 +979,11 @@ function execute306Scripts() {
hesk_dbConnect();
updateVersion('3.0.6');
}
function execute307Scripts() {
global $hesk_settings;
hesk_dbConnect();
updateVersion('3.0.7');
}