"""prompt experiments row filter

Revision ID: 2cb1d34dafa5
Revises: 7bff101b1a7a
Create Date: 2025-11-21 17:44:49.709554

"""

from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = "2cb1d34dafa5"
down_revision = "7bff101b1a7a"
branch_labels = None
depends_on = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column(
        "prompt_experiments",
        sa.Column(
            "dataset_row_filter", postgresql.JSON(astext_type=sa.Text()), nullable=True
        ),
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("prompt_experiments", "dataset_row_filter")
    # ### end Alembic commands ###
