diff --git a/MCGalaxy/Database/ColumnDesc.cs b/MCGalaxy/Database/ColumnDesc.cs index 38a216be7..ca1e13126 100644 --- a/MCGalaxy/Database/ColumnDesc.cs +++ b/MCGalaxy/Database/ColumnDesc.cs @@ -51,13 +51,13 @@ namespace MCGalaxy.SQL { static string[] colTypes = new string[] { "TINYINT UNSIGNED", "SMALLINT UNSIGNED", "MEDIUMINT UNSIGNED", "INT UNSIGNED", "BIGINT UNSIGNED", "TINYINT", "SMALLINT", - "MEDIUMINT", "INT", "BIGINT", "INTEGER", "BOOL", "DATETIME", "TEXT" + "MEDIUMINT", "INT", "BIGINT", "INTEGER", "BOOL", "DATETIME", }; } public enum ColumnType { UInt8, UInt16, UInt24, UInt32, UInt64, Int8, Int16, Int24, Int32, Int64, - Integer, Bool, DateTime, Text, Char, VarChar + Integer, Bool, DateTime, Char, VarChar } } diff --git a/MCGalaxy/Server/Server.DB.cs b/MCGalaxy/Server/Server.DB.cs index e1d88293c..617b66439 100644 --- a/MCGalaxy/Server/Server.DB.cs +++ b/MCGalaxy/Server/Server.DB.cs @@ -91,7 +91,7 @@ namespace MCGalaxy { Database.Backend.AddColumn("Players", new ColumnDesc("totalCuboided", ColumnType.Int64), "totalBlocks"); } if (!columns.CaselessContains("Messages")) { - Database.Backend.AddColumn("Players", new ColumnDesc("Messages", ColumnType.UInt64), "title_color"); + Database.Backend.AddColumn("Players", new ColumnDesc("Messages", ColumnType.UInt24), "title_color"); } } }