rename SQL update methods to include 'ById'

This commit is contained in:
2025-06-29 21:25:05 +02:00
parent be33f2c3d8
commit 5a33bdc24d
6 changed files with 6 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ extension GameDao on AppDatabase {
await (delete(gameTable)..where((ga) => ga.id.equals(id))).go();
}
Future<void> updateGameName(int id, String newName) async {
Future<void> updateGameNameById(int id, String newName) async {
await (update(gameTable)..where((ga) => ga.id.equals(id))).write(
GameTableCompanion(name: Value(newName)),
);