Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
Add forgotten alembic upgrade script.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Mar 20, 2015
1 parent 41d6b0a commit 99d790a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions alembic/versions/59ee93c4bf71_add_the_oneshot_column.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"""Add the oneshot column.
Revision ID: 59ee93c4bf71
Revises: 3de9ad66862f
Create Date: 2015-03-20 13:38:03.081566
"""

# revision identifiers, used by Alembic.
revision = '59ee93c4bf71'
down_revision = '3de9ad66862f'

from alembic import op
import sqlalchemy as sa


def upgrade():
op.add_column('filters', sa.Column('oneshot', sa.Boolean(), nullable=True, default=False))


def downgrade():
op.drop_column('filters', 'oneshot')

0 comments on commit 99d790a

Please sign in to comment.