Asterisk - The Open Source Telephony Project  18.5.0
Functions | Variables
81b01a191a46_pjsip_add_contact_reg_server Namespace Reference

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string down_revision = '65eb22eb195'
 
string revision = '81b01a191a46'
 

Function Documentation

◆ downgrade()

def 81b01a191a46_pjsip_add_contact_reg_server.downgrade ( )

Definition at line 21 of file 81b01a191a46_pjsip_add_contact_reg_server.py.

21 def downgrade():
22  op.drop_constraint('ps_contacts_uq', 'ps_contacts', type_='unique')
23  op.drop_column('ps_contacts', 'reg_server')

◆ upgrade()

def 81b01a191a46_pjsip_add_contact_reg_server.upgrade ( )

Definition at line 17 of file 81b01a191a46_pjsip_add_contact_reg_server.py.

17 def upgrade():
18  op.add_column('ps_contacts', sa.Column('reg_server', sa.String(20)))
19  op.create_unique_constraint('ps_contacts_uq', 'ps_contacts', ['id','reg_server'])
20 

Variable Documentation

◆ down_revision

string down_revision = '65eb22eb195'

Definition at line 11 of file 81b01a191a46_pjsip_add_contact_reg_server.py.

◆ revision

string revision = '81b01a191a46'

Definition at line 10 of file 81b01a191a46_pjsip_add_contact_reg_server.py.