c6d929b23a8_create_pjsip_subscription_persistence_.py

Go to the documentation of this file.
00001 """create pjsip subscription persistence table
00002 
00003 Revision ID: c6d929b23a8
00004 Revises: e96a0b8071c
00005 Create Date: 2014-06-06 02:17:38.660447
00006 
00007 """
00008 
00009 # revision identifiers, used by Alembic.
00010 revision = 'c6d929b23a8'
00011 down_revision = 'e96a0b8071c'
00012 
00013 from alembic import op
00014 import sqlalchemy as sa
00015 
00016 
00017 def upgrade():
00018     op.create_table(
00019         'ps_subscription_persistence',
00020         sa.Column('id', sa.String(40), nullable=False, unique=True),
00021    sa.Column('packet', sa.String(2048)),
00022    sa.Column('src_name', sa.String(128)),
00023    sa.Column('src_port', sa.Integer),
00024    sa.Column('transport_key', sa.String(64)),
00025    sa.Column('local_name', sa.String(128)),
00026    sa.Column('local_port', sa.Integer),
00027    sa.Column('cseq', sa.Integer),
00028    sa.Column('tag', sa.String(128)),
00029    sa.Column('endpoint', sa.String(40)),
00030    sa.Column('expires', sa.Integer),
00031     )
00032 
00033     op.create_index('ps_subscription_persistence_id', 'ps_subscription_persistence', ['id'])
00034 
00035 def downgrade():
00036    op.drop_table('ps_subscription_persistence')

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