~singpolyma/asterisk

ref: 130ba7aeba07eb8bb3ea34418ca458bb58b05080 asterisk/contrib/ast-db-manage/config/versions/3855ee4e5f85_add_missing_pjsip_options.py -rw-r--r-- 560 bytes
130ba7ae — Bernhard Schmidt Import asterisk_16.2.1~dfsg.orig.tar.xz 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"""add_missing_pjsip_options

Revision ID: 3855ee4e5f85
Revises: 4c573e7135bd
Create Date: 2014-03-28 10:49:04.637730

"""

# revision identifiers, used by Alembic.
revision = '3855ee4e5f85'
down_revision = '4c573e7135bd'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('ps_endpoints', sa.Column('message_context', sa.String(40)))
    op.add_column('ps_contacts', sa.Column('user_agent', sa.String(40)))


def downgrade():
    op.drop_column('ps_contacts', 'user_agent')
    op.drop_column('ps_endpoints', 'message_context')