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

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string AST_BOOL_NAME = 'ast_bool_values'
 
list AST_BOOL_VALUES
 
string down_revision = '8f72185e437f'
 
string revision = '0bee61aa9425'
 

Function Documentation

◆ downgrade()

def downgrade ( )

Definition at line 33 of file 0bee61aa9425_allow_180_ringing_with_sdp.py.

33def downgrade():
34 if op.get_context().bind.dialect.name == 'mssql':
35 op.drop_constraint('ck_ps_globals_allow_sending_180_after_183_ast_bool_values', 'ps_globals')
36 op.drop_column('ps_globals', 'allow_sending_180_after_183')

◆ upgrade()

def upgrade ( )

Definition at line 23 of file 0bee61aa9425_allow_180_ringing_with_sdp.py.

23def upgrade():
24 ############################# Enums ##############################
25
26 # ast_bool_values has already been created, so use postgres enum object
27 # type to get around "already created" issue - works okay with mysql
28 ast_bool_values = ENUM(*AST_BOOL_VALUES, name=AST_BOOL_NAME, create_type=False)
29
30 op.add_column('ps_globals', sa.Column('allow_sending_180_after_183', ast_bool_values))
31
32

Variable Documentation

◆ AST_BOOL_NAME

string AST_BOOL_NAME = 'ast_bool_values'

Definition at line 15 of file 0bee61aa9425_allow_180_ringing_with_sdp.py.

◆ AST_BOOL_VALUES

list AST_BOOL_VALUES
Initial value:
1= [ '0', '1',
2 'off', 'on',
3 'false', 'true',
4 'no', 'yes' ]

Definition at line 18 of file 0bee61aa9425_allow_180_ringing_with_sdp.py.

◆ down_revision

string down_revision = '8f72185e437f'

Definition at line 14 of file 0bee61aa9425_allow_180_ringing_with_sdp.py.

◆ revision

string revision = '0bee61aa9425'

Definition at line 13 of file 0bee61aa9425_allow_180_ringing_with_sdp.py.