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

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string down_revision = 'dbc44d5a908'
 
string revision = '3bcc0b5bc2c9'
 
string YESNO_NAME = 'yesno_values'
 
list YESNO_VALUES = ['yes', 'no']
 

Function Documentation

◆ downgrade()

def 3bcc0b5bc2c9_add_allow_reload_to_ps_transports.downgrade ( )

Definition at line 24 of file 3bcc0b5bc2c9_add_allow_reload_to_ps_transports.py.

24 def downgrade():
25  if op.get_context().bind.dialect.name == 'mssql':
26  op.drop_constraint('ck_ps_transports_allow_reload_yesno_values','ps_transports')
27  op.drop_column('ps_transports', 'allow_reload')

◆ upgrade()

def 3bcc0b5bc2c9_add_allow_reload_to_ps_transports.upgrade ( )

Definition at line 20 of file 3bcc0b5bc2c9_add_allow_reload_to_ps_transports.py.

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

Variable Documentation

◆ down_revision

string down_revision = 'dbc44d5a908'

◆ revision

string revision = '3bcc0b5bc2c9'

◆ YESNO_NAME

string YESNO_NAME = 'yesno_values'

◆ YESNO_VALUES

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