Renamed fc01_add_pending_task_lane → 068_add_pending_task_lane with revision ID "068" and down_revision "067". Added migration naming convention to CLAUDE.md to prevent future hex-hash migrations. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
31 lines
621 B
Python
31 lines
621 B
Python
"""add pending_task_lane to ai_sessions
|
|
|
|
Revision ID: 068
|
|
Revises: 067
|
|
Create Date: 2026-03-27
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from sqlalchemy.dialects.postgresql import JSONB
|
|
|
|
revision = "068"
|
|
down_revision = "067"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.add_column(
|
|
"ai_sessions",
|
|
sa.Column(
|
|
"pending_task_lane",
|
|
JSONB,
|
|
nullable=True,
|
|
comment="Current task lane state: {questions: [...], actions: [...]}",
|
|
),
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_column("ai_sessions", "pending_task_lane")
|