曾凯修改了student_id中外键约束更改了大写Student.id,原先为小写student.id
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ class Score(Base):
|
|||||||
,comment="成绩表序号,自增主键"
|
,comment="成绩表序号,自增主键"
|
||||||
)
|
)
|
||||||
student_id = Column(Integer
|
student_id = Column(Integer
|
||||||
,ForeignKey("student.id")
|
,ForeignKey("Student.id")
|
||||||
,nullable=False
|
,nullable=False
|
||||||
,comment="学生学号"
|
,comment="学生学号"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user