Files
pablan/backend/alembic/versions/717591478a2a_builtin_help_documents.py
T
ProfessorNovaandClaude Opus 5 97dbff309c Pablan, as it stands
Self-hosted knowledge management for SMEs: a split-screen Markdown editor
whose sections an LLM refines while you write, and RAG question answering
over the documents that result. FastAPI + Postgres/pgvector on the back,
SvelteKit on the front, everything OpenAI-compatible and self-hostable.

Squashed into a single commit; the development history stays local.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CA43ZJda8Rbp2hKXNy8f6b
2026-09-04 08:36:17 +02:00

33 lines
732 B
Python

"""builtin help documents
Revision ID: 717591478a2a
Revises: 15bc390bcabb
Create Date: 2026-07-20 11:28:26.085209
"""
from typing import Sequence, Union
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision: str = "717591478a2a"
down_revision: Union[str, Sequence[str], None] = "15bc390bcabb"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
"""Upgrade schema."""
op.add_column(
"documents",
sa.Column("is_builtin", sa.Boolean(), server_default="false", nullable=False),
)
def downgrade() -> None:
"""Downgrade schema."""
op.drop_column("documents", "is_builtin")