aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/661199d8768a_problem_with_the_last_upgrade.py
blob: 04a5ac8712c8db874a5dea5577ad8044684724df (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

import sqlalchemy as sa
from alembic import op


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


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