~singpolyma/asterisk

ref: 130ba7aeba07eb8bb3ea34418ca458bb58b05080 asterisk/contrib/ast-db-manage/config/versions/d39508cb8d8_create_queue_rules.py -rw-r--r-- 702 bytes
130ba7ae — Bernhard Schmidt Import asterisk_16.2.1~dfsg.orig.tar.xz 3 years 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')