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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user