The pending_task_lane migration was branching from fb1481317ff6 which already had a child (4f4137ce79e5). Fixes multiple-heads error. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
31 lines
657 B
Python
31 lines
657 B
Python
"""add pending_task_lane to ai_sessions
|
|
|
|
Revision ID: fc01a1b2c3d4
|
|
Revises: fb1481317ff6
|
|
Create Date: 2026-03-27
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from sqlalchemy.dialects.postgresql import JSONB
|
|
|
|
revision = "fc01a1b2c3d4"
|
|
down_revision = "4f4137ce79e5"
|
|
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")
|