Asterisk - The Open Source Telephony Project
18.5.0
contrib
ast-db-manage
config
versions
65eb22eb195_add_unidentified_request_options_to_.py
Go to the documentation of this file.
1
"""Add unidentified request options to global
2
3
Revision ID: 65eb22eb195
4
Revises: 8d478ab86e29
5
Create Date: 2016-03-11 11:58:51.567959
6
7
"""
8
9
# revision identifiers, used by Alembic.
10
revision =
'65eb22eb195'
11
down_revision =
'8d478ab86e29'
12
13
from
alembic
import
op
14
import
sqlalchemy
as
sa
15
16
17
def
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
23
def
downgrade
():
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'
)
65eb22eb195_add_unidentified_request_options_to_.upgrade
def upgrade()
Definition:
65eb22eb195_add_unidentified_request_options_to_.py:17
65eb22eb195_add_unidentified_request_options_to_.downgrade
def downgrade()
Definition:
65eb22eb195_add_unidentified_request_options_to_.py:23
Generated on Sun Aug 8 2021 19:42:56 for Asterisk - The Open Source Telephony Project by
1.8.13