~singpolyma/asterisk

ref: upstream/16.2.1_dfsg asterisk/contrib/ast-db-manage/config/versions/1c688d9a003c_pjsip_voicemail_extension.py -rw-r--r-- 899 bytes
fe6d69c0Stephen Paul Weber import-tar 1 year, 2 months 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
25
26
27
28
"""pjsip voicemail extension

Revision ID: 1c688d9a003c
Revises: 5813202e92be
Create Date: 2016-03-24 22:31:45.537895

"""

# revision identifiers, used by Alembic.
revision = '1c688d9a003c'
down_revision = '5813202e92be'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('ps_globals', sa.Column('default_voicemail_extension', sa.String(40)))
    op.add_column('ps_aors', sa.Column('voicemail_extension', sa.String(40)))
    op.add_column('ps_endpoints', sa.Column('voicemail_extension', sa.String(40)))
    op.add_column('ps_endpoints', sa.Column('mwi_subscribe_replaces_unsolicited', sa.Integer))


def downgrade():
    op.drop_column('ps_globals', 'default_voicemail_extension')
    op.drop_column('ps_aors', 'voicemail_extension')
    op.drop_column('ps_endpoints', 'voicemail_extension')
    op.drop_column('ps_endpoints', 'mwi_subscribe_replaces_unsolicited')