Asterisk - The Open Source Telephony Project  18.5.0
Functions | Variables
210693f3123d_create_cdr_table Namespace Reference

Functions

def downgrade ()
 
def upgrade ()
 

Variables

 down_revision = None
 
string revision = '210693f3123d'
 

Function Documentation

◆ downgrade()

def 210693f3123d_create_cdr_table.downgrade ( )

Definition at line 62 of file 210693f3123d_create_cdr_table.py.

62 def downgrade():
63  op.drop_table('cdr')

◆ upgrade()

def 210693f3123d_create_cdr_table.upgrade ( )

Definition at line 35 of file 210693f3123d_create_cdr_table.py.

Referenced by ast_websocket_uri_cb().

35 def upgrade():
36  op.create_table(
37  'cdr',
38  sa.Column('accountcode', sa.String(20)),
39  sa.Column('src', sa.String(80)),
40  sa.Column('dst', sa.String(80)),
41  sa.Column('dcontext', sa.String(80)),
42  sa.Column('clid', sa.String(80)),
43  sa.Column('channel', sa.String(80)),
44  sa.Column('dstchannel', sa.String(80)),
45  sa.Column('lastapp', sa.String(80)),
46  sa.Column('lastdata', sa.String(80)),
47  sa.Column('start', sa.DateTime()),
48  sa.Column('answer', sa.DateTime()),
49  sa.Column('end', sa.DateTime()),
50  sa.Column('duration', sa.Integer),
51  sa.Column('billsec', sa.Integer),
52  sa.Column('disposition', sa.String(45)),
53  sa.Column('amaflags', sa.String(45)),
54  sa.Column('userfield', sa.String(256)),
55  sa.Column('uniqueid', sa.String(150)),
56  sa.Column('linkedid', sa.String(150)),
57  sa.Column('peeraccount', sa.String(20)),
58  sa.Column('sequence', sa.Integer)
59  )
60 
61 

Variable Documentation

◆ down_revision

down_revision = None

Definition at line 29 of file 210693f3123d_create_cdr_table.py.

◆ revision

string revision = '210693f3123d'

Definition at line 28 of file 210693f3123d_create_cdr_table.py.