"""Add LogEntry repo-datetime-kind index

Revision ID: 5232a5610a0a
Revises: 437ee6269a9d
Create Date: 2015-07-31 13:25:41.877733

"""

# revision identifiers, used by Alembic.
revision = '5232a5610a0a'
down_revision = '437ee6269a9d'

from alembic import op
import sqlalchemy as sa


def upgrade(tables):
    ### commands auto generated by Alembic - please adjust! ###
    op.create_index('logentry_repository_id_datetime_kind_id', 'logentry', ['repository_id', 'datetime', 'kind_id'], unique=False)
    ### end Alembic commands ###


def downgrade(tables):
    ### commands auto generated by Alembic - please adjust! ###
    op.drop_index('logentry_repository_id_datetime_kind_id', table_name='logentry')
    ### end Alembic commands ###
