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
1 changed files with 1 additions and 1 deletions

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