From: James Addison Date: Wed, 26 Apr 2023 10:18:04 +0000 (+0100) Subject: Fixup: consistency: also apply codestyle formatting to 'server_default' snippet in... X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d2d3c7283095e1dc8157898eb34db2945fda4fcd;p=thirdparty%2Fsqlalchemy%2Falembic.git Fixup: consistency: also apply codestyle formatting to 'server_default' snippet in Operation.create_table docstring Follows-on-from commit 84462eee9b742e58e0f1937f17820e946508b4e3. --- diff --git a/alembic/operations/ops.py b/alembic/operations/ops.py index aab45d4c..8dccc428 100644 --- a/alembic/operations/ops.py +++ b/alembic/operations/ops.py @@ -1214,9 +1214,10 @@ class CreateTableOp(MigrateOperation): from sqlalchemy import Column, TIMESTAMP, func # specify "DEFAULT NOW" along with the "timestamp" column - op.create_table('account', - Column('id', INTEGER, primary_key=True), - Column('timestamp', TIMESTAMP, server_default=func.now()) + op.create_table( + "account", + Column("id", INTEGER, primary_key=True), + Column("timestamp", TIMESTAMP, server_default=func.now()), ) The function also returns a newly created