diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-05-16 18:00:13 +0100 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-05-16 18:00:13 +0100 |
| commit | a4792412ba497ed30f5c77c59ddc226c5289ebc4 (patch) | |
| tree | b850f36cade5f8177134f65ee3ffe1bb659ef579 /modules/extra | |
| parent | cb21c7c1fa7e956aafdd4fd17de3ddad4fd45fc2 (diff) | |
| parent | 8bb83f6b1a667121ba68f5c191b9f953af6f22bd (diff) | |
Merge branch '2.0' into 2.1.
Diffstat (limited to 'modules/extra')
| -rw-r--r-- | modules/extra/mysql.cpp | 6 |
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"; |
