"""connector_state A place for a connector to keep what has to outlive a restart, such as the certificate a Hue bridge presented on first contact. Keyed by the connector's package, so the nodes of one package share it. Revision ID: f8c3e5a91d27 Revises: d5a3c8e1f246 Create Date: 2026-10-06 """ import sqlalchemy as sa import sqlmodel.sql.sqltypes from alembic import op # revision identifiers, used by Alembic. revision = "f8c3e5a91d27" down_revision = "d5a3c8e1f246" branch_labels = None depends_on = None def upgrade(): op.create_table( "connector_state", sa.Column( "connector", sqlmodel.sql.sqltypes.AutoString(length=100), nullable=False ), sa.Column("key", sqlmodel.sql.sqltypes.AutoString(length=200), nullable=False), sa.Column("value", sqlmodel.sql.sqltypes.AutoString(), nullable=False), sa.Column("updated_at", sa.DateTime(timezone=True), nullable=False), sa.PrimaryKeyConstraint("connector", "key"), ) def downgrade(): op.drop_table("connector_state")