diff options
author | James Addison <james@reciperadar.com> | 2023-04-26 11:20:53 +0100 |
---|---|---|
committer | James Addison <james@reciperadar.com> | 2023-04-26 11:26:54 +0100 |
commit | ebe5f59677c641f404299cf4f3c2aa9fcc6c5c16 (patch) | |
tree | adeab1f9fba4c71331a42428330d511977fb1ac9 | |
parent | d2d3c7283095e1dc8157898eb34db2945fda4fcd (diff) | |
download | alembic-ebe5f59677c641f404299cf4f3c2aa9fcc6c5c16.tar.gz |
Fixup: consistency: re-apply black code formatting to Operation.create_primary_key snippet, allowing it to fit on a single line
Follows-on-from commit 84462eee9b742e58e0f1937f17820e946508b4e3.
-rw-r--r-- | alembic/operations/ops.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/alembic/operations/ops.py b/alembic/operations/ops.py index 8dccc42..f95ab70 100644 --- a/alembic/operations/ops.py +++ b/alembic/operations/ops.py @@ -308,9 +308,7 @@ class CreatePrimaryKeyOp(AddConstraintOp): from alembic import op - op.create_primary_key( - "pk_my_table", "my_table", ["id", "version"] - ) + op.create_primary_key("pk_my_table", "my_table", ["id", "version"]) This internally generates a :class:`~sqlalchemy.schema.Table` object containing the necessary columns, then generates a new |