Skip to content

Commit

Permalink
Fixes #13633
Browse files Browse the repository at this point in the history
  • Loading branch information
dsblank committed Feb 14, 2025
1 parent 6a4017c commit 36d1377
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions gramps/gen/db/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ def gramps_upgrade_21(self):

self.set_serializer("json")
self._set_metadata("version", 21, use_txn=False)
# Set the blob metadata "version" so that old version of gramps
# will know what version it is
self.set_serializer("blob")
self._set_metadata("version", 21, use_txn=False)
self.set_serializer("json")
self._txn_commit()
# Bump up database version. Separate transaction to save metadata.

Expand Down
3 changes: 2 additions & 1 deletion gramps/plugins/db/dbapi/dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ def _create_schema(self):
"CREATE TABLE metadata "
"("
"setting VARCHAR(50) PRIMARY KEY NOT NULL, "
"json_data TEXT"
"json_data TEXT, "
"value BLOB"
")"
)
self.dbapi.execute(
Expand Down

0 comments on commit 36d1377

Please sign in to comment.