Update install files
This commit is contained in:
parent
9d874e10a5
commit
7fe96fda96
@ -16,7 +16,7 @@ if (!defined('IN_SCRIPT')) {die('Invalid attempt');}
|
|||||||
|
|
||||||
// We will be installing this HESK version:
|
// We will be installing this HESK version:
|
||||||
define('HESK_NEW_VERSION','2.7.6');
|
define('HESK_NEW_VERSION','2.7.6');
|
||||||
define('MODS_FOR_HESK_NEW_VERSION','3.2.4');
|
define('MODS_FOR_HESK_NEW_VERSION','3.3.0');
|
||||||
define('REQUIRE_PHP_VERSION','5.3.0');
|
define('REQUIRE_PHP_VERSION','5.3.0');
|
||||||
define('REQUIRE_MYSQL_VERSION','5.0.7');
|
define('REQUIRE_MYSQL_VERSION','5.0.7');
|
||||||
|
|
||||||
|
@ -104,10 +104,10 @@ function executeMigration(startingMigrationNumber, migrationNumber, latestMigrat
|
|||||||
console.log('latestMigrationNumber: ' + latestMigrationNumber);
|
console.log('latestMigrationNumber: ' + latestMigrationNumber);
|
||||||
console.info('---');
|
console.info('---');
|
||||||
if (migrationNumber === latestMigrationNumber || (migrationNumber === startingMigrationNumber && direction === 'down')) {
|
if (migrationNumber === latestMigrationNumber || (migrationNumber === startingMigrationNumber && direction === 'down')) {
|
||||||
updateProgressBar(migrationNumber, latestMigrationNumber, direction === 'down', true);
|
updateProgressBar(migrationNumber - startingMigrationNumber, latestMigrationNumber - startingMigrationNumber, direction === 'down', true);
|
||||||
console.log('%c Success! ', 'color: white; background-color: green; font-size: 2em');
|
console.log('%c Success! ', 'color: white; background-color: green; font-size: 2em');
|
||||||
} else {
|
} else {
|
||||||
updateProgressBar(migrationNumber, latestMigrationNumber, false, false);
|
updateProgressBar(migrationNumber - startingMigrationNumber, latestMigrationNumber - startingMigrationNumber, false, false);
|
||||||
var newMigrationNumber = direction === 'up' ? migrationNumber + 1 : migrationNumber - 1;
|
var newMigrationNumber = direction === 'up' ? migrationNumber + 1 : migrationNumber - 1;
|
||||||
executeMigration(startingMigrationNumber, newMigrationNumber, latestMigrationNumber, direction);
|
executeMigration(startingMigrationNumber, newMigrationNumber, latestMigrationNumber, direction);
|
||||||
}
|
}
|
||||||
@ -121,7 +121,7 @@ function executeMigration(startingMigrationNumber, migrationNumber, latestMigrat
|
|||||||
$errorBlock = $('#error-block');
|
$errorBlock = $('#error-block');
|
||||||
$errorBlock.html($errorBlock.html() + "<br><br>An error occurred! (Error Code: " + migrationNumber + ")<br>" + message).show();
|
$errorBlock.html($errorBlock.html() + "<br><br>An error occurred! (Error Code: " + migrationNumber + ")<br>" + message).show();
|
||||||
|
|
||||||
updateProgressBar(migrationNumber, latestMigrationNumber, true, false);
|
updateProgressBar(migrationNumber - startingMigrationNumber, latestMigrationNumber - startingMigrationNumber, true, false);
|
||||||
|
|
||||||
if (direction === 'up') {
|
if (direction === 'up') {
|
||||||
// Revert!
|
// Revert!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user