Asterisk - The Open Source Telephony Project GIT-master-f36a736
Functions | Variables
61797b9fced6_add_stir_shaken Namespace Reference

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string AST_BOOL_NAME = 'ast_bool_values'
 
list AST_BOOL_VALUES
 
string down_revision = 'b80485ff4dd0'
 
string revision = '61797b9fced6'
 
string YESNO_NAME = 'yesno_values'
 
list YESNO_VALUES = ['yes', 'no']
 

Function Documentation

◆ downgrade()

def downgrade ( )

Definition at line 30 of file 61797b9fced6_add_stir_shaken.py.

30def downgrade():
31 op.drop_column('ps_endpoints', 'stir_shaken')

◆ upgrade()

def upgrade ( )

Definition at line 26 of file 61797b9fced6_add_stir_shaken.py.

26def upgrade():
27 ast_bool_values = ENUM(*AST_BOOL_VALUES, name=AST_BOOL_NAME, create_type=False)
28 op.add_column('ps_endpoints', sa.Column('stir_shaken', ast_bool_values))
29

Variable Documentation

◆ AST_BOOL_NAME

string AST_BOOL_NAME = 'ast_bool_values'

Definition at line 20 of file 61797b9fced6_add_stir_shaken.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 21 of file 61797b9fced6_add_stir_shaken.py.

◆ down_revision

string down_revision = 'b80485ff4dd0'

Definition at line 11 of file 61797b9fced6_add_stir_shaken.py.

◆ revision

string revision = '61797b9fced6'

Definition at line 10 of file 61797b9fced6_add_stir_shaken.py.

◆ YESNO_NAME

string YESNO_NAME = 'yesno_values'

Definition at line 17 of file 61797b9fced6_add_stir_shaken.py.

◆ YESNO_VALUES

list YESNO_VALUES = ['yes', 'no']

Definition at line 18 of file 61797b9fced6_add_stir_shaken.py.