blob: f464849aeef5a529d3083e2fa60a8ae2eb18d74a (
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
|
"""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 conf
from alembic import op
import sqlalchemy as sa
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')
|