Skip to content

Commit 8778001

Browse files
committed
Fix alter primary key error
1 parent 295fded commit 8778001

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_alter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ class TypeMaster(dj.Manual):
4848
"""
4949

5050
class Type(dj.Part):
51+
# NOTE type_id is necessary because table.alter cannot alter the primary key (yet)
5152
definition = """
5253
-> master
54+
type_id : int
5355
"""
5456

5557
definition1 = """

0 commit comments

Comments
 (0)