Asterisk - The Open Source Telephony Project GIT-master-f36a736
3855ee4e5f85_add_missing_pjsip_options.py
Go to the documentation of this file.
1"""add_missing_pjsip_options
2
3Revision ID: 3855ee4e5f85
4Revises: 4c573e7135bd
5Create Date: 2014-03-28 10:49:04.637730
6
7"""
8
9# revision identifiers, used by Alembic.
10revision = '3855ee4e5f85'
11down_revision = '4c573e7135bd'
12
13from alembic import op
14import sqlalchemy as sa
15
16
17def upgrade():
18 op.add_column('ps_endpoints', sa.Column('message_context', sa.String(40)))
19 op.add_column('ps_contacts', sa.Column('user_agent', sa.String(40)))
20
21
23 op.drop_column('ps_contacts', 'user_agent')
24 op.drop_column('ps_endpoints', 'message_context')