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

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string down_revision = '18e0805d367f'
 
string revision = '58e440314c2a'
 
string YESNO_NAME = 'yesno_values'
 
list YESNO_VALUES = ['yes', 'no']
 

Function Documentation

◆ downgrade()

def downgrade ( )

Definition at line 26 of file 58e440314c2a_allow_wildcard_certs.py.

26def downgrade():
27 if op.get_context().bind.dialect.name == 'mssql':
28 op.drop_constraint('ck_ps_transports_allow_wildcard_certs_yesno_values', 'ps_transports')
29 op.drop_column('ps_transports', 'allow_wildcard_certs')

◆ upgrade()

def upgrade ( )

Definition at line 20 of file 58e440314c2a_allow_wildcard_certs.py.

20def upgrade():
21 yesno_values = ENUM(*YESNO_VALUES, name=YESNO_NAME, create_type=False)
22
23 op.add_column('ps_transports', sa.Column('allow_wildcard_certs', type_=yesno_values))
24
25

Variable Documentation

◆ down_revision

string down_revision = '18e0805d367f'

Definition at line 11 of file 58e440314c2a_allow_wildcard_certs.py.

◆ revision

string revision = '58e440314c2a'

Definition at line 10 of file 58e440314c2a_allow_wildcard_certs.py.

◆ YESNO_NAME

string YESNO_NAME = 'yesno_values'

Definition at line 17 of file 58e440314c2a_allow_wildcard_certs.py.

◆ YESNO_VALUES

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

Definition at line 18 of file 58e440314c2a_allow_wildcard_certs.py.