summaryrefslogtreecommitdiff
path: root/internal/storage
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2024-08-02 06:36:20 +1000
committerGitHub <noreply@github.com>2024-08-02 06:36:20 +1000
commitb3dda1060880f9050807eb89c812902ff70c0bf5 (patch)
treea7dd63412d6acddb832e49336da553c140a85aba /internal/storage
parent6778acdc8e065df001387fee1e93b0dbb03046eb (diff)
fix(storage): change encryption key fails (#7613)
This fixes an issue where changing an encryption key for storage would fail. Fixes #7611 Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/storage')
-rw-r--r--internal/storage/sql_provider_queries.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/storage/sql_provider_queries.go b/internal/storage/sql_provider_queries.go
index 3577ca328..f6a415f8b 100644
--- a/internal/storage/sql_provider_queries.go
+++ b/internal/storage/sql_provider_queries.go
@@ -309,7 +309,8 @@ const (
queryFmtUpdateEncryptionEncryptedData = `
UPDATE %s
- SET value = ?`
+ SET value = ?
+ WHERE id = ?;`
)
const (