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

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string AST_BOOL_NAME = 'ast_bool_values'
 
list AST_BOOL_VALUES
 
string down_revision = 'c20d6e3992f4'
 
string revision = 'f56d79a9f337'
 

Detailed Description

pjsip create remove_unavailable

Revision ID: f56d79a9f337
Revises: c20d6e3992f4
Create Date: 2021-07-28 02:09:11.082061

Function Documentation

◆ downgrade()

def downgrade ( )

Definition at line 27 of file f56d79a9f337_pjsip_create_remove_unavailable.py.

27def downgrade():
28 op.drop_column('ps_aors', 'remove_unavailable')
29 pass
30

◆ upgrade()

def upgrade ( )

Definition at line 23 of file f56d79a9f337_pjsip_create_remove_unavailable.py.

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

◆ down_revision

string down_revision = 'c20d6e3992f4'

◆ revision

string revision = 'f56d79a9f337'