aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/1b750a389c22_remove_email_notification_column.py
blob: 60e02687246873092d70be258e0188f0c12e501b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""remove email_notification column

Revision ID: 1b750a389c22
Revises: 48f561c0ce6
Create Date: 2015-02-25 23:01:07.253429

"""

# revision identifiers, used by Alembic.
from alembic import op
import sqlalchemy as sa

revision = "1b750a389c22"
down_revision = "48f561c0ce6"


def upgrade():
    if "sqlite" not in "SQLALCHEMY_DATABASE_URI":
        op.drop_column("feed", "email_notification")


def downgrade():
    op.add_column("feed", sa.Column("email_notification", sa.Boolean(), default=False))
bgstack15