mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-10 17:38:08 +00:00
Use less specific matcher
This commit is contained in:
@@ -5,7 +5,7 @@ void MySQLDatabase::CreateMigrationHistoryTable() {
|
||||
}
|
||||
|
||||
bool MySQLDatabase::IsMigrationRun(const std::string_view str) {
|
||||
return ExecuteSelect("SELECT name FROM migration_history WHERE name = ?;", str)->next();
|
||||
return ExecuteSelect("SELECT name FROM migration_history WHERE name = \"%?%\";", str)->next();
|
||||
}
|
||||
|
||||
void MySQLDatabase::InsertMigration(const std::string_view str) {
|
||||
|
Reference in New Issue
Block a user