diff --git a/data/migrations/versions/45fd8b9869d4_add_notification_type.py b/data/migrations/versions/45fd8b9869d4_add_notification_type.py new file mode 100644 index 000000000..b47e9cac9 --- /dev/null +++ b/data/migrations/versions/45fd8b9869d4_add_notification_type.py @@ -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'))) diff --git a/test/data/test.db b/test/data/test.db index 1d66476c3..ab993b22e 100644 Binary files a/test/data/test.db and b/test/data/test.db differ