Home GnuPG
Diffusion GnuPG 0cc7759ed5a3

kbx: Fix schema of the fingerprint table.

Description

kbx: Fix schema of the fingerprint table.

* kbx/backend-sqlite.c (DATABASE_VERSION): Set to 2.
(DATABASE_VERSION_MAX): New.
(table_definitions): Rename field special to name and adjust users.
  <table fingerprint>: Drop the PRIMARY KEY from the fpr column.
(migrate_from_v1_to_v2): New.
(create_or_open_database): Detect a bad database version and try to
migrate it.

Details

Provenance
wernerAuthored on Nov 18 2025, 5:28 PM
Parents
rGbe9b1404e661: common: New function replace_substr.
Branches
Unknown
Tags
Unknown
Tasks
T7892: keyboxd: subkey listing issue with ADSKs