[svn-commits] kharwell: branch 12 r412992 - /branches/12/contrib/ast-db-manage/config/versi...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Apr 24 09:37:27 CDT 2014
Author: kharwell
Date: Thu Apr 24 09:37:11 2014
New Revision: 412992
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=412992
Log:
pjsip realtime: increase the size of some columns
The string lengths on certain columns created through alembic for PJSIP were
too short. For instance, columns containing URIs are currently set to 40
characters, but this can be too small and result in truncated values. Added
an alembic migration script that increases the size of these columns and a
few others to 255.
ASTERISK-23639 #close
Reported by: Mark Michelson
Review: https://reviewboard.asterisk.org/r/3475/
Added:
branches/12/contrib/ast-db-manage/config/versions/e96a0b8071c_increase_pjsip_column_size.py (with props)
Added: branches/12/contrib/ast-db-manage/config/versions/e96a0b8071c_increase_pjsip_column_size.py
URL: http://svnview.digium.com/svn/asterisk/branches/12/contrib/ast-db-manage/config/versions/e96a0b8071c_increase_pjsip_column_size.py?view=auto&rev=412992
==============================================================================
--- branches/12/contrib/ast-db-manage/config/versions/e96a0b8071c_increase_pjsip_column_size.py (added)
+++ branches/12/contrib/ast-db-manage/config/versions/e96a0b8071c_increase_pjsip_column_size.py Thu Apr 24 09:37:11 2014
@@ -1,0 +1,39 @@
+"""increase pjsip columns size
+
+Revision ID: e96a0b8071c
+Revises: 3855ee4e5f85
+Create Date: 2014-04-23 11:38:02.333786
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = 'e96a0b8071c'
+down_revision = '3855ee4e5f85'
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+ op.alter_column('ps_globals', 'user_agent', type_=sa.String(255))
+
+ op.alter_column('ps_contacts', 'id', type_=sa.String(255))
+ op.alter_column('ps_contacts', 'uri', type_=sa.String(255))
+ op.alter_column('ps_contacts', 'user_agent', type_=sa.String(255))
+
+ op.alter_column('ps_registrations', 'client_uri', type_=sa.String(255))
+ op.alter_column('ps_registrations', 'server_uri', type_=sa.String(255))
+
+
+def downgrade():
+ op.alter_column('ps_registrations', 'server_uri', type_=sa.String(40))
+ op.alter_column('ps_registrations', 'client_uri', type_=sa.String(40))
+
+ op.alter_column('ps_contacts', 'user_agent', type_=sa.String(40))
+ op.alter_column('ps_contacts', 'uri', type_=sa.String(40))
+ op.alter_column('ps_contacts', 'id', type_=sa.String(40))
+
+ op.alter_column('ps_globals', 'user_agent', type_=sa.String(40))
+
+
+
Propchange: branches/12/contrib/ast-db-manage/config/versions/e96a0b8071c_increase_pjsip_column_size.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: branches/12/contrib/ast-db-manage/config/versions/e96a0b8071c_increase_pjsip_column_size.py
------------------------------------------------------------------------------
svn:keywords = Author Date Id Rev URL
Propchange: branches/12/contrib/ast-db-manage/config/versions/e96a0b8071c_increase_pjsip_column_size.py
------------------------------------------------------------------------------
svn:mime-type = text/plain
More information about the svn-commits
mailing list