blob: bc205d6b5ec6d152dcf1e6fc81283fb3584d9aa1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
"""problem with the last upgrade
Revision ID: 661199d8768a
Revises: 3f83bfe93fc
Create Date: 2016-02-13 11:33:14.183576
"""
# revision identifiers, used by Alembic.
import sqlalchemy as sa
from alembic import op
revision = "661199d8768a"
down_revision = "3f83bfe93fc"
branch_labels = None
depends_on = None
def upgrade():
op.add_column("article", sa.Column("updated_date", sa.DateTime(), nullable=True))
def downgrade():
op.drop_column("article", "updated_date")
|