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

Functions

def downgrade ()
 
def upgrade ()
 

Variables

string down_revision = '28ce1e718f05'
 
string revision = '339a3bdf53fc'
 

Function Documentation

◆ downgrade()

def downgrade ( )

Definition at line 27 of file 339a3bdf53fc_expand_accountcode_to_80.py.

27def downgrade():
28 with op.batch_alter_table('ps_endpoints') as batch_op:
29 batch_op.alter_column('accountcode', type_=sa.String(20))
30 with op.batch_alter_table('sippeers') as batch_op:
31 batch_op.alter_column('accountcode', type_=sa.String(40))
32 with op.batch_alter_table('iaxfriends') as batch_op:
33 batch_op.alter_column('accountcode', type_=sa.String(20))
34 pass

◆ upgrade()

def upgrade ( )

Definition at line 17 of file 339a3bdf53fc_expand_accountcode_to_80.py.

17def upgrade():
18 with op.batch_alter_table('ps_endpoints') as batch_op:
19 batch_op.alter_column('accountcode', type_=sa.String(80))
20 with op.batch_alter_table('sippeers') as batch_op:
21 batch_op.alter_column('accountcode', type_=sa.String(80))
22 with op.batch_alter_table('iaxfriends') as batch_op:
23 batch_op.alter_column('accountcode', type_=sa.String(80))
24 pass
25
26

Variable Documentation

◆ down_revision

string down_revision = '28ce1e718f05'

Definition at line 11 of file 339a3bdf53fc_expand_accountcode_to_80.py.

◆ revision

string revision = '339a3bdf53fc'

Definition at line 10 of file 339a3bdf53fc_expand_accountcode_to_80.py.