|
Fix DDL race condition and PostgreSQL syntax error on startup
- _ensure_auth_tables now uses raw asyncpg.connect instead of get_session_store, avoiding PgSessionStore._MIGRATE running before navi_users exists - Move _ensure_auth_tables before ensure_tables in startup so navi_users is created before any foreign-key references - Replace invalid "ADD CONSTRAINT IF NOT EXISTS" with DO $$ block for memory_facts_user_cat_key Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
|---|
|
|
| .env.example |
|---|
| navi/auth/_ddl.py |
|---|
| navi/main.py |
|---|
| navi/memory/_ddl.py |
|---|