~singpolyma/asterisk

ref: upstream/16.2.1_dfsg asterisk/contrib/ast-db-manage/config/versions/d39508cb8d8_create_queue_rules.py -rw-r--r-- 702 bytes
fe6d69c0Stephen Paul Weber import-tar 1 year, 2 months ago
                                                                                
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
28
29
30
"""Create queue_rules

Revision ID: d39508cb8d8
Revises: 5139253c0423
Create Date: 2014-08-10 17:27:32.973571

"""

# revision identifiers, used by Alembic.
revision = 'd39508cb8d8'
down_revision = '5139253c0423'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.create_table(
        'queue_rules',
        sa.Column('rule_name', sa.String(80), nullable=False),
        sa.Column('time', sa.String(32), nullable=False),
        sa.Column('min_penalty', sa.String(32), nullable=False),
        sa.Column('max_penalty', sa.String(32), nullable=False)
    )


def downgrade():
    ########################## drop tables ###########################

    op.drop_table('queue_rules')