"""drop_ssh_key_id_from_config_profiles

Revision ID: 2026_05_29_drop_ssh_key_id_from_config_profiles
Revises: 069d3da4dc9b
Create Date: 2026-05-29 12:45:00.000000
"""

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = "2026_05_29_drop_ssh_key_id_from_config_profiles"
down_revision = "069d3da4dc9b"
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.drop_column("config_profiles", "ssh_key_id")


def downgrade() -> None:
    op.add_column(
        "config_profiles",
        sa.Column(
            "ssh_key_id",
            sa.Uuid(),
            sa.ForeignKey("ssh_keys.id", ondelete="SET NULL"),
            nullable=True,
        ),
    )
