"""add url index to attachments

Revision ID: a7d4b6a52fd7
Revises: d6a71974be92
Create Date: 2025-10-07 15:57:02.039819

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'a7d4b6a52fd7'
down_revision = 'd6a71974be92'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_index(op.f('ix_cmf_attachment_url'), 'cmf_attachment', ['url'], unique=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f('ix_cmf_attachment_url'), table_name='cmf_attachment')
    # ### end Alembic commands ###
