aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py
blob: 79b687b370274af1c6c402d9b221922a92f5b749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""add bio column to user table

Revision ID: fa10b0bdd045
Revises: 8bf5694c0b9e
Create Date: 2016-10-07 10:43:04.428178

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

revision = "fa10b0bdd045"
down_revision = "8bf5694c0b9e"
branch_labels = None
depends_on = None


def upgrade():
    op.add_column("user", sa.Column("bio", sa.String(5000), default=""))


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