summaryrefslogtreecommitdiff
path: root/alembic/operations/ops.py
diff options
context:
space:
mode:
Diffstat (limited to 'alembic/operations/ops.py')
-rw-r--r--alembic/operations/ops.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/alembic/operations/ops.py b/alembic/operations/ops.py
index 73ae55f..aee2c90 100644
--- a/alembic/operations/ops.py
+++ b/alembic/operations/ops.py
@@ -150,7 +150,10 @@ class CreatePrimaryKeyOp(AddConstraintOp):
self.columns, schema=self.schema)
@classmethod
- @util._with_legacy_names([('name', 'constraint_name')])
+ @util._with_legacy_names([
+ ('name', 'constraint_name'),
+ ('cols', 'columns')
+ ])
def create_primary_key(
cls, operations,
constraint_name, table_name, columns, schema=None):