aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/8bf5694c0b9e_add_column_automatic_crawling_to_the_.py
blob: c2262decd187db17729a297884dc0672c0f5bc2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""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.
from alembic import op
import sqlalchemy as sa
revision = "8bf5694c0b9e"
down_revision = "5553a6c05fa7"
branch_labels = None
depends_on = None


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


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