Asterisk - The Open Source Telephony Project GIT-master-f36a736
c6d929b23a8_create_pjsip_subscription_persistence_.py
Go to the documentation of this file.
1"""create pjsip subscription persistence table
2
3Revision ID: c6d929b23a8
4Revises: e96a0b8071c
5Create Date: 2014-06-06 02:17:38.660447
6
7"""
8
9# revision identifiers, used by Alembic.
10revision = 'c6d929b23a8'
11down_revision = 'e96a0b8071c'
12
13from alembic import op
14import sqlalchemy as sa
15
16
17def 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
36 op.drop_table('ps_subscription_persistence')