From adeafa0b926482fd5d513a11182d4560214f0761 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 25 Jan 2015 02:22:31 +0100 Subject: [PATCH] Fixed (potential) issues during update WCF 2.0 -> 2.1 --- com.woltlab.wcf/package.xml | 5 +++-- com.woltlab.wcf/update_210.sql | 6 ++---- com.woltlab.wcf/update_user5_210.sql | 1 + 3 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 com.woltlab.wcf/update_user5_210.sql diff --git a/com.woltlab.wcf/package.xml b/com.woltlab.wcf/package.xml index 36fb6f730e..8194bd1024 100644 --- a/com.woltlab.wcf/package.xml +++ b/com.woltlab.wcf/package.xml @@ -54,9 +54,9 @@ files.tar acp/update_com.woltlab.wcf_2.1.php - templates_update.tar + templates.tar - acptemplates_update.tar + acptemplates.tar language/*.xml @@ -66,6 +66,7 @@ update_user2_210.sql update_user3_210.sql update_user4_210.sql + update_user5_210.sql acpMenu.xml bbcode.xml diff --git a/com.woltlab.wcf/update_210.sql b/com.woltlab.wcf/update_210.sql index c73c93fe1a..a6e079fdaa 100644 --- a/com.woltlab.wcf/update_210.sql +++ b/com.woltlab.wcf/update_210.sql @@ -208,8 +208,6 @@ ALTER TABLE wcf1_template_listener ADD niceValue TINYINT(3) NOT NULL DEFAULT 0; ALTER TABLE wcf1_user_group_option ADD usersOnly TINYINT(1) NOT NULL DEFAULT 0; -ALTER TABLE wcf1_user ADD gravatarFileExtension VARCHAR(3) NOT NULL DEFAULT ''; - /* truncate table to ensure consistency */ DELETE FROM wcf1_user_notification; @@ -220,8 +218,8 @@ ALTER TABLE wcf1_user_notification ADD userID INT(10) NOT NULL; ALTER TABLE wcf1_user_notification ADD mailNotified TINYINT(1) NOT NULL DEFAULT 0; ALTER TABLE wcf1_user_notification ADD confirmTime INT(10) NOT NULL DEFAULT 0; ALTER TABLE wcf1_user_notification ADD baseObjectID INT(10) NOT NULL DEFAULT 0; -ALTER TABLE wcf1_user_notification ADD KEY (userID, eventID, objectID, confirmTime); -ALTER TABLE wcf1_user_notification ADD KEY (userID, confirmTime); +ALTER TABLE wcf1_user_notification ADD KEY userRelatedFields (userID, eventID, objectID, confirmTime); +ALTER TABLE wcf1_user_notification ADD KEY userConfirmTime (userID, confirmTime); ALTER TABLE wcf1_user_notification_to_user DROP mailNotified; diff --git a/com.woltlab.wcf/update_user5_210.sql b/com.woltlab.wcf/update_user5_210.sql new file mode 100644 index 0000000000..bde38817d1 --- /dev/null +++ b/com.woltlab.wcf/update_user5_210.sql @@ -0,0 +1 @@ +ALTER TABLE wcf1_user ADD gravatarFileExtension VARCHAR(3) NOT NULL DEFAULT ''; -- 2.20.1