Asterisk - The Open Source Telephony Project
18.5.0
contrib
ast-db-manage
voicemail
versions
39428242f7f5_increase_recording_column_size.py
Go to the documentation of this file.
1
#
2
# Asterisk -- An open source telephony toolkit.
3
#
4
# Copyright (C) 2014, Richard Mudgett
5
#
6
# Richard Mudgett <
[email protected]
>
7
#
8
# See http://www.asterisk.org for more information about
9
# the Asterisk project. Please do not directly contact
10
# any of the maintainers of this project for assistance;
11
# the project provides a web site, mailing lists and IRC
12
# channels for your use.
13
#
14
# This program is free software, distributed under the terms of
15
# the GNU General Public License Version 2. See the LICENSE file
16
# at the top of the source tree.
17
#
18
19
"""increase recording column size
20
21
Revision ID: 39428242f7f5
22
Revises: a2e9769475e
23
Create Date: 2014-07-28 16:02:05.104895
24
25
"""
26
27
# revision identifiers, used by Alembic.
28
revision =
'39428242f7f5'
29
down_revision =
'a2e9769475e'
30
31
from
alembic
import
op
32
import
sqlalchemy
as
sa
33
34
35
def
upgrade
():
36
# Make BLOB a LONGBLOB for mysql so recordings longer than about
37
# four seconds can be stored.
38
# See LargeBinary http://docs.sqlalchemy.org/en/rel_0_9/core/types.html
39
op.alter_column(
'voicemail_messages'
,
'recording'
, type_=sa.LargeBinary(4294967295))
40
41
42
def
downgrade
():
43
op.alter_column(
'voicemail_messages'
,
'recording'
, type_=sa.LargeBinary)
39428242f7f5_increase_recording_column_size.downgrade
def downgrade()
Definition:
39428242f7f5_increase_recording_column_size.py:42
39428242f7f5_increase_recording_column_size.upgrade
def upgrade()
Definition:
39428242f7f5_increase_recording_column_size.py:35
Generated on Sun Aug 8 2021 19:42:56 for Asterisk - The Open Source Telephony Project by
1.8.13