[asterisk-commits] pjsip/alembic: Fix qualify timeout column definition (asterisk[master])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 18 05:49:45 CST 2016


Joshua Colp has submitted this change and it was merged.

Change subject: pjsip/alembic:  Fix qualify_timeout column definition
......................................................................


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
---
A contrib/ast-db-manage/config/versions/3d00be6d0c1f_fix_pjsip_qualify_ti.py
1 file changed, 27 insertions(+), 0 deletions(-)

Approvals:
  Anonymous Coward #1000019: Verified
  Joshua Colp: Looks good to me, approved
  George Joseph: Looks good to me, but someone else must approve



diff --git a/contrib/ast-db-manage/config/versions/3d00be6d0c1f_fix_pjsip_qualify_ti.py b/contrib/ast-db-manage/config/versions/3d00be6d0c1f_fix_pjsip_qualify_ti.py
new file mode 100644
index 0000000..e0ee399
--- /dev/null
+++ b/contrib/ast-db-manage/config/versions/3d00be6d0c1f_fix_pjsip_qualify_ti.py
@@ -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
+

-- 
To view, visit https://gerrit.asterisk.org/2008
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I757d0e3c011ee9be6cd5abd48bc92441a405d3c8
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Daniel Journo <dan at keshercommunications.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: George Joseph <george.joseph at fairview5.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>



More information about the asterisk-commits mailing list