"""alert_sent What the alert manager has sent, so a cooldown holds across a restart. Revision ID: b9e4d2a7c1f6 Revises: a3c7e5d91f42 Create Date: 2026-10-28 """ import sqlalchemy as sa import sqlmodel.sql.sqltypes from alembic import op # revision identifiers, used by Alembic. revision = "b9e4d2a7c1f6" down_revision = "a3c7e5d91f42" branch_labels = None depends_on = None def upgrade(): op.create_table( "alert_sent", sa.Column("id", sa.Integer(), nullable=False), sa.Column("key", sqlmodel.sql.sqltypes.AutoString(length=255), nullable=False), sa.Column("ts", sa.Float(), nullable=False), sa.PrimaryKeyConstraint("id"), ) op.create_index(op.f("ix_alert_sent_ts"), "alert_sent", ["ts"], unique=False) def downgrade(): op.drop_index(op.f("ix_alert_sent_ts"), table_name="alert_sent") op.drop_table("alert_sent")