aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/7f973d010686_add_updated_date_column_to_article_table.py
blob: 150ea99033f019e7024c59d268c956254367a708 (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: 7f973d010686
Revises: 25ca960a207
Create Date: 2016-02-12 21:51:40.868539

"""

# revision identifiers, used by Alembic.
revision = '7f973d010686'
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