From 3b50928cb083b104043ac65433ed090c87731eb7 Mon Sep 17 00:00:00 2001 From: salmonik Date: Thu, 29 Oct 2026 17:02:49 +0100 Subject: v2.0.0: reset plays audit to a generic per-game schema --- docs/SERVER_SETUP.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs/SERVER_SETUP.md') diff --git a/docs/SERVER_SETUP.md b/docs/SERVER_SETUP.md index e2f3177..62d1a9c 100644 --- a/docs/SERVER_SETUP.md +++ b/docs/SERVER_SETUP.md @@ -69,6 +69,22 @@ On first contact the client prints the SPKI fingerprint and pins it. If you regenerate the server identity, the client will reject the new key; run `forget-host` in the client if the change is intentional. +## Database + +The server creates `server.db` in the current directory on first use. It holds +users, balances, and the per-game `plays` audit. The client keeps its own +`client.db` for host fingerprints and stored credentials. + +During development, delete both files to reset users, balances, history, and +trust: + +```sh +rm -f server.db client.db +``` + +The `plays` schema is not auto-migrated from the old slots-only shape; a stale +database must be removed. + ## Windows `--init` shells out to `openssl`, so OpenSSL must be installed and on `PATH` -- cgit v1.2.3