blob: e7ef9b38a0597a41452d7031a895cb192e8c161d (
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 twitter in the user table
Revision ID: 5553a6c05fa7
Revises: f700c4237e9d
Create Date: 2016-10-06 11:02:41.356322
"""
# revision identifiers, used by Alembic.
revision = "5553a6c05fa7"
down_revision = "f700c4237e9d"
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column("user", sa.Column("twitter", sa.String(), default=""))
def downgrade():
op.drop_column("user", "twitter")
|