aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/957d4c5b8ac9_add_column_is_public_profile_to_the_.py
blob: ac5c47befe99bdf4a9c3b37bd864c769e4abad58 (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
"""add column is_public_profile to the user table

Revision ID: 957d4c5b8ac9
Revises: 2472eddbf44b
Create Date: 2016-09-20 14:35:31.302555

"""

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

revision = "957d4c5b8ac9"
down_revision = "2472eddbf44b"
branch_labels = None
depends_on = None


def upgrade():
    op.add_column("user", sa.Column("is_public_profile", sa.Boolean(), default=False))


def downgrade():
    op.drop_column("user", "is_public_profile")
bgstack15