From 53f1108abac7c2f87ddecaa99d713e19fbecd5e8 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Mon, 2 Aug 2021 21:22:48 +0200 Subject: [PATCH] fix column type --- ki/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")