summaryrefslogtreecommitdiff
path: root/contrib/ast-db-manage/config/versions/65eb22eb195_add_unidentified_request_options_to_.py
blob: e0453a57c0593bcce341925f3e79fd5f0b08a68a (plain)
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')