blob: 3b49829b7638d790e1f36d560ea3fc6fc7eb9a61 (
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"
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")
|