summaryrefslogtreecommitdiff
path: root/modules/extra
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-05-16 18:00:13 +0100
committerSadie Powell <sadie@witchery.services>2024-05-16 18:00:13 +0100
commita4792412ba497ed30f5c77c59ddc226c5289ebc4 (patch)
treeb850f36cade5f8177134f65ee3ffe1bb659ef579 /modules/extra
parentcb21c7c1fa7e956aafdd4fd17de3ddad4fd45fc2 (diff)
parent8bb83f6b1a667121ba68f5c191b9f953af6f22bd (diff)
Merge branch '2.0' into 2.1.
Diffstat (limited to 'modules/extra')
-rw-r--r--modules/extra/mysql.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/extra/mysql.cpp b/modules/extra/mysql.cpp
index aa9986db9..6cb8e4b45 100644
--- a/modules/extra/mysql.cpp
+++ b/modules/extra/mysql.cpp
@@ -415,11 +415,11 @@ std::vector<Query> MySQLService::CreateTable(const Anope::string &table, const D
query_text += ", `" + column + "` ";
if (data.GetType(column) == Serialize::Data::DT_INT)
- query_text += "int(11)";
+ query_text += "int";
else
query_text += "text";
}
- query_text += ", PRIMARY KEY (`id`), KEY `timestamp_idx` (`timestamp`))";
+ query_text += ", PRIMARY KEY (`id`), KEY `timestamp_idx` (`timestamp`)) ROW_FORMAT=DYNAMIC";
queries.push_back(query_text);
}
else
@@ -433,7 +433,7 @@ std::vector<Query> MySQLService::CreateTable(const Anope::string &table, const D
Anope::string query_text = "ALTER TABLE `" + table + "` ADD `" + column + "` ";
if (data.GetType(column) == Serialize::Data::DT_INT)
- query_text += "int(11)";
+ query_text += "int";
else
query_text += "text";