Fix Slack notification setup to support the new slack web hook format and convert all existing data to use the new format (so we only have one code path)

This commit is contained in:
Joseph Schorr 2014-12-16 14:34:43 +02:00
parent 79b61e7709
commit 107847a4bb
5 changed files with 97 additions and 22 deletions

View file

@ -0,0 +1,24 @@
"""Convert slack webhook data
Revision ID: 5b84373e5db
Revises: 1c5b738283a5
Create Date: 2014-12-16 12:02:55.167744
"""
# revision identifiers, used by Alembic.
revision = '5b84373e5db'
down_revision = '1c5b738283a5'
from alembic import op
import sqlalchemy as sa
from tools.migrateslackwebhook import run_slackwebhook_migration
def upgrade(tables):
run_slackwebhook_migration()
def downgrade(tables):
pass