libervia-backend/sat
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Goffi c2d7c3e69e core (memory/sqlite): changed history constraint
/!\ Database schema change /!\
History was using a unique constraint on `profile_id, timestamp, source, dest, source_res, dest_res`, which can cause trouble because several messages send quickly by the same person can have a common timestamp (specially with delayed messages where precision is second), resulting in message loss.
The new constraint use `profile_id, stanza_id, source, dest` where `stanza_id` is XEP-0359 stanza_id, so it's unique by definition, and no message should be lost anymore.
Because sqlite doesn't support altering table with a constraint change, we have to create new tables and copy old data to new one, which can be pretty long.
Sqlite update mechanism with "specifics" has been fixed when several updates are applied (e.g. moving from v5 to v7) and a specific is in the workflow.
2018-12-09 14:07:26 +01:00
..
bridge core: minor style/typos fixes 2018-12-01 10:04:17 +01:00
core plugin XEP-0045: MAM implementation for MUC 2018-12-07 19:13:28 +01:00
memory core (memory/sqlite): changed history constraint 2018-12-09 14:07:26 +01:00
plugins plugin XEP-0045: MAM implementation for MUC 2018-12-07 19:13:28 +01:00
stdui code style reformatting using black 2018-06-27 20:14:46 +02:00
test code style reformatting using black 2018-06-27 20:14:46 +02:00
tools tools (common/data_format): use "default" in json.dumps in serialise (useful notably to serialise jid.JID) 2018-12-01 14:34:55 +01:00
__init__.py core: minor version fix for pyjamas workaround 2018-08-31 15:25:25 +02:00
VERSION core: we are in dev version again 2018-08-04 13:03:44 +02:00