Skip to content

Commit 38e9654

Browse files
committed
[HOTFIX] Broken DB upgrade for latest release
1 parent dfa34bc commit 38e9654

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

upgrade/definitions/1.0.0_to_1.0.1.inc.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ function run_101() {
99
$db_version_now = $setting->getValue('DB_VERSION'); // Our actual version installed
1010

1111
// Upgrade specific variables
12-
$aSql[] = "ALTER TABLE `" . $coin_address->getTableName() . "` ADD ap_threshold float DEFAULT '0'";
12+
$aSql[] = "ALTER TABLE " . $coin_address->getTableName() . " ADD ap_threshold float DEFAULT '0'";
1313
$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";
14-
$aSql[] = "ALTER TABLE `" . $user->getTableName() . "` DROP `ap_threshold`";
14+
$aSql[] = "ALTER TABLE " . $user->getTableName() . " DROP `ap_threshold`";
1515
$aSql[] = "UPDATE " . $setting->getTableName() . " SET value = '1.0.1' WHERE name = 'DB_VERSION'";
1616

1717
if ($db_version_now == $db_version_old && version_compare($db_version_now, DB_VERSION, '<')) {

0 commit comments

Comments
 (0)