"""

Revision ID: e8a76b87ea48
Revises: 21ad3631a30b
Create Date: 2019-08-02 14:32:24.103442

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

# revision identifiers, used by Alembic.
revision = 'e8a76b87ea48'
down_revision = '21ad3631a30b'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('data', sa.Column('value', sa.String(length=1024), nullable=False))
    op.drop_column('data', 'datum')
    op.drop_column('data', 'mode')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('data', sa.Column('mode', mysql.ENUM('NEUTRAL', 'POSITIVE', 'NEGATIVE', 'EDGE', 'DESTRUCTIVE', collation='utf8mb4_general_ci'), nullable=False))
    op.add_column('data', sa.Column('datum', mysql.VARCHAR(collation='utf8mb4_general_ci', length=1024), nullable=False))
    op.drop_column('data', 'value')
    # ### end Alembic commands ###
