From 260b2e9fca04a8f80dd52bd5474126725596508a Mon Sep 17 00:00:00 2001 From: rv0lt Date: Fri, 13 Dec 2024 09:26:42 +0100 Subject: [PATCH] black --- .../0cd0a3b251e0_unit_contact_email_non_nullable.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/migrations/versions/0cd0a3b251e0_unit_contact_email_non_nullable.py b/migrations/versions/0cd0a3b251e0_unit_contact_email_non_nullable.py index 04b997f24..4e12d8772 100644 --- a/migrations/versions/0cd0a3b251e0_unit_contact_email_non_nullable.py +++ b/migrations/versions/0cd0a3b251e0_unit_contact_email_non_nullable.py @@ -19,8 +19,14 @@ def upgrade(): # ### commands auto generated by Alembic - please adjust! ### - unit_table = sa.sql.table("units", sa.sql.column("contact_email", mysql.TINYINT(display_width=1))) - op.execute(unit_table.update().where(unit_table.c.contact_email == None).values(contact_email="delivery@scilifelab.se")) + unit_table = sa.sql.table( + "units", sa.sql.column("contact_email", mysql.TINYINT(display_width=1)) + ) + op.execute( + unit_table.update() + .where(unit_table.c.contact_email == None) + .values(contact_email="delivery@scilifelab.se") + ) op.alter_column( "units", "contact_email",