"""added sparse embeddings field in vector table

Revision ID: 88f01df468f2
Revises: c6c36663acd5
Create Date: 2025-12-07 22:36:24.341356

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa
from prism_models.qdrant import PydanticType, SparseEmbedding


# revision identifiers, used by Alembic.
revision: str = '88f01df468f2'
down_revision: Union[str, Sequence[str], None] = 'c6c36663acd5'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    """Upgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('vector', sa.Column('sparse_embeddings', PydanticType(SparseEmbedding), nullable=True))
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('vector', 'sparse_embeddings')
    # ### end Alembic commands ###
