"""add_index_user_literature_literature_id

Revision ID: fd8a420af4e4
Revises: d959d4b8a9f1
Create Date: 2026-07-12 19:08:34.553325
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa


revision: str = 'fd8a420af4e4'
down_revision: Union[str, None] = 'd959d4b8a9f1'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_index('ix_ul_literature', 'user_literature', ['literature_id'], unique=False)
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index('ix_ul_literature', table_name='user_literature')
    # ### end Alembic commands ###
