fix column type
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
weeman 2021-08-02 21:22:48 +02:00
parent 39f014db86
commit 53f1108aba
Signed by: weeman
GPG Key ID: 34F0524D4DA694A1

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")