fix column type
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-08-02 21:29:06 +02:00
parent 39f014db86
commit 2d49c70f0f
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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")