don't use * in SELECT on keys table! column order might change during migrations
This commit is contained in:
parent
5785a713cb
commit
ecf2c4500f
|
@ -42,7 +42,7 @@ UPDATE keys
|
||||||
|
|
||||||
validKeysView:
|
validKeysView:
|
||||||
CREATE VIEW validMasterKeys AS
|
CREATE VIEW validMasterKeys AS
|
||||||
SELECT *
|
SELECT master_key_id, rank, key_id, key_size, key_curve_oid, fingerprint, can_certify, can_sign, can_encrypt, can_authenticate, is_revoked, has_secret, is_secure, creation, expiry
|
||||||
FROM keys
|
FROM keys
|
||||||
WHERE rank = 0 AND is_revoked = 0 AND is_secure = 1 AND (expiry IS NULL OR expiry >= strftime('%s', 'now'));
|
WHERE rank = 0 AND is_revoked = 0 AND is_secure = 1 AND (expiry IS NULL OR expiry >= strftime('%s', 'now'));
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ SELECT master_key_id
|
||||||
WHERE key_id = ?;
|
WHERE key_id = ?;
|
||||||
|
|
||||||
selectSubkeysByMasterKeyId:
|
selectSubkeysByMasterKeyId:
|
||||||
SELECT *
|
SELECT master_key_id, rank, key_id, key_size, key_curve_oid, fingerprint, can_certify, can_sign, can_encrypt, can_authenticate, is_revoked, has_secret, is_secure, creation, expiry
|
||||||
FROM keys
|
FROM keys
|
||||||
WHERE master_key_id = ?
|
WHERE master_key_id = ?
|
||||||
ORDER BY rank ASC;
|
ORDER BY rank ASC;
|
||||||
|
|
Loading…
Reference in a new issue