use SQLite types

This commit is contained in:
David Markowitz
2024-11-15 01:05:05 -08:00
parent 0aa1f70540
commit 9e242995e9
13 changed files with 95 additions and 96 deletions

View File

@@ -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) {