Asterisk - The Open Source Telephony Project GIT-master-f36a736
d39508cb8d8_create_queue_rules.py
Go to the documentation of this file.
1"""Create queue_rules
2
3Revision ID: d39508cb8d8
4Revises: 5139253c0423
5Create Date: 2014-08-10 17:27:32.973571
6
7"""
8
9# revision identifiers, used by Alembic.
10revision = 'd39508cb8d8'
11down_revision = '5139253c0423'
12
13from alembic import op
14import sqlalchemy as sa
15
16
17def upgrade():
18 op.create_table(
19 'queue_rules',
20 sa.Column('rule_name', sa.String(80), nullable=False),
21 sa.Column('time', sa.String(32), nullable=False),
22 sa.Column('min_penalty', sa.String(32), nullable=False),
23 sa.Column('max_penalty', sa.String(32), nullable=False)
24 )
25
26
28 ########################## drop tables ###########################
29
30 op.drop_table('queue_rules')