Asterisk - The Open Source Telephony Project  18.5.0
4e2493ef32e6_add_contact_user_to_endpoint.py
Go to the documentation of this file.
1 """Add contact_user to endpoint
2 
3 Revision ID: 4e2493ef32e6
4 Revises: 3772f8f828da
5 Create Date: 2016-08-16 14:19:58.918466
6 
7 """
8 
9 # revision identifiers, used by Alembic.
10 revision = '4e2493ef32e6'
11 down_revision = '3772f8f828da'
12 
13 from alembic import op
14 import sqlalchemy as sa
15 
16 
17 def upgrade():
18  op.add_column('ps_endpoints', sa.Column('contact_user', sa.String(80)))
19 
20 
21 def downgrade():
22  op.drop_column('ps_endpoints', 'contact_user')