<reponame>johnnykwwang/Halite-III<gh_stars>1-10
"""Make email unique

Revision ID: a<PASSWORD>
Revises: <PASSWORD>
Create Date: 2018-09-25 12:45:45.826292+00:00

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


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


def upgrade():
    op.create_unique_constraint("uq_user_email", "user", ["email"])


def downgrade():
    op.drop_constraint("uq_user_email", "user")

"""Make email unique

Revision ID: a<PASSWORD>
Revises: <PASSWORD>
Create Date: 2018-09-25 12:45:45.826292+00:00

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


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


def upgrade():
    op.create_unique_constraint("uq_user_email", "user", ["email"])


def downgrade():
    op.drop_constraint("uq_user_email", "user")
Make email unique  Revision ID: a<PASSWORD> Revises: <PASSWORD> Create Date: 2018-09-25 12:45:45.826292+00:00 # revision identifiers, used by Alembic.