Asterisk - The Open Source Telephony Project GIT-master-27fb039
Loading...
Searching...
No Matches
Functions | Variables
6c475a93f48a_correct_nullability_of_pjsip_id_columns Namespace Reference

Functions

 downgrade ()
 
 upgrade ()
 

Variables

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

Function Documentation

◆ downgrade()

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()

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

str down_revision = 'd5122576cca8'

◆ PJSIP_TABLES

list PJSIP_TABLES

◆ revision

str revision = '6c475a93f48a'