aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/3f83bfe93fc_add_updated_date_column_to_article_table.py
blob: 3fd624cf8bee46aa79a108b03f6a559d5e44f378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""add updated_date column to article table

Revision ID: 3f83bfe93fc
Revises: 25ca960a207
Create Date: 2016-02-12 21:51:40.868539

"""

# revision identifiers, used by Alembic.
from alembic import op
import sqlalchemy as sa
revision = "3f83bfe93fc"
down_revision = "25ca960a207"


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


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