ComfyUI/alembic_db
Luke Mino-Altherr b6e0df3cdd
Some checks failed
Python Linting / Run Ruff (push) Has been cancelled
Python Linting / Run Pylint (push) Has been cancelled
Fix migration constraint naming double-prefix and NULL in mixed metadata lists
- Use fully-rendered constraint names in migration 0003 to avoid the
  naming convention doubling the ck_ prefix on batch operations.
- Add table_args to downgrade so SQLite batch mode can find the CHECK
  constraint (not exposed by SQLite reflection).
- Fix model CheckConstraint name to use bare 'has_value' (convention
  auto-prefixes).
- Skip None items when converting metadata lists to rows, preventing
  all-NULL rows that violate the has_value check constraint.

Amp-Thread-ID: https://ampcode.com/threads/T-019cef87-94f9-7172-a6af-c6282290ce4f
Co-authored-by: Amp <amp@ampcode.com>
2026-03-16 09:39:26 -04:00
..
versions Fix migration constraint naming double-prefix and NULL in mixed metadata lists 2026-03-16 09:39:26 -04:00
env.py fix: SQLite migration 0003 FK drop fails on file-backed DBs (MB-2) 2026-03-16 09:39:26 -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}"