diff options
author | fiaxh <git@mx.ax.lt> | 2017-05-30 22:31:05 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-05-30 22:33:33 +0200 |
commit | 387433ebb9bab442502f812e0364111f37270bcb (patch) | |
tree | 5dba69992da0a402380d7bde27433c750f5be920 /libdino/src/service/database.vala | |
parent | 3a8df2069eba3a5a4174749fc46a6698c1877ec1 (diff) | |
download | dino-387433ebb9bab442502f812e0364111f37270bcb.tar.gz dino-387433ebb9bab442502f812e0364111f37270bcb.zip |
Notifications + typing notifications + message marker settings per conversation
Diffstat (limited to 'libdino/src/service/database.vala')
-rw-r--r-- | libdino/src/service/database.vala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libdino/src/service/database.vala b/libdino/src/service/database.vala index 19ca0b06..ae8d5412 100644 --- a/libdino/src/service/database.vala +++ b/libdino/src/service/database.vala @@ -6,7 +6,7 @@ using Dino.Entities; namespace Dino { public class Database : Qlite.Database { - private const int VERSION = 2; + private const int VERSION = 3; public class AccountTable : Table { public Column<int> id = new Column.Integer("id") { primary_key = true, auto_increment = true }; @@ -86,10 +86,13 @@ public class Database : Qlite.Database { public Column<int> type_ = new Column.Integer("type"); public Column<int> encryption = new Column.Integer("encryption"); public Column<int> read_up_to = new Column.Integer("read_up_to"); + public Column<int> notification = new Column.Integer("notification") { min_version=3 }; + public Column<int> send_typing = new Column.Integer("send_typing") { min_version=3 }; + public Column<int> send_marker = new Column.Integer("send_marker") { min_version=3 }; internal ConversationTable(Database db) { base(db, "conversation"); - init({id, account_id, jid_id, resource, active, last_active, type_, encryption, read_up_to}); + init({id, account_id, jid_id, resource, active, last_active, type_, encryption, read_up_to, notification, send_typing, send_marker}); } } |