mirror of
https://github.com/anope/anope.git
synced 2026-07-01 13:46:38 +02:00
Don't specify a width for DT_INT columns.
This isn't actually used by MySQL for the column width.
This commit is contained in:
@@ -400,7 +400,7 @@ std::vector<Query> MySQLService::CreateTable(const Anope::string &table, const D
|
||||
|
||||
query_text += ", `" + it->first + "` ";
|
||||
if (data.GetType(it->first) == Serialize::Data::DT_INT)
|
||||
query_text += "int(11)";
|
||||
query_text += "int";
|
||||
else
|
||||
query_text += "text";
|
||||
}
|
||||
@@ -417,7 +417,7 @@ std::vector<Query> MySQLService::CreateTable(const Anope::string &table, const D
|
||||
|
||||
Anope::string query_text = "ALTER TABLE `" + table + "` ADD `" + it->first + "` ";
|
||||
if (data.GetType(it->first) == Serialize::Data::DT_INT)
|
||||
query_text += "int(11)";
|
||||
query_text += "int";
|
||||
else
|
||||
query_text += "text";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user