Asterisk - The Open Source Telephony Project  18.5.0
Functions | Variables
8915fcc5766f_add_ringinuse_to_queue_members Namespace Reference

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string AST_BOOL_NAME = 'ast_bool_values'
 
list AST_BOOL_VALUES
 
string down_revision = 'e658c26033ca'
 
string revision = '8915fcc5766f'
 

Function Documentation

◆ downgrade()

def 8915fcc5766f_add_ringinuse_to_queue_members.downgrade ( )

Definition at line 27 of file 8915fcc5766f_add_ringinuse_to_queue_members.py.

27 def downgrade():
28  if op.get_context().bind.dialect.name == 'mssql':
29  op.drop_constraint('ck_queue_members_ringinuse_ast_bool_values', 'queue_members')
30  op.drop_column('queue_members', 'ringinuse')

◆ upgrade()

def 8915fcc5766f_add_ringinuse_to_queue_members.upgrade ( )

Definition at line 23 of file 8915fcc5766f_add_ringinuse_to_queue_members.py.

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

Variable Documentation

◆ AST_BOOL_NAME

string AST_BOOL_NAME = 'ast_bool_values'

◆ 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 8915fcc5766f_add_ringinuse_to_queue_members.py.

◆ down_revision

string down_revision = 'e658c26033ca'

◆ revision

string revision = '8915fcc5766f'