Asterisk - The Open Source Telephony Project GIT-master-f36a736
Functions | Variables
2b7c507d7d12_add_queue_log_option_log_restricted_ Namespace Reference

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string AST_BOOL_NAME = 'ast_bool_values'
 
list AST_BOOL_VALUES
 
string down_revision = 'bd9c5159c7ea'
 
string revision = '2b7c507d7d12'
 

Function Documentation

◆ downgrade()

def downgrade ( )

Definition at line 29 of file 2b7c507d7d12_add_queue_log_option_log_restricted_.py.

29def downgrade():
30 op.drop_column('queues', 'log_restricted_caller_id')

◆ upgrade()

def upgrade ( )

Definition at line 23 of file 2b7c507d7d12_add_queue_log_option_log_restricted_.py.

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

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 2b7c507d7d12_add_queue_log_option_log_restricted_.py.

◆ down_revision

string down_revision = 'bd9c5159c7ea'

◆ revision

string revision = '2b7c507d7d12'