File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ This document contains instructions for migrating to various storage versions.
2+
3+ ### 0.1 -> 0.2
4+ v0.2 fixes [ a bug] ( https://github.com/gofiber/fiber/issues/1258 ) in MYSQL, Postgres and Arangodb in which
5+ inserting non-UTF8 characters would trigger a panic due to the values being saved in a TEXT column instead of a
6+ BYTEA/BLOB column. Migration instructions (note you may need to adjust the table names if you have supplied a custom
7+ config to the storage):
8+
9+ ** Postgres**
10+ ``` sql
11+ ALTER TABLE fiber_storage
12+ ALTER COLUMN v TYPE BYTEA USING v::bytea ;
13+ ```
14+
15+ ** MYSQL**
16+ ``` sql
17+ ALTER TABLE fiber_storage MODIFY COLUMN v BLOB;
18+ ```
19+
20+ ** Arangodb**
21+
22+ No migration other then updating the library is necessary.
You can’t perform that action at this time.
0 commit comments