aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/e58a3596b899_add_email_confirmation_field.py
blob: 215a1f4e48ac0a1a7becec4bcbf8c4fbb0a672d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""add email confirmation field

Revision ID: e58a3596b899
Revises: 878e8193ae4d
Create Date: 2019-03-26 15:05:01.522435

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'e58a3596b899'
down_revision = '878e8193ae4d'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('user', sa.Column('is_confirmed', sa.Boolean(), nullable=True))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('user', 'is_confirmed')
    # ### end Alembic commands ###