~singpolyma/asterisk

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

Revision ID: 4e2493ef32e6
Revises: 3772f8f828da
Create Date: 2016-08-16 14:19:58.918466

"""

# revision identifiers, used by Alembic.
revision = '4e2493ef32e6'
down_revision = '3772f8f828da'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('ps_endpoints', sa.Column('contact_user', sa.String(80)))


def downgrade():
    op.drop_column('ps_endpoints', 'contact_user')