Adding in cancel notifications
This commit is contained in:
parent
b7aac159ae
commit
4103a0b75f
9 changed files with 153 additions and 29 deletions
|
@ -0,0 +1,28 @@
|
|||
"""Create new notification type
|
||||
|
||||
Revision ID: 94836b099894
|
||||
Revises: faf752bd2e0a
|
||||
Create Date: 2016-11-30 10:29:51.519278
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '94836b099894'
|
||||
down_revision = 'faf752bd2e0a'
|
||||
|
||||
from alembic import op
|
||||
|
||||
|
||||
def upgrade(tables):
|
||||
op.bulk_insert(tables.externalnotificationevent,
|
||||
[
|
||||
{'name': 'build_cancelled'},
|
||||
])
|
||||
|
||||
|
||||
def downgrade(tables):
|
||||
op.execute(tables
|
||||
.externalnotificationevent
|
||||
.delete()
|
||||
.where(tables.
|
||||
externalnotificationevent.c.name == op.inline_literal('build_cancelled')))
|
Reference in a new issue