Asterisk - The Open Source Telephony Project  18.5.0
Functions | Variables
581a4264e537_adding_extensions Namespace Reference

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string down_revision = '43956d550a44'
 
string revision = '581a4264e537'
 

Function Documentation

◆ downgrade()

def 581a4264e537_adding_extensions.downgrade ( )

Definition at line 47 of file 581a4264e537_adding_extensions.py.

47 def downgrade():
48  op.drop_table('extensions')

◆ upgrade()

def 581a4264e537_adding_extensions.upgrade ( )

Definition at line 34 of file 581a4264e537_adding_extensions.py.

34 def upgrade():
35  op.create_table(
36  'extensions',
37  sa.Column('id', sa.BigInteger, primary_key=True, nullable=False,
38  unique=True, autoincrement=True),
39  sa.Column('context', sa.String(40), nullable=False),
40  sa.Column('exten', sa.String(40), nullable=False),
41  sa.Column('priority', sa.Integer, nullable=False),
42  sa.Column('app', sa.String(40), nullable=False),
43  sa.Column('appdata', sa.String(256), nullable=False),
44  sa.UniqueConstraint('context', 'exten', 'priority')
45  )
46 

Variable Documentation

◆ down_revision

string down_revision = '43956d550a44'

Definition at line 29 of file 581a4264e537_adding_extensions.py.

◆ revision

string revision = '581a4264e537'

Definition at line 28 of file 581a4264e537_adding_extensions.py.