Remove TEXT DB type

This commit is contained in:
UnknownShadow200 2017-10-04 18:44:04 +11:00
parent 755729937f
commit 2db4d92f69
2 changed files with 3 additions and 3 deletions

View File

@ -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
}
}

View File

@ -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");
}
}
}