1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 09:56:39 +02:00

Skip removed columns when migrating the database schema.

This commit is contained in:
Sadie Powell
2024-11-22 13:58:17 +00:00
parent faf0ad5f35
commit a27be92e4b
+5
View File
@@ -456,6 +456,11 @@ std::vector<Query> MySQLService::CreateTable(const Anope::string &table, const D
continue; // These columns are special and aren't part of the data.
known_cols.insert(column);
if (data.data.count(column) == 0)
{
Log(LOG_DEBUG) << "mysql: Column has been removed from the data set: " << column;
continue;
}
// We know the column exists but is the type correct?
auto update = false;