From b10608e277b4ac757592a8ae4049702c4ec43540 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 3 Apr 2017 14:16:29 -0400 Subject: [PATCH] Change teamsync config to be a UTF8 field --- data/migrations/versions/be8d1c402ce0_add_teamsync_table.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/migrations/versions/be8d1c402ce0_add_teamsync_table.py b/data/migrations/versions/be8d1c402ce0_add_teamsync_table.py index 073d395f0..e13d0a344 100644 --- a/data/migrations/versions/be8d1c402ce0_add_teamsync_table.py +++ b/data/migrations/versions/be8d1c402ce0_add_teamsync_table.py @@ -12,7 +12,7 @@ down_revision = 'a6c463dfb9fe' from alembic import op import sqlalchemy as sa -from sqlalchemy.dialects import mysql +from util.migrate import UTF8LongText def upgrade(tables): ### commands auto generated by Alembic - please adjust! ### @@ -22,7 +22,7 @@ def upgrade(tables): sa.Column('transaction_id', sa.String(length=255), nullable=False), sa.Column('last_updated', sa.DateTime(), nullable=True), sa.Column('service_id', sa.Integer(), nullable=False), - sa.Column('config', sa.Text(), nullable=False), + sa.Column('config', UTF8LongText(), nullable=False), sa.ForeignKeyConstraint(['service_id'], ['loginservice.id'], name=op.f('fk_teamsync_service_id_loginservice')), sa.ForeignKeyConstraint(['team_id'], ['team.id'], name=op.f('fk_teamsync_team_id_team')), sa.PrimaryKeyConstraint('id', name=op.f('pk_teamsync'))