diff options
author | James Addison <james@reciperadar.com> | 2023-04-26 11:18:04 +0100 |
---|---|---|
committer | James Addison <james@reciperadar.com> | 2023-04-26 11:18:23 +0100 |
commit | d2d3c7283095e1dc8157898eb34db2945fda4fcd (patch) | |
tree | 056f9a7677c78578a5ebb66db27653f72085d86e | |
parent | 84462eee9b742e58e0f1937f17820e946508b4e3 (diff) | |
download | alembic-d2d3c7283095e1dc8157898eb34db2945fda4fcd.tar.gz |
Fixup: consistency: also apply codestyle formatting to 'server_default' snippet in Operation.create_table docstring
Follows-on-from commit 84462eee9b742e58e0f1937f17820e946508b4e3.
-rw-r--r-- | alembic/operations/ops.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/alembic/operations/ops.py b/alembic/operations/ops.py index aab45d4..8dccc42 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 |