[asterisk-commits] Alembic: Increase column size of PJSIP AOR "contact". (asterisk[13])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Dec 18 11:12:59 CST 2015


Mark Michelson has submitted this change and it was merged.

Change subject: Alembic: Increase column size of PJSIP AOR "contact".
......................................................................


Alembic: Increase column size of PJSIP AOR "contact".

When running the PJSIP AMI "show_endpoint" test with automatic
conversion to realtime, the test would fail. This was because the AOR
"contact" column was sized at 40, and the configured contact was larger
than that.

This commit increases the size of the contact column to 255 characters.

Change-Id: Ia65bc7fd37699b7c0eaef9629a1a31eab9a24ba1
---
A contrib/ast-db-manage/config/versions/2d078ec071b7_increaes_contact_column_size.py
1 file changed, 22 insertions(+), 0 deletions(-)

Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  Mark Michelson: Looks good to me, approved
  Anonymous Coward #1000019: Verified
  Joshua Colp: Looks good to me, but someone else must approve



diff --git a/contrib/ast-db-manage/config/versions/2d078ec071b7_increaes_contact_column_size.py b/contrib/ast-db-manage/config/versions/2d078ec071b7_increaes_contact_column_size.py
new file mode 100644
index 0000000..2ade86f
--- /dev/null
+++ b/contrib/ast-db-manage/config/versions/2d078ec071b7_increaes_contact_column_size.py
@@ -0,0 +1,22 @@
+"""increaes_contact_column_size
+
+Revision ID: 2d078ec071b7
+Revises: 189a235b3fd7
+Create Date: 2015-12-16 11:26:54.218985
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = '2d078ec071b7'
+down_revision = '189a235b3fd7'
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+    op.alter_column('ps_aors', 'contact', type_=sa.String(255))
+
+
+def downgrade():
+    op.alter_column('ps_aors', 'contact', type_=sa.String(40))

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia65bc7fd37699b7c0eaef9629a1a31eab9a24ba1
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Mark Michelson <mmichelson at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>



More information about the asterisk-commits mailing list