Add persistent match history to server pages
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user