docs: update architecture and development docs with recent additions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-25 10:56:44 -04:00
parent e57ac26749
commit fe6afbad17
2 changed files with 42 additions and 4 deletions
+2 -1
View File
@@ -117,7 +117,7 @@ Current migration sequence (all idempotent raw SQL):
0016 add_image_cache
0017 add_projects
0018 add_push_subscriptions
0019 add_note_parent_and_project_fields
0019 add_events (dead code — internal CalDAV/Radicale table; Radicale was removed)
0020 add_milestones
0021 add_task_logs
0022 add_note_versions_and_drafts
@@ -125,6 +125,7 @@ Current migration sequence (all idempotent raw SQL):
0024 add_session_version
0025 add_sharing_and_notifications
0026 add_briefing_tables
0027 add_api_keys
```
**Important:** Do NOT use `op.create_table()` or `sa.Enum()` — SQLAlchemy's event system can fire `CREATE TYPE` even with `create_type=False`, causing failures on re-run. Always use raw SQL with `IF NOT EXISTS` / `DO $$ BEGIN ... EXCEPTION WHEN duplicate_object` guards.