23530d604b96_add_rpid_immediate Namespace Reference


Functions

def downgrade
def upgrade

Variables

string down_revision = '45e3f47c6c44'
string revision = '23530d604b96'
string YESNO_NAME = 'yesno_values'
list YESNO_VALUES = ['yes', 'no']


Function Documentation

def 23530d604b96_add_rpid_immediate::downgrade (  ) 

Definition at line 47 of file 23530d604b96_add_rpid_immediate.py.

00047                :
00048     op.drop_column('ps_endpoints', 'rpid_immediate')
    op.drop_column('ps_endpoints', 'rpid_immediate')

def 23530d604b96_add_rpid_immediate::upgrade (  ) 

Definition at line 38 of file 23530d604b96_add_rpid_immediate.py.

00038              :
00039     ############################# Enums ##############################
00040 
00041     # yesno_values have already been created, so use postgres enum object
00042     # type to get around "already created" issue - works okay with mysql
00043     yesno_values = ENUM(*YESNO_VALUES, name=YESNO_NAME, create_type=False)
00044 
00045     op.add_column('ps_endpoints', sa.Column('rpid_immediate', yesno_values))
00046 
def downgrade():


Variable Documentation

string down_revision = '45e3f47c6c44'

Definition at line 29 of file 23530d604b96_add_rpid_immediate.py.

string revision = '23530d604b96'

Definition at line 28 of file 23530d604b96_add_rpid_immediate.py.

string YESNO_NAME = 'yesno_values'

Definition at line 35 of file 23530d604b96_add_rpid_immediate.py.

list YESNO_VALUES = ['yes', 'no']

Definition at line 36 of file 23530d604b96_add_rpid_immediate.py.


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