Add render_as_batch for SQLite and document migration rules

- Set render_as_batch=True in Alembic env.py so autogenerated
  migrations use batch mode for SQLite compatibility
- Add SQLite + Alembic section to CLAUDE.md with rules for
  avoiding circular dependency and idempotency issues

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-03 10:41:36 -04:00
parent f1a05a68a8
commit 7402f18bcf
2 changed files with 11 additions and 0 deletions

View File

@@ -100,6 +100,7 @@ def run_migrations_online():
context.configure(
connection=connection,
target_metadata=get_metadata(),
render_as_batch=True,
**conf_args
)