/**
* @author Alexander Ebert
- * @copyright 2001-2015 WoltLab GmbH
+ * @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core
*/
$i = $rebuildData['i'];
// truncate values
-$statement = WCF::getDB()->prepareStatement($lines[$i * 2]);
+$statement = WCF::getDB()->prepareStatement(str_replace('wcf1_', 'wcf'.WCF_N.'_', $lines[$i * 2]));
$statement->execute();
// decrease column width
-$statement = WCF::getDB()->prepareStatement($lines[$i * 2 + 1]);
+$statement = WCF::getDB()->prepareStatement(str_replace('wcf1_', 'wcf'.WCF_N.'_', $lines[$i * 2 + 1]));
$statement->execute();
$rebuildData['i']++;
/**
* @author Alexander Ebert
- * @copyright 2001-2015 WoltLab GmbH
+ * @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core
*/
// Using a single `ALTER TABLE` to drop multiple columns
// results in the same runtime, because copying the table
// is what actually takes ages.
-$statement = WCF::getDB()->prepareStatement($lines[$rebuildData['i']]);
+$statement = WCF::getDB()->prepareStatement(str_replace('wcf1_', 'wcf'.WCF_N.'_', $lines[$rebuildData['i']]));
$statement->execute();
$rebuildData['i']++;