Merge pull request #2184 from charltonaustin/fix_notification_update
Adding in notification type for notification kind.
This commit is contained in:
commit
791369eb16
2 changed files with 27 additions and 0 deletions
|
@ -0,0 +1,27 @@
|
||||||
|
"""add_notification_type
|
||||||
|
|
||||||
|
Revision ID: 45fd8b9869d4
|
||||||
|
Revises: 94836b099894
|
||||||
|
Create Date: 2016-12-01 12:02:19.724528
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = '45fd8b9869d4'
|
||||||
|
down_revision = '94836b099894'
|
||||||
|
|
||||||
|
from alembic import op
|
||||||
|
|
||||||
|
def upgrade(tables):
|
||||||
|
op.bulk_insert(tables.notificationkind,
|
||||||
|
[
|
||||||
|
{'name': 'build_cancelled'},
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade(tables):
|
||||||
|
op.execute(tables
|
||||||
|
.notificationkind
|
||||||
|
.delete()
|
||||||
|
.where(tables.
|
||||||
|
notificationkind.c.name == op.inline_literal('build_cancelled')))
|
Binary file not shown.
Reference in a new issue