Skip to content

Commit fe38474

Browse files
committed
fix: wrong encoding on a migration
1 parent 1f4043b commit fe38474

File tree

2 files changed

+2
-2
lines changed
  • internal/storage/bucket/migrations

2 files changed

+2
-2
lines changed

internal/storage/bucket/migrations/11-make-stateless/up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ begin
461461
case
462462
when previousHash is null
463463
then marshalledAsJSON::bytea
464-
else '"' || encode(previousHash::bytea, 'base64')::bytea || E'"\n' || convert_to(marshalledAsJSON, 'LATIN1')::bytea
464+
else '"' || encode(previousHash::bytea, 'base64')::bytea || E'"\n' || convert_to(marshalledAsJSON, 'UTF-8')::bytea
465465
end || E'\n', 'sha256'::text
466466
)
467467
);

internal/storage/bucket/migrations/23-logs-fill-memento/up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ do $$
2020
limit _batch_size
2121
)
2222
update logs
23-
set memento = convert_to(data::varchar, 'LATIN1')::bytea
23+
set memento = convert_to(data::varchar, 'UTF-8')::bytea
2424
from _outdated_logs
2525
where logs.seq in (_outdated_logs.seq);
2626

0 commit comments

Comments
 (0)