Asterisk - The Open Source Telephony Project  18.5.0
26f10cadc157_add_pjsip_timeout_options.py
Go to the documentation of this file.
1 """add pjsip timeout options
2 
3 Revision ID: 26f10cadc157
4 Revises: 498357a710ae
5 Create Date: 2015-07-21 07:45:00.696965
6 
7 """
8 
9 # revision identifiers, used by Alembic.
10 revision = '26f10cadc157'
11 down_revision = '498357a710ae'
12 
13 from alembic import op
14 import sqlalchemy as sa
15 
16 
17 def upgrade():
18  op.add_column('ps_endpoints', sa.Column('rtp_timeout', sa.Integer))
19  op.add_column('ps_endpoints', sa.Column('rtp_timeout_hold', sa.Integer))
20 
21 
22 def downgrade():
23  op.drop_column('ps_endpoints', 'rtp_timeout')
24  op.drop_column('ps_endpoints', 'rtp_timeout_hold')