From a151bafaff89139d58d25c2dd53a5025c8457933 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Mon, 30 Aug 2010 10:36:58 +0000 Subject: [PATCH] Fix database upgrade svn: r15832 --- src/gen/db/upgrade.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gen/db/upgrade.py b/src/gen/db/upgrade.py index 273d6abfd..b166d16c2 100644 --- a/src/gen/db/upgrade.py +++ b/src/gen/db/upgrade.py @@ -38,8 +38,11 @@ def gramps_upgrade_15(self): # Append the new tag field for handle in self.person_map.keys(): person = self.person_map[handle] + new_person = list(person) + new_person.append([]) + new_person = tuple(new_person) with BSDDBTxn(self.env, self.person_map) as txn: - txn.put(str(handle), person.append([])) + txn.put(str(handle), new_person) self.update() # Bump up database version. Separate transaction to save metadata.