mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-22 13:33:35 +00:00
Use less specific matcher
This commit is contained in:
parent
de3fe93100
commit
0aa1f70540
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user