Skip to content
Snippets Groups Projects
Commit 9052e448 authored by Sungtae Kim's avatar Sungtae Kim Committed by George Joseph
Browse files

realtime: Increased reg_server character size

Currently, the ps_contacts table's reg_server column in realtime database type is varchar(20).
This is fine for normal cases, but if the hostname is longer than 20, it returns error and then
failed to register the contact address of the peer.

Normally, 20 characters limitation for the hostname is fine, but with the cloud env.
So, increased the size to 255.

ASTERISK-29056

Change-Id: Iac52c8c35030303cfa551bb39f410b33bffc507d
parent aae0904c
No related branches found
No related tags found
3 merge requests!138Merge branch asterisk-20.3.0 into devel properly,!123Merge asterisk '20.3.0' into devel,!118Draft: manager: AOC-S support for AOCMessage
"""increse reg server size
Revision ID: 1ae0609b6646
Revises: 61797b9fced6
Create Date: 2020-08-31 13:50:19.772439
"""
# revision identifiers, used by Alembic.
revision = '1ae0609b6646'
down_revision = '61797b9fced6'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.alter_column('ps_contacts', 'reg_server', type_=sa.String(255))
def downgrade():
op.alter_column('ps_contacts', 'reg_server', type_=sa.String(20))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment