blob: 5728449ab7d2df0f619457f67590697c9cdc11ef (
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
|
"""add column automatic_crawling to the user table
Revision ID: 8bf5694c0b9e
Revises: 5553a6c05fa7
Create Date: 2016-10-06 13:47:32.784711
"""
# revision identifiers, used by Alembic.
revision = '8bf5694c0b9e'
down_revision = '5553a6c05fa7'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('user', sa.Column('automatic_crawling',
sa.Boolean(), default=True))
def downgrade():
op.drop_column('user', 'automatic_crawling')
|