e96a0b8071c_increase_pjsip_column_size.py

Go to the documentation of this file.
00001 """increase pjsip columns size
00002 
00003 Revision ID: e96a0b8071c
00004 Revises: 3855ee4e5f85
00005 Create Date: 2014-04-23 11:38:02.333786
00006 
00007 """
00008 
00009 # revision identifiers, used by Alembic.
00010 revision = 'e96a0b8071c'
00011 down_revision = '3855ee4e5f85'
00012 
00013 from alembic import op
00014 import sqlalchemy as sa
00015 
00016 
00017 def upgrade():
00018     op.alter_column('ps_globals', 'user_agent', type_=sa.String(255))
00019 
00020     op.alter_column('ps_contacts', 'id', type_=sa.String(255))
00021     op.alter_column('ps_contacts', 'uri', type_=sa.String(255))
00022     op.alter_column('ps_contacts', 'user_agent', type_=sa.String(255))
00023 
00024     op.alter_column('ps_registrations', 'client_uri', type_=sa.String(255))
00025     op.alter_column('ps_registrations', 'server_uri', type_=sa.String(255))
00026 
00027 
00028 def downgrade():
00029     op.alter_column('ps_registrations', 'server_uri', type_=sa.String(40))
00030     op.alter_column('ps_registrations', 'client_uri', type_=sa.String(40))
00031 
00032     op.alter_column('ps_contacts', 'user_agent', type_=sa.String(40))
00033     op.alter_column('ps_contacts', 'uri', type_=sa.String(40))
00034     op.alter_column('ps_contacts', 'id', type_=sa.String(40))
00035 
00036     op.alter_column('ps_globals', 'user_agent', type_=sa.String(40))
00037 
00038 
00039 

Generated on Thu Apr 16 06:27:33 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6