ComfyUI/alembic_db
Luke Mino-Altherr d6e6c3990a Disallow all-null meta rows: add CHECK constraint, skip null values on write
- convert_metadata_to_rows returns [] for None values instead of an all-null row
- Remove dead None branch from _scalar_to_row
- Simplify null filter in common.py to just check for row absence
- Add CHECK constraint ck_asset_reference_meta_has_value to model and migration 0003

Amp-Thread-ID: https://ampcode.com/threads/T-019cef4e-5240-7749-bb25-1f17fcf9c09c
Co-authored-by: Amp <amp@ampcode.com>
2026-03-14 22:57:01 -04:00
..
versions Disallow all-null meta rows: add CHECK constraint, skip null values on write 2026-03-14 22:57:01 -04:00
env.py fix: SQLite migration 0003 FK drop fails on file-backed DBs (MB-2) 2026-03-14 22:57:01 -04:00
README.md Add support for sqlite database (#8444) 2025-06-11 16:43:39 -04:00
script.py.mako Add support for sqlite database (#8444) 2025-06-11 16:43:39 -04:00

Generate new revision

  1. Update models in /app/database/models.py
  2. Run alembic revision --autogenerate -m "{your message}"