1
0
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:
Sadie Powell
2024-05-16 17:12:50 +01:00
parent a9e9ac32a0
commit da99a53dfa
+2 -2
View File
@@ -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";