"""removed collection from source integration config should be used

Revision ID: cc27b20a106e
Revises: b789e61df26a
Create Date: 2025-11-03 16:33:41.227671

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = 'cc27b20a106e'
down_revision: Union[str, Sequence[str], None] = 'b789e61df26a'
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.drop_index(op.f('source_collection_id_idx'), table_name='source')
    op.create_index(op.f('source_collection_id_idx'), 'source', ['collection_id'], unique=False)
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f('source_collection_id_idx'), table_name='source')
    op.create_index(op.f('source_collection_id_idx'), 'source', ['collection_id'], unique=True)
    # ### end Alembic commands ###
