Store cumulative player scores alongside balances
CI / checks (push) Successful in 6m27s

This commit is contained in:
2026-10-12 13:57:34 -04:00
parent 76325b99ad
commit 6059ebf2a5
12 changed files with 181 additions and 5 deletions
@@ -57,7 +57,9 @@ it('upgrades version 17 without inventing reporter identity or changing historic
last_seq: 0,
report_count: 0
});
expect(handle.prepare('SELECT * FROM leaderboard_match_players').all()).toEqual(players);
expect(handle.prepare('SELECT * FROM leaderboard_match_players').all()).toEqual(
players.map((player) => ({ ...(player as Record<string, unknown>), score_total: null }))
);
expect(handle.prepare('SELECT * FROM match_chat').all()).toEqual(chat);
expect(handle.prepare('SELECT * FROM leaderboard_match_reports').all()).toEqual([]);
expect(handle.pragma('foreign_key_check')).toEqual([]);