Repository navigation
v1.9.2
v1.9.2 - SQLite Timestamp Fix
Quick Start
$ git clone https://github.com/DredBaron/OpenMTG
$ cd OpenMTG
$ mv .env.example .env
$ docker compose up -dSee 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()')oncards,users,collection_entries,decks,price_history,wishlist_entries, andconverted_currenciesto use SQLAlchemy's dialect-awaresa.func.now(), which resolves toCURRENT_TIMESTAMPon SQLite andnow()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