Asterisk - The Open Source Telephony Project GIT-master-f36a736
Functions | Variables
c7a44a5a0851_pjsip_add_global_mwi_options Namespace Reference

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string down_revision = '4a6c67fa9b7a'
 
string revision = 'c7a44a5a0851'
 
string YESNO_NAME = 'yesno_values'
 
list YESNO_VALUES = ['yes', 'no']
 

Detailed Description

pjsip: add global MWI options

Revision ID: c7a44a5a0851
Revises: 4a6c67fa9b7a
Create Date: 2016-08-03 15:08:22.524727

Function Documentation

◆ downgrade()

def downgrade ( )

Definition at line 32 of file c7a44a5a0851_pjsip_add_global_mwi_options.py.

32def downgrade():
33 op.drop_column('ps_globals', 'mwi_tps_queue_high')
34 op.drop_column('ps_globals', 'mwi_tps_queue_low')
35 if op.get_context().bind.dialect.name == 'mssql':
36 op.drop_constraint('ck_ps_globals_mwi_disable_initial_unsolicited_yesno_values','ps_globals')
37 op.drop_column('ps_globals', 'mwi_disable_initial_unsolicited')

◆ upgrade()

def upgrade ( )

Definition at line 21 of file c7a44a5a0851_pjsip_add_global_mwi_options.py.

21def upgrade():
22 ############################# Enums ##############################
23
24 # yesno_values have already been created, so use postgres enum object
25 # type to get around "already created" issue - works okay with mysql
26 yesno_values = ENUM(*YESNO_VALUES, name=YESNO_NAME, create_type=False)
27
28 op.add_column('ps_globals', sa.Column('mwi_tps_queue_high', sa.Integer))
29 op.add_column('ps_globals', sa.Column('mwi_tps_queue_low', sa.Integer))
30 op.add_column('ps_globals', sa.Column('mwi_disable_initial_unsolicited', yesno_values))
31

Variable Documentation

◆ down_revision

string down_revision = '4a6c67fa9b7a'

Definition at line 11 of file c7a44a5a0851_pjsip_add_global_mwi_options.py.

◆ revision

string revision = 'c7a44a5a0851'

Definition at line 10 of file c7a44a5a0851_pjsip_add_global_mwi_options.py.

◆ YESNO_NAME

string YESNO_NAME = 'yesno_values'

Definition at line 17 of file c7a44a5a0851_pjsip_add_global_mwi_options.py.

◆ YESNO_VALUES

list YESNO_VALUES = ['yes', 'no']

Definition at line 18 of file c7a44a5a0851_pjsip_add_global_mwi_options.py.