Add persistent match history to server pages

This commit is contained in:
2026-09-20 21:35:35 -04:00
parent 070e7fe9f7
commit fc681c56c9
9 changed files with 170 additions and 1 deletions
+1
View File
@@ -260,6 +260,7 @@ export function db(): Database.Database {
backfillMultiScriptJoins(handle);
assertSnapshotSchemeSafe(handle);
migrateGameTelemetry(handle);
migrateTable(handle, 'leaderboard_matches', [{ name: 'start_players', ddl: 'ALTER TABLE leaderboard_matches ADD COLUMN start_players INTEGER' }]);
backfillLeaderboard(handle);
} catch (err) {
handle.close();
+1
View File
@@ -20,6 +20,7 @@ CREATE TABLE IF NOT EXISTS leaderboard_matches (
last_received_at TEXT NOT NULL,
status TEXT NOT NULL DEFAULT 'active', -- active | completed | interrupted
start_observed INTEGER NOT NULL DEFAULT 0,
start_players INTEGER,
highest_round INTEGER NOT NULL DEFAULT 0,
last_event TEXT NOT NULL,
last_fingerprint TEXT NOT NULL