Add alembic script that adds contact user_agent and endpoint message_context.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@411514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Michelson
2014-03-28 17:08:52 +00:00
parent 016c672852
commit 44e73556bc

View File

@@ -0,0 +1,24 @@
"""add_missing_pjsip_options
Revision ID: 3855ee4e5f85
Revises: 4c573e7135bd
Create Date: 2014-03-28 10:49:04.637730
"""
# revision identifiers, used by Alembic.
revision = '3855ee4e5f85'
down_revision = '4c573e7135bd'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('ps_endpoints', sa.Column('message_context', sa.String(40)))
op.add_column('ps_contacts', sa.Column('user_agent', sa.String(40)))
def downgrade():
op.drop_column('ps_contacts', 'user_agent')
op.drop_column('ps_endpoints', 'message_context')