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

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string down_revision = 'd39508cb8d8'
 
string revision = '5950038a6ead'
 
string YESNO_NAME = 'yesno_values'
 
list YESNO_VALUES = ['yes', 'no']
 

Function Documentation

◆ downgrade()

def downgrade ( )

Definition at line 33 of file 5950038a6ead_fix_pjsip_verifiy_typo.py.

33def downgrade():
34 yesno_values = ENUM(*YESNO_VALUES, name=YESNO_NAME, create_type=False)
35 if op.get_context().bind.dialect.name != 'mssql':
36 op.alter_column('ps_transports', 'verify_server', type_=yesno_values,
37 new_column_name='verifiy_server')
38 else:
39 op.alter_column('ps_transports', 'verify_server', existing_type=yesno_values, type_=sa.String(3),
40 new_column_name='verifiy_server')
41 yesno_values = ENUM(*YESNO_VALUES, name=YESNO_NAME, create_type=True)
42 op.alter_column('ps_transports', 'verifiy_server', existing_type=sa.String(3), type_=yesno_values)

◆ upgrade()

def upgrade ( )

Definition at line 20 of file 5950038a6ead_fix_pjsip_verifiy_typo.py.

20def upgrade():
21 yesno_values = ENUM(*YESNO_VALUES, name=YESNO_NAME, create_type=False)
22
23 if op.get_context().bind.dialect.name != 'mssql':
24 op.alter_column('ps_transports', 'verifiy_server', type_=yesno_values,
25 new_column_name='verify_server')
26 else:
27 op.alter_column('ps_transports', 'verifiy_server', existing_type=yesno_values, type_=sa.String(3),
28 new_column_name='verify_server')
29 yesno_values = ENUM(*YESNO_VALUES, name=YESNO_NAME, create_type=True)
30 op.alter_column('ps_transports', 'verify_server', existing_type=sa.String(3), type_=yesno_values)
31
32

Variable Documentation

◆ down_revision

string down_revision = 'd39508cb8d8'

Definition at line 11 of file 5950038a6ead_fix_pjsip_verifiy_typo.py.

◆ revision

string revision = '5950038a6ead'

Definition at line 10 of file 5950038a6ead_fix_pjsip_verifiy_typo.py.

◆ YESNO_NAME

string YESNO_NAME = 'yesno_values'

Definition at line 17 of file 5950038a6ead_fix_pjsip_verifiy_typo.py.

◆ YESNO_VALUES

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

Definition at line 18 of file 5950038a6ead_fix_pjsip_verifiy_typo.py.