From 8cb5548f940b6ca9d6d36e8d0b0008e232ab334a Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 11 Mar 2016 18:47:58 +0100 Subject: [PATCH] Fix #2490 --- upgrade/definitions/0.0.11_to_0.0.12.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upgrade/definitions/0.0.11_to_0.0.12.inc.php b/upgrade/definitions/0.0.11_to_0.0.12.inc.php index 00328165..f018512f 100644 --- a/upgrade/definitions/0.0.11_to_0.0.12.inc.php +++ b/upgrade/definitions/0.0.11_to_0.0.12.inc.php @@ -11,7 +11,7 @@ function run_0012() { // Upgrade specific variables $aSql[] = "CREATE TABLE `coin_addresses` ( `id` int(11) NOT NULL AUTO_INCREMENT, `account_id` int(11) NOT NULL, `currency` varchar(5) NOT NULL, `coin_address` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `coin_address` (`coin_address`), KEY `account_id` (`account_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8"; $aSql[] = "INSERT IGNORE INTO coin_addresses (account_id, currency, coin_address) SELECT id, '" . $config['currency'] . "', coin_address FROM " . $user->getTableName() . " WHERE coin_address IS NOT NULL"; - $aSql[] = "ALTER TABLE `" . $user->getTableName() . "` DROP `coin_address`"; + $aSql[] = "ALTER TABLE " . $user->getTableName() . " DROP `coin_address`"; $aSql[] = "UPDATE " . $setting->getTableName() . " SET value = '0.0.12' WHERE name = 'DB_VERSION'"; if ($db_version_now == $db_version_old && version_compare($db_version_now, DB_VERSION, '<')) {