<reponame>peuan-testai/opentestdata-api
"""

Revision ID: 21ad3631a30b
Revises: c8090718abc3
Create Date: 2019-07-31 15:57:39.244849

"""
from alembic import op
import sqlalchemy as sa


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


def upgrade():
    op.alter_column('action', 'type',
        existing_type=sa.Enum('SIGNUP', 'CONFIRM_EMAIL', 'UPDATE_USER', 'PROMOTE_USER', 'LIST_USER', 'UPLOAD_AVATAR', name='actiontype'),
        type_=sa.Enum('SIGNUP', 'CONFIRM_EMAIL', 'UPDATE_USER', 'PROMOTE_USER', 'LIST_USER', 'UPLOAD_AVATAR', 'RESEND_EMAIL_CONFIRM', name='actiontype'),
        existing_nullable=False,
        existing_server_default=None,
    )


def downgrade():
    op.alter_column('action', 'type',
        existing_type=sa.Enum('SIGNUP', 'CONFIRM_EMAIL', 'UPDATE_USER', 'PROMOTE_USER', 'LIST_USER', 'UPLOAD_AVATAR', 'RESEND_EMAIL_CONFIRM', 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,
    )

"""

Revision ID: 21ad3631a30b
Revises: c8090718abc3
Create Date: 2019-07-31 15:57:39.244849

"""
from alembic import op
import sqlalchemy as sa


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


def upgrade():
    op.alter_column('action', 'type',
        existing_type=sa.Enum('SIGNUP', 'CONFIRM_EMAIL', 'UPDATE_USER', 'PROMOTE_USER', 'LIST_USER', 'UPLOAD_AVATAR', name='actiontype'),
        type_=sa.Enum('SIGNUP', 'CONFIRM_EMAIL', 'UPDATE_USER', 'PROMOTE_USER', 'LIST_USER', 'UPLOAD_AVATAR', 'RESEND_EMAIL_CONFIRM', name='actiontype'),
        existing_nullable=False,
        existing_server_default=None,
    )


def downgrade():
    op.alter_column('action', 'type',
        existing_type=sa.Enum('SIGNUP', 'CONFIRM_EMAIL', 'UPDATE_USER', 'PROMOTE_USER', 'LIST_USER', 'UPLOAD_AVATAR', 'RESEND_EMAIL_CONFIRM', 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,
    )
Revision ID: 21ad3631a30b Revises: c8090718abc3 Create Date: 2019-07-31 15:57:39.244849 # revision identifiers, used by Alembic.