aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/bdd38bd755cb_remove_email_attribute_from_users_.py
blob: ce5037fedfbaa4b2905284fd4f1338626acec8ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""remove email attribute from users objects

Revision ID: bdd38bd755cb
Revises: b329a1a7366f
Create Date: 2018-04-04 23:26:52.517804

"""
# revision identifiers, used by Alembic.
import sqlalchemy as sa
from alembic import op

revision = "bdd38bd755cb"
down_revision = "b329a1a7366f"
branch_labels = None
depends_on = None


def upgrade():
    op.drop_column("user", "email")


def downgrade():
    op.add_column("user", sa.Column("email", sa.String(254), unique=True, index=True))
bgstack15