Skip to content

Commit

Permalink
Correct orm model in relation to hash size
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Jan 20, 2025
1 parent 7ef2516 commit e4e5c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/globaleaks/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ class _InternalTip(Model):
status = Column(UnicodeText(36))
substatus = Column(UnicodeText(36))
receipt_change_needed = Column(Boolean, default=False, nullable=False)
receipt_hash = Column(UnicodeText(44), nullable=False)
receipt_hash = Column(UnicodeText(64), nullable=False)
crypto_prv_key = Column(UnicodeText(84), default='', nullable=False)
crypto_pub_key = Column(UnicodeText(56), default='', nullable=False)
crypto_tip_pub_key = Column(UnicodeText(56), default='', nullable=False)
Expand Down Expand Up @@ -925,7 +925,7 @@ class _User(Model):
creation_date = Column(DateTime, default=datetime_now, nullable=False)
username = Column(UnicodeText, default='', nullable=False)
salt = Column(UnicodeText(24), default='', nullable=False)
hash = Column(UnicodeText(44), default='', nullable=False)
hash = Column(UnicodeText(64), default='', nullable=False)
name = Column(UnicodeText, default='', nullable=False)
description = Column(JSON, default=dict, nullable=False)
public_name = Column(UnicodeText, default='', nullable=False)
Expand Down

0 comments on commit e4e5c89

Please sign in to comment.