Skip to content

Commit ab88d43

Browse files
authored
Add migrate.md
1 parent 6b31862 commit ab88d43

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

MIGRATE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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.

0 commit comments

Comments
 (0)