c14363cf9b_.py 711 Bytes
Newer Older
Robin Sonnabend's avatar
Robin Sonnabend committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
"""empty message

Revision ID: c14363cf9b
Revises: 201dda3f23e
Create Date: 2015-11-07 20:59:17.755968

"""

# revision identifiers, used by Alembic.
revision = 'c14363cf9b'
down_revision = '201dda3f23e'

from alembic import op
import sqlalchemy as sa


def upgrade():
    ### commands auto generated by Alembic - please adjust! ###
    op.add_column('topics', sa.Column('index', sa.Integer(), nullable=True))
    op.create_unique_constraint(None, 'topics', ['index'])
    ### end Alembic commands ###


def downgrade():
    ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(None, 'topics', type_='unique')
    op.drop_column('topics', 'index')
    ### end Alembic commands ###