From 24e5147a2affd9d967a09e419a3c1b7d7556fe4a Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 16 May 2013 16:13:40 -0400 Subject: [PATCH] This was never an issue. --- .../com/gmail/nossr50/database/SQLDatabaseManager.java | 9 --------- .../nossr50/datatypes/database/DatabaseUpdateType.java | 1 - 2 files changed, 10 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java index 4641f3418..bfefa2193 100644 --- a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java @@ -151,7 +151,6 @@ public final class SQLDatabaseManager { checkDatabaseStructure(DatabaseUpdateType.INDEX); checkDatabaseStructure(DatabaseUpdateType.MOB_HEALTHBARS); checkDatabaseStructure(DatabaseUpdateType.PARTY_NAMES); - checkDatabaseStructure(DatabaseUpdateType.USER_COLUMN); } /** @@ -574,10 +573,6 @@ public final class SQLDatabaseManager { write("ALTER TABLE `" + tablePrefix + "users` DROP COLUMN `party` ;"); break; - case USER_COLUMN: - sql = "SELECT * FROM `" + tablePrefix + "users` ORDER BY `" + tablePrefix + "users`.`user` ASC LIMIT 0 , 30"; - break; - default: break; } @@ -619,10 +614,6 @@ public final class SQLDatabaseManager { write("ALTER TABLE `" + tablePrefix + "huds` ADD `mobhealthbar` varchar(50) NOT NULL DEFAULT '" + Config.getInstance().getMobHealthbarDefault() + "' ;"); break; - case USER_COLUMN: - mcMMO.p.getLogger().info("Updating mcMMO MySQL tables for user column name..."); - write("ALTER TABLE `" + tablePrefix + "users` RENAME COLUMN `userr` to `user`;"); - break; default: break; } diff --git a/src/main/java/com/gmail/nossr50/datatypes/database/DatabaseUpdateType.java b/src/main/java/com/gmail/nossr50/datatypes/database/DatabaseUpdateType.java index af4b0368f..efeeafb04 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/database/DatabaseUpdateType.java +++ b/src/main/java/com/gmail/nossr50/datatypes/database/DatabaseUpdateType.java @@ -6,5 +6,4 @@ public enum DatabaseUpdateType { INDEX, MOB_HEALTHBARS, PARTY_NAMES, - USER_COLUMN; }