Asterisk - The Open Source Telephony Project  18.5.0
465e70e8c337_add_match_header_attribute_to_identify.py
Go to the documentation of this file.
1 """Add match_header attribute to identify
2 
3 Revision ID: 465e70e8c337
4 Revises: 28ab27a7826d
5 Create Date: 2017-03-14 08:13:53.986681
6 
7 """
8 
9 # revision identifiers, used by Alembic.
10 revision = '465e70e8c337'
11 down_revision = '28ab27a7826d'
12 
13 from alembic import op
14 import sqlalchemy as sa
15 
16 
17 def upgrade():
18  op.add_column('ps_endpoint_id_ips', sa.Column('match_header', sa.String(255)))
19 
20 def downgrade():
21  op.drop_column('ps_endpoint_id_ips', 'match_header')