From 5f84794e24fefb53990c9e7a648dc1c45f5bb131 Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Sat, 11 Mar 2023 17:06:21 +0100 Subject: [PATCH] Modify Locale table --- truthinquiry/ext/database/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/truthinquiry/ext/database/models.py b/truthinquiry/ext/database/models.py index e030672..4a5f4b7 100644 --- a/truthinquiry/ext/database/models.py +++ b/truthinquiry/ext/database/models.py @@ -10,8 +10,9 @@ class Locale(Base): """ __tablename__ = 'T_LOCALE' - TEXT_ID = Column(Integer, primary_key=True, comment="ID of this text (the other tables references to this with *_LID columns)") - LANG = Column(VARCHAR(2), primary_key=True, comment="lang ID of the text value in this row, e.g FR, EN, ES") + TEXT_ID = Column(Integer, primary_key=True, comment="ID of this specific text. These IDs may be recycled in the future and may only be used for a short time period.") + LID = Column(Integer, comment="ID of this locale (the other tables references to this with *_LID columns)") + LANG = Column(VARCHAR(2), comment="lang ID of the text value in this row, e.g FR, EN, ES") TEXT = Column(Text, comment="Actual text stored for that text ID and lang") def __init__(self, TEXT_ID, LANG, TEXT):