mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-18 10:44:28 +00:00
pjsip/alembic: Fix qualify_timeout column definition
Corrects the qualify_timeout column type from Integer to Decimal ASTERISK-25686 #close Reported-by: Marcelo Terres Change-Id: I757d0e3c011ee9be6cd5abd48bc92441a405d3c8
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
"""fix pjsip qualify timeout
|
||||||
|
|
||||||
|
Revision ID: 3d00be6d0c1f
|
||||||
|
Revises: 26d7f3bf0fa5
|
||||||
|
Create Date: 2016-01-16 19:48:31.730429
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = '3d00be6d0c1f'
|
||||||
|
down_revision = '26d7f3bf0fa5'
|
||||||
|
|
||||||
|
from alembic import op
|
||||||
|
import sqlalchemy as sa
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade():
|
||||||
|
op.alter_column('ps_aors', 'qualify_timeout', type_=sa.Decimal)
|
||||||
|
op.alter_column('ps_contacts', 'qualify_timeout', type_=sa.Decimal)
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade():
|
||||||
|
op.alter_column('ps_aors', 'qualify_timeout', type_=sa.Integer)
|
||||||
|
op.alter_column('ps_contacts', 'qualify_timeout', type_=sa.Integer)
|
||||||
|
pass
|
||||||
|
|
Reference in New Issue
Block a user