summaryrefslogtreecommitdiff
path: root/src/db/Db.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 14:35:32 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 14:35:32 +0200
commite230b6f78546827521107be23797048482c8b193 (patch)
tree948c1e77382c484819ea399bba4edcdc19cc6bf0 /src/db/Db.vala
parent211da5fc3048ca2b6ccee2166b0aaaade55cb84f (diff)
parent49120f48474fc8fdc2448c75d961bc238213cfac (diff)
Update upstream source from tag 'upstream/0.28.2'
Update to upstream version '0.28.2' with Debian dir 811236a8e9a1308bf427065dcb6270419ff4f965
Diffstat (limited to 'src/db/Db.vala')
-rw-r--r--src/db/Db.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/Db.vala b/src/db/Db.vala
index e4f83bf..3eca8ce 100644
--- a/src/db/Db.vala
+++ b/src/db/Db.vala
@@ -207,7 +207,7 @@ private VerifyResult upgrade_database(int input_version) {
if (!DatabaseTable.has_column("EventTable", "primary_source_id")) {
message("upgrade_database: adding primary_source_id column to EventTable");
- if (!DatabaseTable.add_column("EventTable", "primary_source_id", "INTEGER DEFAULT 0"))
+ if (!DatabaseTable.add_column("EventTable", "primary_source_id", "TEXT"))
return VerifyResult.UPGRADE_ERROR;
}
@@ -304,7 +304,7 @@ private VerifyResult upgrade_database(int input_version) {
if (!DatabaseTable.add_column("PhotoTable", "comment", "TEXT"))
return VerifyResult.UPGRADE_ERROR;
}
- if (!DatabaseTable.has_column("VideoTable", "comment")) {
+ if (DatabaseTable.has_table("VideoTable") & !DatabaseTable.has_column("VideoTable", "comment")) {
message("upgrade_database: adding comment column to VideoTable");
if (!DatabaseTable.add_column("VideoTable", "comment", "TEXT"))
return VerifyResult.UPGRADE_ERROR;