aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/database.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-08-16 11:44:42 +0200
committerfiaxh <git@mx.ax.lt>2017-08-17 01:26:03 +0200
commitfb36ea055301b6db513a31acde30f315e2c0fd68 (patch)
treee9bfeecc12a3824e3b9a86abbed44856ef6dd1e0 /libdino/src/service/database.vala
parent30818b3965aef36f161147881967006d6e9376a6 (diff)
downloaddino-fb36ea055301b6db513a31acde30f315e2c0fd68.tar.gz
dino-fb36ea055301b6db513a31acde30f315e2c0fd68.zip
Message Archive Management
Diffstat (limited to 'libdino/src/service/database.vala')
-rw-r--r--libdino/src/service/database.vala5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdino/src/service/database.vala b/libdino/src/service/database.vala
index b414b943..5a7eb46d 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 = 3;
+ private const int VERSION = 4;
public class AccountTable : Table {
public Column<int> id = new Column.Integer("id") { primary_key = true, auto_increment = true };
@@ -16,10 +16,11 @@ public class Database : Qlite.Database {
public Column<string> alias = new Column.Text("alias");
public Column<bool> enabled = new Column.BoolInt("enabled");
public Column<string> roster_version = new Column.Text("roster_version") { min_version=2 };
+ public Column<long> mam_earliest_synced = new Column.Long("mam_earliest_synced") { min_version=4 };
internal AccountTable(Database db) {
base(db, "account");
- init({id, bare_jid, resourcepart, password, alias, enabled, roster_version});
+ init({id, bare_jid, resourcepart, password, alias, enabled, roster_version, mam_earliest_synced});
}
}