~singpolyma/asterisk

ref: 130ba7aeba07eb8bb3ea34418ca458bb58b05080 asterisk/contrib/ast-db-manage/config/versions/65eb22eb195_add_unidentified_request_options_to_.py -rw-r--r-- 909 bytes
130ba7ae — Bernhard Schmidt Import asterisk_16.2.1~dfsg.orig.tar.xz 4 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
23
24
25
26
27
"""Add unidentified request options to global

Revision ID: 65eb22eb195
Revises: 8d478ab86e29
Create Date: 2016-03-11 11:58:51.567959

"""

# revision identifiers, used by Alembic.
revision = '65eb22eb195'
down_revision = '8d478ab86e29'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('ps_globals', sa.Column('unidentified_request_count', sa.Integer))
    op.add_column('ps_globals', sa.Column('unidentified_request_period', sa.Integer))
    op.add_column('ps_globals', sa.Column('unidentified_request_prune_interval', sa.Integer))
    op.add_column('ps_globals', sa.Column('default_realm', sa.String(40)))

def downgrade():
    op.drop_column('ps_globals', 'unidentified_request_count')
    op.drop_column('ps_globals', 'unidentified_request_period')
    op.drop_column('ps_globals', 'unidentified_request_prune_interval')
    op.drop_column('ps_globals', 'default_realm')