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

Functions

def downgrade ()
 
def upgrade ()
 

Variables

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

Detailed Description

add allow_unauthenticated_options

Revision ID: c20d6e3992f4
Revises: 8915fcc5766f
Create Date: 2021-04-23 13:44:38.296558

Function Documentation

◆ downgrade()

def c20d6e3992f4_add_allow_unauthenticated_options.downgrade ( )

Definition at line 27 of file c20d6e3992f4_add_allow_unauthenticated_options.py.

27 def downgrade():
28  op.drop_column('ps_endpoints', 'allow_unauthenticated_options')
29  pass

◆ upgrade()

def c20d6e3992f4_add_allow_unauthenticated_options.upgrade ( )

Definition at line 23 of file c20d6e3992f4_add_allow_unauthenticated_options.py.

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

◆ down_revision

string down_revision = '8915fcc5766f'

◆ revision

string revision = 'c20d6e3992f4'