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:
parent
d0352aa3f9
commit
28d15e86eb
@ -28,7 +28,7 @@ func init() {
|
||||
}
|
||||
|
||||
options, _ := f.Options.(*schema.JsonOptions)
|
||||
if options != nil {
|
||||
if options == nil {
|
||||
options = &schema.JsonOptions{}
|
||||
}
|
||||
options.MaxSize = 2000000 // 2mb
|
||||
|
Loading…
Reference in New Issue
Block a user