<reponame>lazytype/ent
# Code generated by github.com/lolopinto/ent/ent, DO NOT edit. 

"""add column email_address to table users
add unique constraint users_unique_email_address

Revision ID: <KEY>
Revises: d4<PASSWORD>
Create Date: 2020-03-18 17:56:02.814172+00:00

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = 'd4bce0224501'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('users', sa.Column('email_address', sa.Text(), nullable=False))
    op.create_unique_constraint('users_unique_email_address', 'users', ['email_address'])
    # ### end Alembic commands ###


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

# Code generated by github.com/lolopinto/ent/ent, DO NOT edit. 

"""add column email_address to table users
add unique constraint users_unique_email_address

Revision ID: <KEY>
Revises: d4<PASSWORD>
Create Date: 2020-03-18 17:56:02.814172+00:00

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = 'd4bce0224501'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('users', sa.Column('email_address', sa.Text(), nullable=False))
    op.create_unique_constraint('users_unique_email_address', 'users', ['email_address'])
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint('users_unique_email_address', 'users', type_='unique')
    op.drop_column('users', 'email_address')
    # ### end Alembic commands ###
# Code generated by github.com/lolopinto/ent/ent, DO NOT edit. add column email_address to table users add unique constraint users_unique_email_address  Revision ID: <KEY> Revises: d4<PASSWORD> Create Date: 2020-03-18 17:56:02.814172+00:00 # revision identifiers, used by Alembic. # ### commands auto generated by Alembic - please adjust! ### # ### end Alembic commands ### # ### commands auto generated by Alembic - please adjust! ### # ### end Alembic commands ###