blob: 2c67450c58bab04e837f4d040da24a1d183c347c (
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')
|