JSON Import für Testdaten & Funktion zum Löschen aller Daten #33

Merged
flixcoo merged 44 commits from feature/31-json-import-fuer-testdaten into development 2025-11-22 16:47:15 +00:00
2 changed files with 2 additions and 0 deletions
Showing only changes of commit f7073a83a4 - Show all commits

View File

@@ -46,6 +46,7 @@ class PlayerGameDao extends DatabaseAccessor<AppDatabase>
}) async { }) async {
await into(playerGameTable).insert( await into(playerGameTable).insert(
PlayerGameTableCompanion.insert(playerId: playerId, gameId: gameId), PlayerGameTableCompanion.insert(playerId: playerId, gameId: gameId),
mode: InsertMode.insertOrReplace,
); );
} }
} }

View File

@@ -56,6 +56,7 @@ class PlayerGroupDao extends DatabaseAccessor<AppDatabase>
await into(playerGroupTable).insert( await into(playerGroupTable).insert(
PlayerGroupTableCompanion.insert(playerId: player.id, groupId: groupId), PlayerGroupTableCompanion.insert(playerId: player.id, groupId: groupId),
mode: InsertMode.insertOrReplace,
); );
return true; return true;