From da99a53dfac278cdf5ca37f7f104fb2c9aa58336 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 16 May 2024 17:12:50 +0100 Subject: Don't specify a width for DT_INT columns. This isn't actually used by MySQL for the column width. --- modules/extra/m_mysql.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/extra/m_mysql.cpp') 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 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 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"; -- cgit