"""

Revision ID: c8090718abc3
Revises: 410649dcf541
Create Date: 2019-07-31 09:37:10.557240

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

# revision identifiers, used by Alembic.
revision = 'c8090718abc3'
down_revision = '410649dcf541'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('action', 'type',
        existing_type=sa.Enum('SIGNUP', 'CONFIRM_EMAIL', 'UPDATE_USER', 'PROMOTE_USER', 'LIST_USER', name='actiontype'),
        type_=sa.Enum('SIGNUP', 'CONFIRM_EMAIL', 'UPDATE_USER', 'PROMOTE_USER', 'LIST_USER', 'UPLOAD_AVATAR', name='actiontype'),
        existing_nullable=False,
        existing_server_default=None,
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('action', 'type',
        type_=sa.Enum('SIGNUP', 'CONFIRM_EMAIL', 'UPDATE_USER', 'PROMOTE_USER', 'LIST_USER', name='actiontype'),
        existing_type=sa.Enum('SIGNUP', 'CONFIRM_EMAIL', 'UPDATE_USER', 'PROMOTE_USER', 'LIST_USER', 'UPLOAD_AVATAR', name='actiontype'),
        existing_nullable=False,
        existing_server_default=None,
    )
    # ### end Alembic commands ###
