Philipp Hörist pushed to branch retraction at gajim / gajim


Commits:
539b2836 by Philipp Hörist at 2025-04-19T18:06:31+02:00
fix: Fix name and column type

- - - - -


1 changed file:

- gajim/common/storage/archive/models.py


Changes:

=====================================
gajim/common/storage/archive/models.py
=====================================
@@ -601,7 +601,7 @@ class Retraction(MappedAsDataclass, Base, UtilMixin, 
kw_only=True):
     id: Mapped[str] = mapped_column()
     direction: Mapped[int] = mapped_column()
     timestamp: Mapped[datetime.datetime] = mapped_column(EpochTimestampType)
-    removed: Mapped[bool] = mapped_column(default=False)
+    state: Mapped[int] = mapped_column(default=0)
 
     __table_args__ = (
         Index(
@@ -624,8 +624,8 @@ class Retraction(MappedAsDataclass, Base, UtilMixin, 
kw_only=True):
             sqlite_where=fk_occupant_pk.isnot(None),
         ),
         Index(
-            'idx_retraction_removed',
-            'removed',
+            'idx_retraction_state',
+            'state',
         ),
     )
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/539b2836bd7e65a529299883c094c7f0e144366b

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/539b2836bd7e65a529299883c094c7f0e144366b
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to