"""add_content_to_outlineitem

Revision ID: c10b5c691b59
Revises: f0ebb5447ad0
Create Date: 2025-09-08 06:36:39.731208

"""

from alembic import op
import sqlalchemy as sa

# revision identifiers, used by Alembic.
revision = "c10b5c691b59"
down_revision = "f0ebb5447ad0"
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table("shifu_draft_outline_items", schema=None) as batch_op:
        batch_op.add_column(
            sa.Column(
                "content", sa.Text(), nullable=False, comment="MarkdownFlow content"
            )
        )

    with op.batch_alter_table("shifu_published_outline_items", schema=None) as batch_op:
        batch_op.add_column(
            sa.Column(
                "content", sa.Text(), nullable=False, comment="MarkdownFlow content"
            )
        )

    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table("shifu_published_outline_items", schema=None) as batch_op:
        batch_op.drop_column("content")

    with op.batch_alter_table("shifu_draft_outline_items", schema=None) as batch_op:
        batch_op.drop_column("content")
    # ### end Alembic commands ###
