"""0002

Revision ID: 0002
Revises: 0001
Create Date: 2017-06-23 15:29:49.927036

"""

# revision identifiers, used by Alembic.
revision = '0002'
down_revision = '0001'
branch_labels = None
depends_on = None

from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql

def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('rfid_event', schema=None) as batch_op:
        batch_op.create_index(batch_op.f('ix_rfid_event_last_detected_at'), ['last_detected_at'], unique=False)
        batch_op.create_index(batch_op.f('ix_rfid_event_rfid'), ['rfid'], unique=False)

    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('rfid_event', schema=None) as batch_op:
        batch_op.drop_index(batch_op.f('ix_rfid_event_rfid'))
        batch_op.drop_index(batch_op.f('ix_rfid_event_last_detected_at'))
    # ### end Alembic commands ###
