28 lines
722 B
Python
28 lines
722 B
Python
|
"""Add event-specific config
|
||
|
|
||
|
Revision ID: 50925110da8c
|
||
|
Revises: 2fb9492c20cc
|
||
|
Create Date: 2015-10-13 18:03:14.859839
|
||
|
|
||
|
"""
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = '50925110da8c'
|
||
|
down_revision = '2fb9492c20cc'
|
||
|
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
from util.migrate import UTF8LongText
|
||
|
|
||
|
|
||
|
def upgrade(tables):
|
||
|
### commands auto generated by Alembic - please adjust! ###
|
||
|
op.add_column('repositorynotification', sa.Column('event_config_json', UTF8LongText, nullable=False))
|
||
|
### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade(tables):
|
||
|
### commands auto generated by Alembic - please adjust! ###
|
||
|
op.drop_column('repositorynotification', 'event_config_json')
|
||
|
### end Alembic commands ###
|