summaryrefslogtreecommitdiff
path: root/contrib/ast-db-manage/config/versions/1758e8bbf6b_increase_useragent_column_size.py
blob: 9fa09f0613013e6d74e59673055ae91d61c679a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# Asterisk -- An open source telephony toolkit.
#
# Copyright (C) 2014, Richard Mudgett
#
# Richard Mudgett <rmudgett@digium.com>
#
# 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.
#

"""increase useragent column size

Revision ID: 1758e8bbf6b
Revises: 1d50859ed02e
Create Date: 2014-07-28 14:04:17.874332

"""

# revision identifiers, used by Alembic.
revision = '1758e8bbf6b'
down_revision = '1d50859ed02e'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.alter_column('sippeers', 'useragent', type_=sa.String(255))


def downgrade():
    op.alter_column('sippeers', 'useragent', type_=sa.String(20))