From 38e9654cea16fcafa411be69e7c120f91533f8c0 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Wed, 29 Apr 2015 22:27:40 +0200 Subject: [PATCH 1/2] [HOTFIX] Broken DB upgrade for latest release --- upgrade/definitions/1.0.0_to_1.0.1.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upgrade/definitions/1.0.0_to_1.0.1.inc.php b/upgrade/definitions/1.0.0_to_1.0.1.inc.php index 9b6bd4f5..5637847f 100644 --- a/upgrade/definitions/1.0.0_to_1.0.1.inc.php +++ b/upgrade/definitions/1.0.0_to_1.0.1.inc.php @@ -9,9 +9,9 @@ function run_101() { $db_version_now = $setting->getValue('DB_VERSION'); // Our actual version installed // Upgrade specific variables - $aSql[] = "ALTER TABLE `" . $coin_address->getTableName() . "` ADD ap_threshold float DEFAULT '0'"; + $aSql[] = "ALTER TABLE " . $coin_address->getTableName() . " ADD ap_threshold float DEFAULT '0'"; $aSql[] = "UPDATE " . $coin_address->getTableName() . " AS ca LEFT JOIN " . $user->getTableName() . " AS a ON a.id = ca.account_id SET ca.ap_threshold = a.ap_threshold"; - $aSql[] = "ALTER TABLE `" . $user->getTableName() . "` DROP `ap_threshold`"; + $aSql[] = "ALTER TABLE " . $user->getTableName() . " DROP `ap_threshold`"; $aSql[] = "UPDATE " . $setting->getTableName() . " SET value = '1.0.1' WHERE name = 'DB_VERSION'"; if ($db_version_now == $db_version_old && version_compare($db_version_now, DB_VERSION, '<')) { From d1e678307523dd466c87ea461df1437b39a9c172 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Wed, 29 Apr 2015 22:29:05 +0200 Subject: [PATCH 2/2] [UPDATE] Changelog updated --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0883a011..5f721698 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +1.0.3 (Apr 29th 2015) +--------------------- + +* HOTFIX: Database upgrade from `1.0.0` to `1.0.1` did not work as + intended + 1.0.2 (Apr 28th 2015) ---------------------