From 8b0fe2cdaf143e8467ce50cc37a3fe2a79d29292 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Thu, 28 Sep 2017 08:18:42 -0400 Subject: [PATCH] Start at -1 as the last installed migration # for new installs --- install/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/index.php b/install/index.php index e12bbe28..c527f8e1 100644 --- a/install/index.php +++ b/install/index.php @@ -16,7 +16,7 @@ We have four possible installation scenarios: */ $tableSql = hesk_dbQuery("SHOW TABLES LIKE '" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings'"); -$startingMigrationNumber = 0; +$startingMigrationNumber = -1; if (hesk_dbNumRows($tableSql) > 0) { // 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'");