Fix 500 on customer revision when revision_history table is missing

Deployed databases can persist without the revision_history table,
causing /play/<token>/revise to crash with sqlite3.OperationalError.

- log_revision() now creates the table on the fly if it is missing.
- app.py runs init_db() at import time (safe CREATE TABLE IF NOT EXISTS)
  so new deployments auto-create missing tables on startup.

Bump patch version 0.4.0 -> 0.4.1.
This commit is contained in:
Troll (Hermes Agent) 2026-08-05 13:42:10 +00:00
parent 7ab8388741
commit 3f9de1449c
4 changed files with 37 additions and 10 deletions

View file

@ -1,6 +1,6 @@
# Theme Song Booth
**Version:** `v0.4.0`
**Version:** `v0.4.1`
A Flask web app for a convention booth where visitors request a custom AI-generated theme song, the operator manages the queue, and the final MP3(s) are delivered by email after payment.