mirror of https://github.com/asterisk/asterisk
* changes: Alembic: Increase column size of PJSIP AOR "contact". Alembic: Add PJSIP global keep_alive_interval.changes/46/1846/1
commit
03dab00d1d
@ -0,0 +1,22 @@
|
|||||||
|
"""add_keep_alive_interval
|
||||||
|
|
||||||
|
Revision ID: 189a235b3fd7
|
||||||
|
Revises: 28ce1e718f05
|
||||||
|
Create Date: 2015-12-16 11:23:16.994523
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = '189a235b3fd7'
|
||||||
|
down_revision = '28ce1e718f05'
|
||||||
|
|
||||||
|
from alembic import op
|
||||||
|
import sqlalchemy as sa
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade():
|
||||||
|
op.add_column('ps_globals', sa.Column('keep_alive_interval', sa.Integer))
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade():
|
||||||
|
op.drop_column('ps_globals', 'keep_alive_interval')
|
@ -0,0 +1,22 @@
|
|||||||
|
"""increaes_contact_column_size
|
||||||
|
|
||||||
|
Revision ID: 2d078ec071b7
|
||||||
|
Revises: 189a235b3fd7
|
||||||
|
Create Date: 2015-12-16 11:26:54.218985
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = '2d078ec071b7'
|
||||||
|
down_revision = '189a235b3fd7'
|
||||||
|
|
||||||
|
from alembic import op
|
||||||
|
import sqlalchemy as sa
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade():
|
||||||
|
op.alter_column('ps_aors', 'contact', type_=sa.String(255))
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade():
|
||||||
|
op.alter_column('ps_aors', 'contact', type_=sa.String(40))
|
Loading…
Reference in new issue