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

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string down_revision = '4042a0ff4d9f'
 
string revision = 'f5b0e7427449'
 
string YESNO_NAME = 'yesno_values'
 
list YESNO_VALUES = ['yes', 'no']
 

Detailed Description

Add loop_last to res_musiconhold

Revision ID: f5b0e7427449
Revises: 4042a0ff4d9f
Create Date: 2023-03-13 23:59:00.835055

Function Documentation

◆ downgrade()

def downgrade ( )

Definition at line 24 of file f5b0e7427449_add_loop_last_to_res_musiconhold.py.

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

◆ upgrade()

def upgrade ( )

Definition at line 20 of file f5b0e7427449_add_loop_last_to_res_musiconhold.py.

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

Variable Documentation

◆ down_revision

string down_revision = '4042a0ff4d9f'

◆ revision

string revision = 'f5b0e7427449'

◆ YESNO_NAME

string YESNO_NAME = 'yesno_values'

◆ YESNO_VALUES

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