Asterisk - The Open Source Telephony Project GIT-master-f36a736
Functions | Variables
8f72185e437f_res_pjsip_pubsub_add_resource_list_ Namespace Reference

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string AST_BOOL_NAME = 'ast_bool_values'
 
list AST_BOOL_VALUES
 
string down_revision = 'a06d8f8462d9'
 
string revision = '8f72185e437f'
 

Function Documentation

◆ downgrade()

def downgrade ( )

Definition at line 27 of file 8f72185e437f_res_pjsip_pubsub_add_resource_list_.py.

27def downgrade():
28 op.drop_column('ps_resource_list', 'resource_display_name')
29

◆ upgrade()

def upgrade ( )

Definition at line 23 of file 8f72185e437f_res_pjsip_pubsub_add_resource_list_.py.

23def upgrade():
24 ast_bool_values = ENUM(*AST_BOOL_VALUES, name=AST_BOOL_NAME, create_type=False)
25 op.add_column('ps_resource_list', sa.Column('resource_display_name', 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 8f72185e437f_res_pjsip_pubsub_add_resource_list_.py.

◆ down_revision

string down_revision = 'a06d8f8462d9'

◆ revision

string revision = '8f72185e437f'