blob: 35117965f72aed20a75f53e42f5d6b74334f0185 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
"""add column entry_id
Revision ID: 48f561c0ce6
Revises:
Create Date: 2015-02-18 21:17:19.346998
"""
# revision identifiers, used by Alembic.
revision = "48f561c0ce6"
down_revision = None
branch_labels = None
depends_on = None
import sqlalchemy as sa
from alembic import op
import conf
def upgrade():
op.add_column("article", sa.Column("entry_id", sa.String(), nullable=True))
def downgrade():
if "sqlite" not in conf.SQLALCHEMY_DATABASE_URI:
op.drop_column("article", "entry_id")
|