Asterisk - The Open Source Telephony Project GIT-master-3dee037
Functions | Variables
44bd6dd914fa_add_qualify_2xx_only_option Namespace Reference

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string AST_BOOL_NAME = 'ast_bool_values'
 
list AST_BOOL_VALUES
 
string down_revision = '4f91fc18c979'
 
string revision = '44bd6dd914fa'
 

Function Documentation

◆ downgrade()

def downgrade ( )

Definition at line 29 of file 44bd6dd914fa_add_qualify_2xx_only_option.py.

29def downgrade():
30 if op.get_context().bind.dialect.name == 'mssql':
31 op.drop_constraint('ck_ps_aors_qualify_2xx_only_ast_bool_values', 'ps_aors')
32 op.drop_constraint('ck_ps_contacts_qualify_2xx_only_ast_bool_values', 'ps_contacts')
33 op.drop_column('ps_aors', 'qualify_2xx_only')
34 op.drop_column('ps_contacts', 'qualify_2xx_only')

◆ upgrade()

def upgrade ( )

Definition at line 23 of file 44bd6dd914fa_add_qualify_2xx_only_option.py.

23def upgrade():
24 ast_bool_values = ENUM(*AST_BOOL_VALUES, name=AST_BOOL_NAME, create_type=False)
25 op.add_column('ps_aors', sa.Column('qualify_2xx_only', ast_bool_values))
26 op.add_column('ps_contacts', sa.Column('qualify_2xx_only', ast_bool_values))
27
28

Variable Documentation

◆ AST_BOOL_NAME

string AST_BOOL_NAME = 'ast_bool_values'

Definition at line 17 of file 44bd6dd914fa_add_qualify_2xx_only_option.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 44bd6dd914fa_add_qualify_2xx_only_option.py.

◆ down_revision

string down_revision = '4f91fc18c979'

Definition at line 11 of file 44bd6dd914fa_add_qualify_2xx_only_option.py.

◆ revision

string revision = '44bd6dd914fa'

Definition at line 10 of file 44bd6dd914fa_add_qualify_2xx_only_option.py.