mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 07:48:14 +00:00
Increase account code maximum length to 80.
This increases the maximum length of account code's to match
extensions. This ensures it is always possible to set an
accountcode to ${EXTEN} without truncation.
ASTERISK-23904
Reported by: Ben Merrills
Change-Id: If122602304ce03362722eb213a3111b32da5eeb9
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
"""expand accountcode to 80
|
||||
|
||||
Revision ID: 339a3bdf53fc
|
||||
Revises: 28ce1e718f05
|
||||
Create Date: 2015-11-05 10:10:27.465794
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '339a3bdf53fc'
|
||||
down_revision = '28ce1e718f05'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.alter_column('ps_endpoints', 'accountcode', type_=sa.String(80))
|
||||
op.alter_column('sippeers', 'accountcode', type_=sa.String(80))
|
||||
op.alter_column('iaxfriends', 'accountcode', type_=sa.String(80))
|
||||
pass
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.alter_column('ps_endpoints', 'accountcode', type_=sa.String(20))
|
||||
op.alter_column('sippeers', 'accountcode', type_=sa.String(40))
|
||||
op.alter_column('iaxfriends', 'accountcode', type_=sa.String(20))
|
||||
pass
|
||||
Reference in New Issue
Block a user