From 9007ddcdf5557b22f89de9396f681657f9e94002 Mon Sep 17 00:00:00 2001 From: Kostanjevec Date: Mon, 13 Jun 2022 14:27:14 +0200 Subject: [PATCH] share_id is now Text, so it can accept hash. --- create_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_db.py b/create_db.py index 53aff5f..27a6e60 100644 --- a/create_db.py +++ b/create_db.py @@ -36,7 +36,7 @@ class Card(Base): interest_rate = Column(Float) item_location = Column(String(1024)) last_review = Column(Text) - share_id = Column(Integer) #explain: 0 means not shared, otherwise increment from db and generate new cards for all relevant(tbd) users + share_id = Column(Text) #explain: 0 means not shared, otherwise increment from db and generate new cards for all relevant(tbd) users class Deck(Base): __tablename__ = 'deck'