diff options
author | bobufa <bobufa@users.noreply.github.com> | 2018-08-13 23:48:15 +0200 |
---|---|---|
committer | bobufa <bobufa@users.noreply.github.com> | 2018-08-13 23:48:15 +0200 |
commit | f5547076d2397cec5c9d7374bd161f93327488c4 (patch) | |
tree | 1ae893d804c31f3c51694e5f67aa02732ba1a066 /libdino/src/service/database.vala | |
parent | 1d9ce7f471c2aa3a70a9b0255ca39c0ec7a367e2 (diff) | |
download | dino-f5547076d2397cec5c9d7374bd161f93327488c4.tar.gz dino-f5547076d2397cec5c9d7374bd161f93327488c4.zip |
rename content db table -> content_item
Diffstat (limited to 'libdino/src/service/database.vala')
-rw-r--r-- | libdino/src/service/database.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdino/src/service/database.vala b/libdino/src/service/database.vala index 8475cc1b..8a470d12 100644 --- a/libdino/src/service/database.vala +++ b/libdino/src/service/database.vala @@ -43,7 +43,7 @@ public class Database : Qlite.Database { public Column<int> foreign_id = new Column.Integer("foreign_id") { not_null = true }; internal ContentTable(Database db) { - base(db, "contentx"); + base(db, "content_item"); init({id, conversation_id, time, local_time, content_type, foreign_id}); unique({content_type, foreign_id}, "IGNORE"); } @@ -228,7 +228,7 @@ public class Database : Qlite.Database { message.fts_rebuild(); } else if (oldVersion < 8) { exec(""" - insert into contentx (conversation_id, time, local_time, content_type, foreign_id) + insert into content_item (conversation_id, time, local_time, content_type, foreign_id) select conversation.id, message.time, message.local_time, 1, message.id from message join conversation on message.account_id=conversation.account_id and |