Use less specific matcher

This commit is contained in:
David Markowitz 2024-11-14 12:43:52 -08:00
parent de3fe93100
commit 0aa1f70540

View File

@ -5,7 +5,7 @@ void MySQLDatabase::CreateMigrationHistoryTable() {
} }
bool MySQLDatabase::IsMigrationRun(const std::string_view str) { 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) { void MySQLDatabase::InsertMigration(const std::string_view str) {