From ff96781f268f85ef71ccdf72371a193950aa0938 Mon Sep 17 00:00:00 2001 From: jacquesfize Date: Thu, 19 Dec 2024 10:40:28 +0100 Subject: [PATCH] fix lint --- ...8a907f74c_increase_t_medias_source_size.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/apptax/migrations/versions/2c68a907f74c_increase_t_medias_source_size.py b/apptax/migrations/versions/2c68a907f74c_increase_t_medias_source_size.py index 4cab1811..be0e6f95 100644 --- a/apptax/migrations/versions/2c68a907f74c_increase_t_medias_source_size.py +++ b/apptax/migrations/versions/2c68a907f74c_increase_t_medias_source_size.py @@ -5,24 +5,29 @@ Create Date: 2024-12-19 10:31:05.778720 """ + from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. -revision = '2c68a907f74c' -down_revision = '3c4762751898' +revision = "2c68a907f74c" +down_revision = "3c4762751898" branch_labels = None depends_on = None def upgrade(): - op.alter_column('t_medias', 'source', - type_=sa.Unicode(), - existing_nullable=True,schema='taxonomie') + op.alter_column( + "t_medias", "source", type_=sa.Unicode(), existing_nullable=True, schema="taxonomie" + ) def downgrade(): - op.alter_column('t_medias', 'source', + op.alter_column( + "t_medias", + "source", type_=sa.VARCHAR(length=25), - existing_nullable=True,schema='taxonomie') + existing_nullable=True, + schema="taxonomie", + )