aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/8bf5694c0b9e_add_column_automatic_crawling_to_the_.py
blob: 011da048f4a560ed82e36a8a8d8156b59965be2c (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
"""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

import sqlalchemy as sa
from alembic import op


def upgrade():
    op.add_column("user", sa.Column("automatic_crawling", sa.Boolean(), default=True))


def downgrade():
    op.drop_column("user", "automatic_crawling")
bgstack15