diff --git a/ki/models.py b/ki/models.py index 9e80516..c7a89c1 100644 --- a/ki/models.py +++ b/ki/models.py @@ -188,7 +188,7 @@ class ProfileLanguage(db.Model): __tablename__ = "profile_language" profile_id = Column(Integer, ForeignKey("profile.id"), primary_key=True) - language_id = Column(Integer, ForeignKey("language.id"), primary_key=True) + language_id = Column(String(2), ForeignKey("language.id"), primary_key=True) level = Column(SmallInteger, nullable=False) profile = relationship("Profile", back_populates="languages")