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

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string down_revision = '0be05c3a8225'
 
string revision = '19b00bc19b7b'
 
string YESNO_NAME = 'yesno_values'
 
list YESNO_VALUES = ['yes', 'no']
 

Function Documentation

◆ downgrade()

def downgrade ( )

Definition at line 24 of file 19b00bc19b7b_add_suppress_q850_reason_headers_to_.py.

24def downgrade():
25 if op.get_context().bind.dialect.name == 'mssql':
26 op.drop_constraint('ck_ps_endpoints_suppress_q850_reason_header_yesno_values','ps_endpoints')
27 op.drop_column('ps_endpoints', 'suppress_q850_reason_header')

◆ upgrade()

def upgrade ( )

Definition at line 20 of file 19b00bc19b7b_add_suppress_q850_reason_headers_to_.py.

20def upgrade():
21 yesno_values = ENUM(*YESNO_VALUES, name=YESNO_NAME, create_type=False)
22 op.add_column('ps_endpoints', sa.Column('suppress_q850_reason_header', yesno_values))
23

Variable Documentation

◆ down_revision

string down_revision = '0be05c3a8225'

◆ revision

string revision = '19b00bc19b7b'

◆ YESNO_NAME

string YESNO_NAME = 'yesno_values'

◆ YESNO_VALUES

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