diff options
| author | fiaxh <git@lightrise.org> | 2026-03-25 19:19:29 +0100 |
|---|---|---|
| committer | fiaxh <git@lightrise.org> | 2026-03-25 19:20:26 +0100 |
| commit | 0b92ee2a113ca8da2d3a4d4b06056f291738b5fe (patch) | |
| tree | e1279162ba45c66397d0ef0b9f3ad4ffda055c50 /libdino/src/service/database.vala | |
| parent | cf352dbf57add6e038fc919172bb5d32fb5f775f (diff) | |
Fix wrongly using message ids for MUC corrections; store original message db ids
Diffstat (limited to 'libdino/src/service/database.vala')
| -rw-r--r-- | libdino/src/service/database.vala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libdino/src/service/database.vala b/libdino/src/service/database.vala index 58ff3b14..54f5ab42 100644 --- a/libdino/src/service/database.vala +++ b/libdino/src/service/database.vala @@ -7,7 +7,7 @@ using Dino.Entities; namespace Dino { public class Database : Qlite.Database { - private const int VERSION = 30; + private const int VERSION = 31; public class AccountTable : Table { public Column<int> id = new Column.Integer("id") { primary_key = true, auto_increment = true }; @@ -134,10 +134,11 @@ public class Database : Qlite.Database { public Column<int> id = new Column.Integer("id") { primary_key = true, auto_increment = true }; public Column<int> message_id = new Column.Integer("message_id") { unique=true }; public Column<string> to_stanza_id = new Column.Text("to_stanza_id"); + public Column<int> to_message_db_id = new Column.Integer("to_message_db_id") { min_version=31 }; internal MessageCorrectionTable(Database db) { base(db, "message_correction"); - init({id, message_id, to_stanza_id}); + init({id, message_id, to_stanza_id, to_message_db_id}); index("message_correction_to_stanza_id_idx", {to_stanza_id}); } } |
