Asterisk - The Open Source Telephony Project  18.5.0
Functions | Variables
c6d929b23a8_create_pjsip_subscription_persistence_ Namespace Reference

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string down_revision = 'e96a0b8071c'
 
string revision = 'c6d929b23a8'
 

Detailed Description

create pjsip subscription persistence table

Revision ID: c6d929b23a8
Revises: e96a0b8071c
Create Date: 2014-06-06 02:17:38.660447

Function Documentation

◆ downgrade()

def c6d929b23a8_create_pjsip_subscription_persistence_.downgrade ( )

Definition at line 35 of file c6d929b23a8_create_pjsip_subscription_persistence_.py.

35 def downgrade():
36  op.drop_table('ps_subscription_persistence')

◆ upgrade()

def c6d929b23a8_create_pjsip_subscription_persistence_.upgrade ( )

Definition at line 17 of file c6d929b23a8_create_pjsip_subscription_persistence_.py.

17 def upgrade():
18  op.create_table(
19  'ps_subscription_persistence',
20  sa.Column('id', sa.String(40), nullable=False, unique=True),
21  sa.Column('packet', sa.String(2048)),
22  sa.Column('src_name', sa.String(128)),
23  sa.Column('src_port', sa.Integer),
24  sa.Column('transport_key', sa.String(64)),
25  sa.Column('local_name', sa.String(128)),
26  sa.Column('local_port', sa.Integer),
27  sa.Column('cseq', sa.Integer),
28  sa.Column('tag', sa.String(128)),
29  sa.Column('endpoint', sa.String(40)),
30  sa.Column('expires', sa.Integer),
31  )
32 
33  op.create_index('ps_subscription_persistence_id', 'ps_subscription_persistence', ['id'])
34 

Variable Documentation

◆ down_revision

string down_revision = 'e96a0b8071c'

◆ revision

string revision = 'c6d929b23a8'