"""Add payload_json to zootech_feed_alert

Revision ID: 20260716_0011
Revises: 20260716_0010
"""

from typing import Sequence, Union

import sqlalchemy as sa
from alembic import op

revision: str = "20260716_0011"
down_revision: Union[str, None] = "20260716_0010"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    op.add_column("zootech_feed_alert", sa.Column("payload_json", sa.Text(), nullable=True))


def downgrade() -> None:
    op.drop_column("zootech_feed_alert", "payload_json")
