"""Add Active Flag to Processor

Revision ID: b1647f31339a
Revises: 2b6ae6cc923e
Create Date: 2025-06-25 12:34:35.391516

"""
from alembic import op
import sqlalchemy as sa
import pgvector
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = 'b1647f31339a'
down_revision = '2b6ae6cc923e'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('processor', sa.Column('active', sa.Boolean(), nullable=True))
    op.execute("UPDATE processor SET active = true")
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('processor', 'active')
    # ### end Alembic commands ###
