1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2024-11-28 02:02:01 +02:00

fixed optional migration condition

note: practically even the previous version should work ok because the json field didn't have previous options anyway and if it was nil the migration will fail
This commit is contained in:
Gani Georgiev 2024-01-05 20:35:09 +02:00
parent d0352aa3f9
commit 28d15e86eb

View File

@ -28,7 +28,7 @@ func init() {
}
options, _ := f.Options.(*schema.JsonOptions)
if options != nil {
if options == nil {
options = &schema.JsonOptions{}
}
options.MaxSize = 2000000 // 2mb