aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/661199d8768a_problem_with_the_last_upgrade.py
blob: 6c1fcc9bbc8d48355c0188b44ac7baf98e7d1dbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""problem with the last upgrade

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

"""

# revision identifiers, used by Alembic.
from alembic import op
import sqlalchemy as sa
revision = "661199d8768a"
down_revision = "3f83bfe93fc"
branch_labels = None
depends_on = None


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


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