"""Classify C3 alert rules without changing existing rule behavior."""
from alembic import op
import sqlalchemy as sa


revision = "r3f4g5h6i7j8"
down_revision = "q2f3g4h5i6j7"
branch_labels = None
depends_on = None


def upgrade():
    op.add_column(
        "meter_alert_rules",
        sa.Column(
            "rule_type", sa.String(length=30), nullable=False,
            server_default="MANUAL_THRESHOLD",
        ),
    )


def downgrade():
    op.drop_column("meter_alert_rules", "rule_type")
