aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/3f83bfe93fc_add_updated_date_column_to_article_table.py
blob: 1be2abed39207ae68dfa520309fd846c8d8bd239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""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.
revision = "3f83bfe93fc"
down_revision = "25ca960a207"

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