From 785ab184af996a0c9e827d4324a1e52357a4c539 Mon Sep 17 00:00:00 2001 From: hay-kot Date: Sat, 29 May 2021 21:24:23 -0800 Subject: [PATCH] fix column type --- mealie/db/models/recipe/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mealie/db/models/recipe/comment.py b/mealie/db/models/recipe/comment.py index 7ccdbe1c70bb..1813be29c0c9 100644 --- a/mealie/db/models/recipe/comment.py +++ b/mealie/db/models/recipe/comment.py @@ -14,7 +14,7 @@ def generate_uuid(): class RecipeComment(SqlAlchemyBase, BaseMixins): __tablename__ = "recipe_comments" id = Column(Integer, primary_key=True) - uuid = Column(Integer, unique=True, nullable=False, default=generate_uuid) + uuid = Column(String, unique=True, nullable=False, default=generate_uuid) parent_id = Column(Integer, ForeignKey("recipes.id"), nullable=False) recipe = orm.relationship("RecipeModel", back_populates="comments") user_id = Column(Integer, ForeignKey("users.id"), nullable=False)