diff --git a/dDatabase/GameDatabase/MySQL/Tables/MigrationHistory.cpp b/dDatabase/GameDatabase/MySQL/Tables/MigrationHistory.cpp index a0afc341..e8b1d549 100644 --- a/dDatabase/GameDatabase/MySQL/Tables/MigrationHistory.cpp +++ b/dDatabase/GameDatabase/MySQL/Tables/MigrationHistory.cpp @@ -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) {