[shotwell/shotwell-0.26] Fix type of primary_source_id table on upgrade
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/shotwell-0.26] Fix type of primary_source_id table on upgrade
- Date: Tue, 12 Dec 2017 19:52:29 +0000 (UTC)
commit d7452f57fc3d3ab182132d5e694c9224099ff2c3
Author: Jens Georg <mail jensge org>
Date: Tue Dec 12 20:46:54 2017 +0100
Fix type of primary_source_id table on upgrade
This is TEXT now, not INTEGER
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 872bf86..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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]