"""Add sub_file_type to processor and document_version

Revision ID: 4bf121f340e5
Revises: e54c830a88c9
Create Date: 2024-11-11 13:03:23.265230

"""
from alembic import op
import sqlalchemy as sa
import pgvector


# revision identifiers, used by Alembic.
revision = '4bf121f340e5'
down_revision = 'e54c830a88c9'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('document_version', sa.Column('sub_file_type', sa.String(length=50), nullable=True))
    op.add_column('processor', sa.Column('sub_file_type', sa.String(length=50), nullable=True))
    # ### end Alembic commands ###


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