Skip to content

v1.9.2

Choose a tag to compare

@DredBaron DredBaron released this 10 Sep 00:18
· 96 commits to main since this release
1a45082

v1.9.2 - SQLite Timestamp Fix

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

Since the initial schema migration, timestamp columns were defaulted to now() when no value was specified. This is valid SQL within PostgreSQL, but not SQLite. Anyone with the SQLite backend got unknown function: now() on basic actions like importing a card due to a failure to switch to a dialect-safe version. Thanks to @Roker2 for catching it (#45).

  • Corrected server_default=sa.text('now()') on cards, users, collection_entries, decks, price_history, wishlist_entries, and converted_currencies to use SQLAlchemy's dialect-aware sa.func.now(), which resolves to CURRENT_TIMESTAMP on SQLite and now() on PostgreSQL.
  • Added a migration that repairs the broken defaults on existing SQLite databases automatically on upgrade. No need to recreate the database or re-import anything.

Images

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