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

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string AST_BOOL_NAME = 'ast_bool_values'
 
list AST_BOOL_VALUES
 
string down_revision = '801b9fced8b7'
 
string revision = '4f91fc18c979'
 

Function Documentation

◆ downgrade()

def downgrade ( )

Definition at line 27 of file 4f91fc18c979_add_suppress_moh_on_sendonly.py.

27def downgrade():
28 if op.get_context().bind.dialect.name == 'mssql':
29 op.drop_constraint('ck_ps_endpoints_suppress_moh_on_sendonly_ast_bool_values', 'ps_endpoints')
30 op.drop_column('ps_endpoints', 'suppress_moh_on_sendonly')

◆ upgrade()

def upgrade ( )

Definition at line 23 of file 4f91fc18c979_add_suppress_moh_on_sendonly.py.

23def upgrade():
24 ast_bool_values = ENUM(*AST_BOOL_VALUES, name=AST_BOOL_NAME, create_type=False)
25 op.add_column('ps_endpoints', sa.Column('suppress_moh_on_sendonly', ast_bool_values))
26

Variable Documentation

◆ AST_BOOL_NAME

string AST_BOOL_NAME = 'ast_bool_values'

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

◆ down_revision

string down_revision = '801b9fced8b7'

Definition at line 11 of file 4f91fc18c979_add_suppress_moh_on_sendonly.py.

◆ revision

string revision = '4f91fc18c979'

Definition at line 10 of file 4f91fc18c979_add_suppress_moh_on_sendonly.py.