"""add_enable_internet_access

Revision ID: c7737fa6338a
Revises: bf73d15eca35
Create Date: 2026-01-21 10:24:39.578327

"""

from collections.abc import Sequence

import sqlalchemy as sa

from alembic import op

# revision identifiers, used by Alembic.
revision: str = "c7737fa6338a"
down_revision: str | None = "bf73d15eca35"
branch_labels: str | Sequence[str] | None = None
depends_on: str | Sequence[str] | None = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column(
        "agent_preset",
        sa.Column(
            "enable_internet_access",
            sa.Boolean(),
            server_default=sa.text("false"),
            nullable=False,
        ),
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("agent_preset", "enable_internet_access")
    # ### end Alembic commands ###
