563b98d08a9357d7e1e8a38202ac85086ef7d960
[asterisk/asterisk.git] / contrib / ast-db-manage / config / versions / 423f34ad36e2_fix_pjsip_qualify_ti.py
1 """fix pjsip qualify timeout
2
3 Revision ID: 423f34ad36e2
4 Revises: 136885b81223
5 Create Date: 2016-01-13 21:49:21.557734
6
7 """
8
9 # revision identifiers, used by Alembic.
10 revision = '423f34ad36e2'
11 down_revision = '136885b81223'
12
13 from alembic import op
14 import sqlalchemy as sa
15
16
17 def upgrade():
18     with op.batch_alter_table('ps_aors') as batch_op:
19         batch_op.alter_column('qualify_timeout', type_=sa.Float)
20     with op.batch_alter_table('ps_contacts') as batch_op:
21         batch_op.alter_column('qualify_timeout', type_=sa.Float)
22
23 def downgrade():
24     with op.batch_alter_table('ps_aors') as batch_op:
25         batch_op.alter_column('qualify_timeout', type_=sa.Integer)
26     with op.batch_alter_table('ps_contacts') as batch_op:
27         batch_op.alter_column('qualify_timeout', type_=sa.Integer)