d39508cb8d8_create_queue_rules.py

Go to the documentation of this file.
00001 """Create queue_rules
00002 
00003 Revision ID: d39508cb8d8
00004 Revises: 5139253c0423
00005 Create Date: 2014-08-10 17:27:32.973571
00006 
00007 """
00008 
00009 # revision identifiers, used by Alembic.
00010 revision = 'd39508cb8d8'
00011 down_revision = '5139253c0423'
00012 
00013 from alembic import op
00014 import sqlalchemy as sa
00015 
00016 
00017 def upgrade():
00018     op.create_table(
00019         'queue_rules',
00020         sa.Column('rule_name', sa.String(80), nullable=False),
00021         sa.Column('time', sa.String(32), nullable=False),
00022         sa.Column('min_penalty', sa.String(32), nullable=False),
00023         sa.Column('max_penalty', sa.String(32), nullable=False)
00024     )
00025 
00026 
00027 def downgrade():
00028     ########################## drop tables ###########################
00029 
00030     op.drop_table('queue_rules')
00031 

Generated on Thu Apr 16 06:27:32 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6