Added insert mode
This commit is contained in:
@@ -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,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user