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

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string AST_BOOL_NAME = 'ast_bool_values'
 
list AST_BOOL_VALUES
 
string down_revision = '24c12d8e9014'
 
string revision = 'bd335bae5d33'
 

Detailed Description

Create STIR/SHAKEN TN table

Revision ID: bd335bae5d33
Revises: 24c12d8e9014
Create Date: 2024-01-09 12:17:47.353533

Function Documentation

◆ downgrade()

def downgrade ( )

◆ upgrade()

def upgrade ( )

Definition at line 23 of file bd335bae5d33_create_stir_shaken_tn_table.py.

23def upgrade():
24 ast_bool_values = ENUM(*AST_BOOL_VALUES, name=AST_BOOL_NAME, create_type=False)
25 op.create_table(
26 'stir_tn',
27 sa.Column('id', sa.String(80), nullable=False, primary_key=True),
28 sa.Column('private_key_file', sa.String(1024), nullable=True),
29 sa.Column('public_cert_url', sa.String(1024), nullable=True),
30 sa.Column('attest_level', sa.String(1), nullable=True),
31 sa.Column('send_mky', ast_bool_values)
32 )
33

Variable Documentation

◆ AST_BOOL_NAME

string AST_BOOL_NAME = 'ast_bool_values'

Definition at line 17 of file bd335bae5d33_create_stir_shaken_tn_table.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 18 of file bd335bae5d33_create_stir_shaken_tn_table.py.

◆ down_revision

string down_revision = '24c12d8e9014'

Definition at line 11 of file bd335bae5d33_create_stir_shaken_tn_table.py.

◆ revision

string revision = 'bd335bae5d33'

Definition at line 10 of file bd335bae5d33_create_stir_shaken_tn_table.py.