In case of MySQL database when column is altered the existing type needs to be specified. Signed-off-by: Michal Konečný <mkonecny@redhat.com>
@@ -19,6 +19,7 @@ def upgrade():
op.alter_column(
'commit_flags',
column_name='token_id',
+ existing_type=sa.String(64),
nullable=False,
existing_nullable=True
)
@@ -28,6 +29,7 @@ def downgrade():
nullable=True,
existing_nullable=False