aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/661199d8768a_problem_with_the_last_upgrade.py
blob: 0989a89248aa513d75bef02515b8009a299f2b6c (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
"""problem with the last upgrade

Revision ID: 661199d8768a
Revises: 3f83bfe93fc
Create Date: 2016-02-13 11:33:14.183576

"""

# revision identifiers, used by Alembic.
revision = "661199d8768a"
down_revision = "3f83bfe93fc"
branch_labels = None
depends_on = None

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column("article", sa.Column("updated_date", sa.DateTime(), nullable=True))


def downgrade():
    op.drop_column("article", "updated_date")
bgstack15