Skip to content

v1.9.2 - SQLite Timestamp Fix - #46

Merged
DredBaron merged 4 commits into
mainfrom
dev
Sep 10, 2026
Merged

v1.9.2 - SQLite Timestamp Fix#46
DredBaron merged 4 commits into
mainfrom
dev

Conversation

@DredBaron

Copy link
Copy Markdown
Owner

What changed and why

All database migrations used PostgreSQL-only SQL now() as the default value for several timestamp columns, which caused every write to those columns to fail with unknown function: now() on SQLite-backed installs. This fix corrects the migrations to use SQLAlchemy's dialect-aware func.now() instead, and adds a new migration that repairs the broken defaults on existing SQLite databases automatically on upgrade.

Type of change

  • Bug fix
  • New feature
  • Refactor / chore
  • Documentation

Testing

  • pytest passes with no warnings
    1 pre-existing xfail (documented SQLite downgrade gap, not introduced by this change) and 1 pre-existing warning (httpx/TestClient deprecation, unrelated). All other tests pass, test suite is being updated to take these into account.
  • npm run lint passes (frontend changes)
    No frontend changes have been made this release.

Manually ran and passed database migrations to ensure no data loss on error correction.

Related issues

Closes #45


Note: Purely AI-generated code is not accepted. By submitting this PR you confirm the code is human-written or human-reviewed.

@DredBaron DredBaron self-assigned this Sep 10, 2026
@DredBaron
DredBaron merged commit 1a45082 into main Sep 10, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can not import cards from plain text

1 participant