aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-11-19 09:12:59 +0000
committerWerner Koch <[email protected]>2025-11-19 09:13:57 +0000
commit46f4cb66125ee34e87e592cc02d38daead3427af (patch)
treee8967524dd444e63498bd969265a3318bbeacb8e
parentgpg: New import option "force-update" (diff)
downloadgnupg-46f4cb66125ee34e87e592cc02d38daead3427af.tar.gz
gnupg-46f4cb66125ee34e87e592cc02d38daead3427af.zip
kbx: A minor update of the fingerprint table.
* kbx/backend-sqlite.c (table_definitions) <fingerprint>: Add columnt 'flags'. -- Updates-commit: 0cc7759ed5a3890b4e28563a6b5e97f3aa551530 We are anyway updating this table and thus we can also reserve a column for future use. No need for a a new database version after less than 24 hours and no release for the previous change.
-rw-r--r--kbx/backend-sqlite.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kbx/backend-sqlite.c b/kbx/backend-sqlite.c
index 1ac757330..c8b819bc2 100644
--- a/kbx/backend-sqlite.c
+++ b/kbx/backend-sqlite.c
@@ -143,7 +143,9 @@ static struct
* order number for the keys similar to uidno. */
"subkey INTEGER NOT NULL,"
/* The Unique Blob ID (possibly truncated fingerprint). */
- "ubid BLOB NOT NULL REFERENCES pubkey"
+ "ubid BLOB NOT NULL REFERENCES pubkey,"
+ /* Various bit flags for future extensions. */
+ "flags INTEGER NOT NULL DEFAULT 0"
")", "fpr" },
/* Indices for the fingerprint table. */