Asterisk - The Open Source Telephony Project  18.5.0
Functions | Variables
80473bad3c16_ignore_183_without_sdp Namespace Reference

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string AST_BOOL_NAME = 'ast_bool_values'
 
list AST_BOOL_VALUES
 
string down_revision = 'f3c0b8695b66'
 
string revision = '80473bad3c16'
 

Function Documentation

◆ downgrade()

def 80473bad3c16_ignore_183_without_sdp.downgrade ( )

Definition at line 34 of file 80473bad3c16_ignore_183_without_sdp.py.

34 def downgrade():
35  if op.get_context().bind.dialect.name == 'mssql':
36  op.drop_constraint('ck_ps_endpoints_ignore_183_without_sdp_ast_bool_values', 'ps_endpoints')
37  op.drop_column('ps_endpoints', 'ignore_183_without_sdp')
38  pass

◆ upgrade()

def 80473bad3c16_ignore_183_without_sdp.upgrade ( )

Definition at line 25 of file 80473bad3c16_ignore_183_without_sdp.py.

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

Variable Documentation

◆ AST_BOOL_NAME

string AST_BOOL_NAME = 'ast_bool_values'

Definition at line 17 of file 80473bad3c16_ignore_183_without_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 20 of file 80473bad3c16_ignore_183_without_sdp.py.

◆ down_revision

string down_revision = 'f3c0b8695b66'

Definition at line 11 of file 80473bad3c16_ignore_183_without_sdp.py.

◆ revision

string revision = '80473bad3c16'

Definition at line 10 of file 80473bad3c16_ignore_183_without_sdp.py.