[shotwell] Fix upgrading from Shotwell 0.7.2
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Fix upgrading from Shotwell 0.7.2
- Date: Tue, 12 Dec 2017 19:50:25 +0000 (UTC)
commit 7f932b0f40611cbc76b925751769e6432d396ec9
Author: Jens Georg <mail jensge org>
Date: Tue Dec 12 20:33:31 2017 +0100
Fix upgrading from Shotwell 0.7.2
There was a check missing for the existence of VideoTable
https://bugzilla.gnome.org/show_bug.cgi?id=790469
src/db/Db.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/db/Db.vala b/src/db/Db.vala
index e4f83bf..872bf86 100644
--- a/src/db/Db.vala
+++ b/src/db/Db.vala
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]