use explicit order for insert operations
This prevents a problem from different column orders in database tables. In particular, this occurred with the user_packets table, where the `rank` column moved up in order.
This commit is contained in:
@@ -24,7 +24,11 @@ CREATE TABLE IF NOT EXISTS keys (
|
||||
);
|
||||
|
||||
insertKey:
|
||||
INSERT INTO keys VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
|
||||
INSERT INTO keys (
|
||||
master_key_id, rank, key_id, key_size, key_curve_oid, algorithm, fingerprint,
|
||||
can_certify, can_sign, can_encrypt, can_authenticate,
|
||||
is_revoked, has_secret, is_secure, creation, expiry
|
||||
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
|
||||
|
||||
updateHasSecretByMasterKeyId:
|
||||
UPDATE keys
|
||||
|
||||
Reference in New Issue
Block a user