Skip to content

v1.9.1

Choose a tag to compare

@DredBaron DredBaron released this 31 Aug 00:51
· 101 commits to main since this release
438bf47

v1.9.1 - SQLite and In-Deck indicator

Quick Start

$ git clone https://github.com/DredBaron/OpenMTG

$ cd OpenMTG

$ mv .env.example .env

$ docker compose up -d

See the README or Installation Wiki for full setup instructions.

Changes

  • Migration portability test suite - backend/tests/test_migration_dialect_safety.py statically scans every migration for op.alter_column/op.drop_column calls outside batch_alter_table, which break on SQLite. backend/tests/test_migration_schema_parity.py replays the real Alembic chain against a fresh SQLite database and a fresh PostgreSQL database and diffs the resulting schemas.
  • Deck Usage Tracking - Shows how many copies of a card printing are currently allocated to decks.
  • SQLite Database Support - PostgreSQL remains the default; docker-compose.sqlite.yml runs the app against a local SQLite file instead. Permanent, per-instance choice, there is no tool to convert an existing instance between backends.
  • app and db in docker-compose.yml, and app in docker-compose.sqlite.yml, now set container_name (openmtg, openmtg-db) instead of Compose's default <project>-app-1 naming.
  • POST /auth/setup writes $CONFIG_PATH/db_backend.lock after the first admin account is created. entrypoint.sh compares this against the current DATABASE_URL on every boot and refuses to start on a mismatch.

Images

  • ghcr.io/dredbaron/openmtg:latest
  • ghcr.io/dredbaron/openmtg-arm64:latest
  • ghcr.io/dredbaron/openmtg:v1.9.1
  • ghcr.io/dredbaron/openmtg-arm64:v1.9.1