guillaumebriday / laravel-blog

Laravel 11.0 blog application with Hotwire, Horizon, Telescope, Sanctum, Breeze and Pusher
https://laravel-blog.guillaumebriday.fr
MIT License
1.75k stars 572 forks source link

Migration error (2022_04_30_011124_add_generated_conversions_to_media_table) in MySQL #131

Closed gludovatza closed 2 weeks ago

gludovatza commented 1 year ago

https://github.com/guillaumebriday/laravel-blog/blob/aebc310059ea0301093b491a690eed092899dc7b/database/migrations/2022_04_30_011124_add_generated_conversions_to_media_table.php#L32

The correct code is: 'generated_conversions' => DB::raw("JSON_EXTRACT(custom_properties, '$.generated_conversions')"), via https://github.com/spatie/laravel-medialibrary/blob/main/UPGRADING.md

guillaumebriday commented 1 year ago

You're right! 🙏

But I still got an error, any idea why?

Screenshot 2023-08-22 at 01 15 15