mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
In r397874, the scripts were removed... but not replaced. Thanks to Michael Young for noticing this! ........ Merged revisions 397911 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397912 65c4cc65-6c06-0410-ace0-fbb531ad65f3
59 lines
1.7 KiB
Python
59 lines
1.7 KiB
Python
#
|
|
# Asterisk -- An open source telephony toolkit.
|
|
#
|
|
# Copyright (C) 2013, Russell Bryant
|
|
#
|
|
# Russell Bryant <russell@rusellbryant.net>
|
|
#
|
|
# See http://www.asterisk.org for more information about
|
|
# the Asterisk project. Please do not directly contact
|
|
# any of the maintainers of this project for assistance;
|
|
# the project provides a web site, mailing lists and IRC
|
|
# channels for your use.
|
|
#
|
|
# This program is free software, distributed under the terms of
|
|
# the GNU General Public License Version 2. See the LICENSE file
|
|
# at the top of the source tree.
|
|
#
|
|
|
|
"""Create tables
|
|
|
|
Revision ID: a2e9769475e
|
|
Revises: None
|
|
Create Date: 2013-07-29 23:43:09.431668
|
|
|
|
"""
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'a2e9769475e'
|
|
down_revision = None
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
def upgrade():
|
|
op.create_table(
|
|
'voicemail_messages',
|
|
sa.Column('dir', sa.String(255), nullable=False),
|
|
sa.Column('msgnum', sa.Integer, nullable=False),
|
|
sa.Column('context', sa.String(80)),
|
|
sa.Column('macrocontext', sa.String(80)),
|
|
sa.Column('callerid', sa.String(80)),
|
|
sa.Column('origtime', sa.Integer),
|
|
sa.Column('duration', sa.Integer),
|
|
sa.Column('recording', sa.LargeBinary),
|
|
sa.Column('flag', sa.String(30)),
|
|
sa.Column('category', sa.String(30)),
|
|
sa.Column('mailboxuser', sa.String(30)),
|
|
sa.Column('mailboxcontext', sa.String(30)),
|
|
sa.Column('msg_id', sa.String(40))
|
|
)
|
|
op.create_primary_key('voicemail_messages_dir_msgnum',
|
|
'voicemail_messages', ['dir', 'msgnum'])
|
|
op.create_index('voicemail_messages_dir', 'voicemail_messages', ['dir'])
|
|
|
|
|
|
def downgrade():
|
|
op.drop_table('voicemail_messages')
|