Asterisk - The Open Source Telephony Project GIT-master-abe0018
65eb22eb195_add_unidentified_request_options_to_.py
Go to the documentation of this file.
1"""Add unidentified request options to global
2
3Revision ID: 65eb22eb195
4Revises: 8d478ab86e29
5Create Date: 2016-03-11 11:58:51.567959
6
7"""
8
9# revision identifiers, used by Alembic.
10revision = '65eb22eb195'
11down_revision = '8d478ab86e29'
12
13from alembic import op
14import sqlalchemy as sa
15
16
17def upgrade():
18 op.add_column('ps_globals', sa.Column('unidentified_request_count', sa.Integer))
19 op.add_column('ps_globals', sa.Column('unidentified_request_period', sa.Integer))
20 op.add_column('ps_globals', sa.Column('unidentified_request_prune_interval', sa.Integer))
21 op.add_column('ps_globals', sa.Column('default_realm', sa.String(40)))
22
24 op.drop_column('ps_globals', 'unidentified_request_count')
25 op.drop_column('ps_globals', 'unidentified_request_period')
26 op.drop_column('ps_globals', 'unidentified_request_prune_interval')
27 op.drop_column('ps_globals', 'default_realm')