"""system_path_patterns — a System names the files that are its area (milestone 444 step 3, #4756) Revision ID: 0113 Revises: 0112 Create Date: 2026-10-02 A JSONB list of globs relative to the repo root. NOT NULL with a `[]` default, so an existing System reads as "no paths yet" rather than as NULL. No backfill: which files are which area is a judgment, and the charters that name directories in prose are not a mapping anyone confirmed. """ import sqlalchemy as sa from alembic import op from sqlalchemy.dialects import postgresql revision = "0113" down_revision = "0112" branch_labels = None depends_on = None def upgrade() -> None: op.add_column( "systems", sa.Column( "path_patterns", postgresql.JSONB(), nullable=False, server_default=sa.text("'[]'::jsonb"), ), ) def downgrade() -> None: op.drop_column("systems", "path_patterns")