5950038a6ead_fix_pjsip_verifiy_typo.py

Go to the documentation of this file.
00001 """Fix pjsip transports verify column
00002 
00003 Revision ID: 5950038a6ead
00004 Revises: d39508cb8d8
00005 Create Date: 2014-09-15 06:21:35.047314
00006 
00007 """
00008 
00009 # revision identifiers, used by Alembic.
00010 revision = '5950038a6ead'
00011 down_revision = 'd39508cb8d8'
00012 
00013 from alembic import op
00014 from sqlalchemy.dialects.postgresql import ENUM
00015 
00016 YESNO_NAME = 'yesno_values'
00017 YESNO_VALUES = ['yes', 'no']
00018 
00019 
00020 def upgrade():
00021     yesno_values = ENUM(*YESNO_VALUES, name=YESNO_NAME, create_type=False)
00022     op.alter_column('ps_transports', 'verifiy_server', type_=yesno_values,
00023                     new_column_name='verify_server')
00024 
00025 
00026 def downgrade():
00027     yesno_values = ENUM(*YESNO_VALUES, name=YESNO_NAME, create_type=False)
00028     op.alter_column('ps_transports', 'verify_server', type_=yesno_values,
00029                     new_column_name='verifiy_server')

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