Asterisk - The Open Source Telephony Project GIT-master-f36a736
54cde9847798_expand_accountcode_to_80.py
Go to the documentation of this file.
1"""expand accountcode to 80
2
3Revision ID: 54cde9847798
4Revises: 210693f3123d
5Create Date: 2015-11-05 09:54:06.815364
6
7"""
8
9# revision identifiers, used by Alembic.
10revision = '54cde9847798'
11down_revision = '210693f3123d'
12
13from alembic import op
14import sqlalchemy as sa
15
16
17def upgrade():
18 op.alter_column('cdr', 'accountcode', type_=sa.String(80))
19 op.alter_column('cdr', 'peeraccount', type_=sa.String(80))
20 pass
21
22
24 op.alter_column('cdr', 'accountcode', type_=sa.String(20))
25 op.alter_column('cdr', 'peeraccount', type_=sa.String(20))
26 pass