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