Asterisk - The Open Source Telephony Project  18.5.0
d39508cb8d8_create_queue_rules.py
Go to the documentation of this file.
1 """Create queue_rules
2 
3 Revision ID: d39508cb8d8
4 Revises: 5139253c0423
5 Create Date: 2014-08-10 17:27:32.973571
6 
7 """
8 
9 # revision identifiers, used by Alembic.
10 revision = 'd39508cb8d8'
11 down_revision = '5139253c0423'
12 
13 from alembic import op
14 import sqlalchemy as sa
15 
16 
17 def 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 
27 def downgrade():
28  ########################## drop tables ###########################
29 
30  op.drop_table('queue_rules')