Fehlende Methoden für Games Datenbank inplementieren #76

Merged
flixcoo merged 35 commits from feature/74-fehlende-methoden-für-games-datenbank-inplementieren into development 2025-12-05 17:54:13 +00:00
Showing only changes of commit 126dc7ed97 - Show all commits

View File

@@ -16,6 +16,9 @@ class GroupGameDao extends DatabaseAccessor<AppDatabase>
required String gameId, required String gameId,
required String groupId, required String groupId,
flixcoo marked this conversation as resolved
Review

sind hier nicht addGroupToGame und updateGroupOfGame redundant? Zumindest steht bei addGroupToGame ja, dass es replaced wird, wenn's existiert

sind hier nicht addGroupToGame und updateGroupOfGame redundant? Zumindest steht bei addGroupToGame ja, dass es replaced wird, wenn's existiert
}) async { }) async {
if (await gameHasGroup(gameId: gameId)) {
throw Exception('Game already has a group');
}
await into(groupGameTable).insert( await into(groupGameTable).insert(
GroupGameTableCompanion.insert(groupId: groupId, gameId: gameId), GroupGameTableCompanion.insert(groupId: groupId, gameId: gameId),
mode: InsertMode.insertOrReplace, mode: InsertMode.insertOrReplace,