diff options
author | Sadie Powell <sadie@witchery.services> | 2024-05-16 17:12:50 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-05-16 17:28:15 +0100 |
commit | da99a53dfac278cdf5ca37f7f104fb2c9aa58336 (patch) | |
tree | 6f17280eefafdbef836beb4cd167c4989fc8cf5b | |
parent | a9e9ac32a0837ba86b25374a5fa2e685f9e73bdf (diff) |
Don't specify a width for DT_INT columns.
This isn't actually used by MySQL for the column width.
-rw-r--r-- | modules/extra/m_mysql.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/extra/m_mysql.cpp b/modules/extra/m_mysql.cpp index 85b18f151..82e2873b8 100644 --- a/modules/extra/m_mysql.cpp +++ b/modules/extra/m_mysql.cpp @@ -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"; |