"""empty message

Revision ID: d2c96bebc596
Revises: 7697154d0a4b
Create Date: 2019-02-02 21:37:53.802259

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'd2c96bebc596'
down_revision = '7697154d0a4b'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('member', sa.Column('bio', sa.UnicodeText(), nullable=True))
    op.add_column('member', sa.Column('innovation', sa.Integer(), nullable=True))
    op.add_column('member', sa.Column('name', sa.Unicode(length=32), nullable=True))
    op.add_column('member', sa.Column('newsletter', sa.Boolean(), nullable=True))
    op.add_column('member', sa.Column('xp', sa.Integer(), nullable=True))
    op.create_index(op.f('ix_member_name'), 'member', ['name'], unique=True)
    op.drop_index('ix_member_username', table_name='member')
    op.drop_column('member', 'xp_points')
    op.drop_column('member', 'receive_newsletter')
    op.drop_column('member', 'biography')
    op.drop_column('member', 'username')
    op.drop_column('member', 'innovation_points')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('member', sa.Column('innovation_points', sa.INTEGER(), autoincrement=False, nullable=True))
    op.add_column('member', sa.Column('username', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.add_column('member', sa.Column('biography', sa.TEXT(), autoincrement=False, nullable=True))
    op.add_column('member', sa.Column('receive_newsletter', sa.BOOLEAN(), autoincrement=False, nullable=True))
    op.add_column('member', sa.Column('xp_points', sa.INTEGER(), autoincrement=False, nullable=True))
    op.create_index('ix_member_username', 'member', ['username'], unique=True)
    op.drop_index(op.f('ix_member_name'), table_name='member')
    op.drop_column('member', 'xp')
    op.drop_column('member', 'newsletter')
    op.drop_column('member', 'name')
    op.drop_column('member', 'innovation')
    op.drop_column('member', 'bio')
    # ### end Alembic commands ###
