"""drop stored think_enabled rows — setting was removed

Revision ID: 0050
Revises: 0049
Create Date: 2026-05-23

The `think_enabled` user setting was retired with the chat+curator
architecture: chat has tools=[] and curator hardcodes think=False, so
the toggle was dead weight. Any rows already in `settings` for that
key are now unread by the app; this migration clears them.
"""
from alembic import op


revision = "0050"
down_revision = "0049"
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.execute("DELETE FROM settings WHERE key = 'think_enabled'")


def downgrade() -> None:
    # No-op. The setting is dead; restoring NULL rows wouldn't help.
    pass
