From 0aa1f7054056b2b75a0db96e1d8c999562e31b79 Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Thu, 14 Nov 2024 12:43:52 -0800 Subject: [PATCH] Use less specific matcher --- dDatabase/GameDatabase/MySQL/Tables/MigrationHistory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {