Merge "alembic: increase uri column size"

This commit is contained in:
Joshua Colp 2018-08-29 05:20:01 -05:00 committed by Gerrit Code Review
commit 7887be2111
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
"""Increase uri column size
Revision ID: 1d3ed26d9978
Revises: 19b00bc19b7b
Create Date: 2018-08-23 11:46:13.283801
"""
# revision identifiers, used by Alembic.
revision = '1d3ed26d9978'
down_revision = '19b00bc19b7b'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.alter_column('ps_contacts', 'uri', type_=sa.String(511))
def downgrade():
op.alter_column('ps_contacts', 'uri', type_=sa.String(255))