mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
g10: Fix a column's type in TOFU DB.
* g10/tofu.c (initdb): Change policy from a boolean to an integer. -- Signed-off-by: Neal H. Walfield <neal@g10code.com> Reported-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net> Note: sqlite ignores type information so this change has no real impact.
This commit is contained in:
parent
cbbf0a7a8d
commit
78eda335fd
@ -606,7 +606,7 @@ initdb (sqlite3 *db)
|
||||
"create table bindings\n"
|
||||
" (oid INTEGER PRIMARY KEY AUTOINCREMENT,\n"
|
||||
" fingerprint TEXT, email TEXT, user_id TEXT, time INTEGER,\n"
|
||||
" policy BOOLEAN CHECK (policy in (%d, %d, %d, %d, %d)),\n"
|
||||
" policy INTEGER CHECK (policy in (%d, %d, %d, %d, %d)),\n"
|
||||
" conflict STRING,\n"
|
||||
" unique (fingerprint, email));\n"
|
||||
"create index bindings_fingerprint_email\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user