summaryrefslogtreecommitdiff
path: root/contrib/ast-db-manage/config/versions/26f10cadc157_add_pjsip_timeout_options.py
blob: 8972d80302aa5a0424bd6fa7b411f89882d61164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"""add pjsip timeout options

Revision ID: 26f10cadc157
Revises: 498357a710ae
Create Date: 2015-07-21 07:45:00.696965

"""

# revision identifiers, used by Alembic.
revision = '26f10cadc157'
down_revision = '498357a710ae'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('ps_endpoints', sa.Column('rtp_timeout', sa.Integer))
    op.add_column('ps_endpoints', sa.Column('rtp_timeout_hold', sa.Integer))


def downgrade():
    op.drop_column('ps_endpoints', 'rtp_timeout')
    op.drop_column('ps_endpoints', 'rtp_timeout_hold')