libervia-backend/sat/memory
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
..
__init__.py core, setup: huge cleaning: 2018-04-02 19:44:50 +02:00
cache.py code style reformatting using black 2018-06-27 20:14:46 +02:00
crypto.py code style reformatting using black 2018-06-27 20:14:46 +02:00
disco.py core (memory/disco): normalise booleans in extensions 2018-12-01 14:40:32 +01:00
encryption.py core (memore/encryption): new methods and checks: 2018-08-11 18:24:55 +02:00
memory.py core: minor style/typos fixes 2018-12-01 10:04:17 +01:00
params.py core (xmpp): server certificate validation: 2018-11-10 10:16:35 +01:00
persistent.py core (memory/persistent): better default value handling in LazyPersistentBinaryDict (don't jump to debugger in debug mode if value is not found) 2018-07-29 18:44:49 +02:00
sqlite.py core (memory/sqlite): changed history constraint 2018-12-09 14:07:26 +01:00