Modify Locale table

This commit is contained in:
Thomas Rubini 2023-03-11 17:06:21 +01:00
parent 86bcfefaac
commit 5f84794e24
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -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):