From da08b6a217505caa78ebdfec2064cd95135cb0f7 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sun, 18 Jan 2015 16:04:32 +0100 Subject: [PATCH] [FIX] Properly run the upgrade --- include/version.inc.php | 6 +++--- upgrade/definitions/0.0.15_to_1.0.0.inc.php | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/version.inc.php b/include/version.inc.php index 1007908c..9c1b9065 100644 --- a/include/version.inc.php +++ b/include/version.inc.php @@ -1,9 +1,9 @@ getValue('DB_VERSION'); // Our actual version installed // Upgrade specific variables - $aSql[] = "ALTER TABLE `blocks` CHANGE `shares` `shares` BIGINT(30) unsigned NOT NULL AUTO_INCREMENT"; + $aSql[] = "ALTER TABLE `blocks` CHANGE `shares` `shares` BIGINT(30) unsigned DEFAULT NULL"; + $aSql[] = "UPDATE " . $setting->getTableName() . " SET value = '1.0.0' WHERE name = 'DB_VERSION'"; if ($db_version_now == $db_version_old && version_compare($db_version_now, DB_VERSION, '<')) { // Run the upgrade