Asterisk - The Open Source Telephony Project GIT-master-f36a736
Functions | Variables
a2e9769475e_create_tables Namespace Reference

Functions

def downgrade ()
 
def upgrade ()
 

Variables

 down_revision = None
 
string revision = 'a2e9769475e'
 

Function Documentation

◆ downgrade()

def downgrade ( )

Definition at line 57 of file a2e9769475e_create_tables.py.

57def downgrade():
58 op.drop_table('voicemail_messages')

◆ upgrade()

def upgrade ( )

Definition at line 35 of file a2e9769475e_create_tables.py.

35def upgrade():
36 op.create_table(
37 'voicemail_messages',
38 sa.Column('dir', sa.String(255), nullable=False),
39 sa.Column('msgnum', sa.Integer, nullable=False),
40 sa.Column('context', sa.String(80)),
41 sa.Column('macrocontext', sa.String(80)),
42 sa.Column('callerid', sa.String(80)),
43 sa.Column('origtime', sa.Integer),
44 sa.Column('duration', sa.Integer),
45 sa.Column('recording', sa.LargeBinary),
46 sa.Column('flag', sa.String(30)),
47 sa.Column('category', sa.String(30)),
48 sa.Column('mailboxuser', sa.String(30)),
49 sa.Column('mailboxcontext', sa.String(30)),
50 sa.Column('msg_id', sa.String(40))
51 )
52 op.create_primary_key('voicemail_messages_dir_msgnum',
53 'voicemail_messages', ['dir', 'msgnum'])
54 op.create_index('voicemail_messages_dir', 'voicemail_messages', ['dir'])
55
56

Variable Documentation

◆ down_revision

down_revision = None

Definition at line 29 of file a2e9769475e_create_tables.py.

◆ revision

string revision = 'a2e9769475e'

Definition at line 28 of file a2e9769475e_create_tables.py.