"""Specialist STANDARD_RAG renamed

Revision ID: 209ae2db55f0
Revises: b9cc547a0512
Create Date: 2025-02-08 14:58:29.960295

"""
from alembic import op
import sqlalchemy as sa
import pgvector
from sqlalchemy import table, column, String
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = '209ae2db55f0'
down_revision = 'b9cc547a0512'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    # Define specialist table structure needed for the update
    specialist = table('specialist',
                       column('id', sa.Integer),
                       column('type', String)
                       )

    # Update all specialists with type STANDARD_RAG to STANDARD_RAG_SPECIALIST
    op.execute(
        specialist.update().
        where(specialist.c.type == 'STANDARD_RAG').
        values(type='STANDARD_RAG_SPECIALIST')
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    pass
    # ### end Alembic commands ###
