Asterisk - The Open Source Telephony Project  18.5.0
1d3ed26d9978_increase_uri_column_size.py
Go to the documentation of this file.
1 """Increase uri column size
2 
3 Revision ID: 1d3ed26d9978
4 Revises: 19b00bc19b7b
5 Create Date: 2018-08-23 11:46:13.283801
6 
7 """
8 
9 # revision identifiers, used by Alembic.
10 revision = '1d3ed26d9978'
11 down_revision = '19b00bc19b7b'
12 
13 from alembic import op
14 import sqlalchemy as sa
15 
16 
17 def upgrade():
18  op.alter_column('ps_contacts', 'uri', type_=sa.String(511))
19 
20 
21 def downgrade():
22  op.alter_column('ps_contacts', 'uri', type_=sa.String(255))