1
0
Fork 0
mirror of https://github.com/mautrix/signal.git synced 2026-05-14 21:26:54 -04:00
mautrix-signal/msgconv/signalfmt
Tulir Asokan 35db0abe8b
Refactor database tables and query wrappers (#402)
* Change most columns to `NOT NULL`, including primary keys
  (because SQLite).
* Change columns only storing signal user IDs (portal receiver, message
  sender, user uuid) to use the `uuid` type instead of `TEXT`.
* Drop chat ID from message table primary key.
* Add part index to message table to replace timestamp hack for storing
  multiple parts of the same message.
* Change query wrappers to use new QureyHelper struct in dbutil, and 
  pass contexts and errors everywhere.

As a part of changing the portal receiver from phone number to uuid,
old portals whose receiver isn't logged in anymore may be discarded.
The discarded portals will be stored in the lost_portals table for
cleanup or recovery.
2023-12-31 16:12:58 +02:00
..
convert.go Refactor database tables and query wrappers (#402) 2023-12-31 16:12:58 +02:00
convert_test.go Refactor database tables and query wrappers (#402) 2023-12-31 16:12:58 +02:00
html.go Add support for Signal -> Matrix formatting 2023-12-17 22:50:09 +02:00
tags.go Refactor database tables and query wrappers (#402) 2023-12-31 16:12:58 +02:00
tree.go Add support for Matrix -> Signal formatting 2023-12-21 16:57:21 +02:00