Asterisk - The Open Source Telephony Project GIT-master-3dee037
Functions | Variables
6c475a93f48a_correct_nullability_of_pjsip_id_columns Namespace Reference

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string down_revision = 'd5122576cca8'
 
list PJSIP_TABLES
 
string revision = '6c475a93f48a'
 

Function Documentation

◆ downgrade()

def downgrade ( )

Definition at line 33 of file 6c475a93f48a_correct_nullability_of_pjsip_id_columns.py.

33def downgrade():
34 for table_name in reversed(PJSIP_TABLES):
35 with op.batch_alter_table(table_name) as batch_op:
36 batch_op.alter_column('id', nullable=True,
37 existing_type=sa.String(255), existing_server_default=None,
38 existing_nullable=True)

◆ upgrade()

def upgrade ( )

Definition at line 25 of file 6c475a93f48a_correct_nullability_of_pjsip_id_columns.py.

25def upgrade():
26 for table_name in PJSIP_TABLES:
27 with op.batch_alter_table(table_name) as batch_op:
28 batch_op.alter_column('id', nullable=False,
29 existing_type=sa.String(255), existing_server_default=None,
30 existing_nullable=True)
31
32

Variable Documentation

◆ down_revision

string down_revision = 'd5122576cca8'

◆ PJSIP_TABLES

list PJSIP_TABLES

◆ revision

string revision = '6c475a93f48a'