"""UE.semestre_idx

Revision ID: c8efc54586d8
Revises: 6cfc21a7ae1b
Create Date: 2021-11-14 17:35:39.602613

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'c8efc54586d8'
down_revision = '6cfc21a7ae1b'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('notes_ue', sa.Column('semestre_idx', sa.Integer(), nullable=True))
    op.create_index(op.f('ix_notes_ue_semestre_idx'), 'notes_ue', ['semestre_idx'], unique=False)
    # ### end Alembic commands ###


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