5139253c0423_make_q_member_uniqueid_autoinc Namespace Reference


Functions

def downgrade
def upgrade

Variables

string down_revision = '1758e8bbf6b'
string revision = '5139253c0423'


Function Documentation

def 5139253c0423_make_q_member_uniqueid_autoinc::downgrade (  ) 

Definition at line 53 of file 5139253c0423_make_q_member_uniqueid_autoinc.py.

00053                :
00054     # Was unable to find a way to use op.alter_column() to remove the
00055     # unique index property.
00056     op.drop_column('queue_members', 'uniqueid')
00057     op.add_column(
00058         'queue_members',
00059         sa.Column(name='uniqueid', type_=sa.String(80), nullable=False))
00060 

def 5139253c0423_make_q_member_uniqueid_autoinc::upgrade (  ) 

Definition at line 35 of file 5139253c0423_make_q_member_uniqueid_autoinc.py.

00035              :
00036     # Was unable to find a way to use op.alter_column() to add the unique
00037     # index property.
00038     op.drop_column('queue_members', 'uniqueid')
00039     op.add_column(
00040         'queue_members',
00041         sa.Column(
00042             name='uniqueid', type_=sa.Integer, nullable=False,
00043             unique=True))
00044     # The postgres backend does not like the autoincrement needed for
00045     # mysql here.  It is just the backend that is giving a warning and
00046     # not the database itself.
00047     op.alter_column(
00048         table_name='queue_members', column_name='uniqueid',
00049         existing_type=sa.Integer, existing_nullable=False,
00050         autoincrement=True)
00051 
00052 
def downgrade():


Variable Documentation

string down_revision = '1758e8bbf6b'

string revision = '5139253c0423'


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