aboutsummaryrefslogtreecommitdiffstats
path: root/alembic/versions/451f61f7f7cb_add_is_verified_column.py
blob: bed4a0c5ca672fe944e40e91447678b3b113e911 (plain) (blame)
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
29
30
31
"""
Add is_verified column.

Revision ID: 451f61f7f7cb
Revises: 5683123ff89a
Create Date: 2020-08-29 17:19:32.029529

"""
import sqlalchemy as sa

from alembic import op

# revision identifiers, used by Alembic.
revision = "451f61f7f7cb"
down_revision = "5683123ff89a"
branch_labels = None
depends_on = None


def upgrade() -> None:
    """Apply the current migration."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column("users", sa.Column("is_verified", sa.Boolean(), nullable=True))
    # ### end Alembic commands ###


def downgrade() -> None:
    """Revert the current migration."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("users", "is_verified")
    # ### end Alembic commands ###