summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2015-12-16 11:28:14 -0600
committerMark Michelson <mmichelson@digium.com>2015-12-16 11:34:22 -0600
commitcfb34adb836f61fcb55ef139ac0e9c57f647f3a6 (patch)
tree37d2cb6080d82bfb5fa4743af669cd77c56f5047 /contrib
parent093f14d7f3e6a84fc2e6baf2ff950a915e9f91d8 (diff)
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
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ast-db-manage/config/versions/2d078ec071b7_increaes_contact_column_size.py22
1 files changed, 22 insertions, 0 deletions
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 000000000..2ade86f9f
--- /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))