3ad26509b25354c9713b357ca1791b101e619272
[asterisk/asterisk.git] / contrib / ast-db-manage / config / versions / 498357a710ae_add_rtp_keepalive.py
1 """Add RTP keepalive
2
3 Revision ID: 498357a710ae
4 Revises: 28b8e71e541f
5 Create Date: 2015-07-10 16:42:12.244421
6
7 """
8
9 # revision identifiers, used by Alembic.
10 revision = '498357a710ae'
11 down_revision = '28b8e71e541f'
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_keepalive', sa.Integer))
19
20
21 def downgrade():
22     with op.batch_alter_table('ps_endpoints') as batch_op:
23         batch_op.drop_column('rtp_keepalive')