210693f3123d_create_cdr_table Namespace Reference


Functions

def downgrade
def upgrade

Variables

 down_revision = None
string revision = '210693f3123d'


Function Documentation

def 210693f3123d_create_cdr_table::downgrade (  ) 

Definition at line 62 of file 210693f3123d_create_cdr_table.py.

00062                :
00063     op.drop_table('cdr')
00064 

def 210693f3123d_create_cdr_table::upgrade (  ) 

Definition at line 35 of file 210693f3123d_create_cdr_table.py.

00035              :
00036     op.create_table(
00037         'cdr',
00038         sa.Column('accountcode', sa.String(20)),
00039         sa.Column('src', sa.String(80)),
00040         sa.Column('dst', sa.String(80)),
00041         sa.Column('dcontext', sa.String(80)),
00042         sa.Column('clid', sa.String(80)),
00043         sa.Column('channel', sa.String(80)),
00044         sa.Column('dstchannel', sa.String(80)),
00045         sa.Column('lastapp', sa.String(80)),
00046         sa.Column('lastdata', sa.String(80)),
00047         sa.Column('start', sa.DateTime()),
00048         sa.Column('answer', sa.DateTime()),
00049         sa.Column('end', sa.DateTime()),
00050         sa.Column('duration', sa.Integer),
00051         sa.Column('billsec', sa.Integer),
00052         sa.Column('disposition', sa.String(45)),
00053         sa.Column('amaflags', sa.String(45)),
00054         sa.Column('userfield', sa.String(256)),
00055         sa.Column('uniqueid', sa.String(150)),
00056         sa.Column('linkedid', sa.String(150)),
00057         sa.Column('peeraccount', sa.String(20)),
00058         sa.Column('sequence', sa.Integer)
00059     )
00060 
00061 
def downgrade():


Variable Documentation

down_revision = None

Definition at line 29 of file 210693f3123d_create_cdr_table.py.

string revision = '210693f3123d'

Definition at line 28 of file 210693f3123d_create_cdr_table.py.


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