cbfdf5289e
Phase 5: Multi-user authentication with session cookies, bcrypt passwords, first-user-is-admin pattern, per-user data isolation, backup/restore, Docker Swarm production stack with secrets and network isolation. Phase 5.1: Chat UX improvements: - Background generation architecture (GenerationBuffer + asyncio task) with SSE fan-out, reconnect support, and periodic DB flushes - LLM-generated conversation titles (first exchange + every 10th message) - Stop generation button with cancel_event and partial content preservation - Relative timestamps in sidebar (5m ago, 3h ago, then dates) - Empty chat auto-cleanup on navigation away - Save-as-note uses LLM for title generation, tags notes with "chat" - Summarize-as-note also tags with "chat" Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
27 lines
530 B
Python
27 lines
530 B
Python
"""add message status column
|
|
|
|
Revision ID: 0009
|
|
Revises: 0008
|
|
Create Date: 2026-02-11 00:00:00.000000
|
|
"""
|
|
|
|
from alembic import op
|
|
|
|
revision = "0009"
|
|
down_revision = "0008"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.execute("""
|
|
DO $$ BEGIN
|
|
ALTER TABLE messages ADD COLUMN status TEXT NOT NULL DEFAULT 'complete';
|
|
EXCEPTION WHEN duplicate_column THEN NULL;
|
|
END $$
|
|
""")
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.execute("ALTER TABLE messages DROP COLUMN IF EXISTS status")
|