"""Prevent erased initial administrators from being bootstrapped again. Revision ID: 202607260005 Revises: 202607260004 Create Date: 2026-07-27 """ from alembic import op import sqlalchemy as sa revision = "202607260005" down_revision = "202607260004" branch_labels = None depends_on = None def upgrade() -> None: op.create_table( "feishu_admin_bootstrap_tombstones", sa.Column("id", sa.Integer(), autoincrement=True, nullable=False), sa.Column("identity_hash", sa.String(length=64), nullable=False), sa.Column("created_at", sa.DateTime(), nullable=False), sa.PrimaryKeyConstraint("id"), ) op.create_index( op.f("ix_feishu_admin_bootstrap_tombstones_created_at"), "feishu_admin_bootstrap_tombstones", ["created_at"], unique=False, ) op.create_index( op.f("ix_feishu_admin_bootstrap_tombstones_identity_hash"), "feishu_admin_bootstrap_tombstones", ["identity_hash"], unique=True, ) def downgrade() -> None: op.drop_table("feishu_admin_bootstrap_tombstones")