Asterisk - The Open Source Telephony Project GIT-master-f36a736
1758e8bbf6b_increase_useragent_column_size.py
Go to the documentation of this file.
2# Asterisk -- An open source telephony toolkit.
3#
4# Copyright (C) 2014, Richard Mudgett
5#
6# Richard Mudgett <rmudgett@digium.com>
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 useragent column size
20
21Revision ID: 1758e8bbf6b
22Revises: 1d50859ed02e
23Create Date: 2014-07-28 14:04:17.874332
24
25"""
26
27# revision identifiers, used by Alembic.
28revision = '1758e8bbf6b'
29down_revision = '1d50859ed02e'
30
31from alembic import op
32import sqlalchemy as sa
33
34
35def upgrade():
36 op.alter_column('sippeers', 'useragent', type_=sa.String(255))
37
38
40 op.alter_column('sippeers', 'useragent', type_=sa.String(20))