Change key

This commit is contained in:
Mike Koch 2017-10-18 13:03:11 -04:00
parent 0df87dde57
commit 60ac53fe94
No known key found for this signature in database
GPG Key ID: 9BA5D7F8391455ED

View File

@ -19,7 +19,7 @@ $tableSql = hesk_dbQuery("SHOW TABLES LIKE '" . hesk_dbEscape($hesk_settings['db
$startingMigrationNumber = 1; $startingMigrationNumber = 1;
if (hesk_dbNumRows($tableSql) > 0) { if (hesk_dbNumRows($tableSql) > 0) {
// They have installed at LEAST to version 1.6.0. Just pull the version number OR migration number // They have installed at LEAST to version 1.6.0. Just pull the version number OR migration number
$migrationNumberSql = hesk_dbQuery("SELECT `Value` FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` WHERE `Key` = 'lastMigration'"); $migrationNumberSql = hesk_dbQuery("SELECT `Value` FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` WHERE `Key` = 'migrationNumber'");
if ($migrationRow = hesk_dbFetchAssoc($migrationNumberSql)) { if ($migrationRow = hesk_dbFetchAssoc($migrationNumberSql)) {
$startingMigrationNumber = intval($migrationRow['Value']) + 1; $startingMigrationNumber = intval($migrationRow['Value']) + 1;
} else { } else {