Upgrade from 8 to 9 failed #3278
Unanswered
maha-oueghlani
asked this question in
Q&A
Replies: 2 comments
-
can anyone help me please !!! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I had the same problem. It can be fixed by changing line 21 to include the collation: ->orWhereRaw("JSON_TYPE(generated_conversions) = 'NULL' COLLATE utf8_unicode_ci"); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I upgraded my laravel app from 8 to9, now I must to upgrade
spatie/laravel-medialibrary
also, so in order to add a migration necessary, I run this :But It was failed with this error :
SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8_general_ci,COERCIBLE) and (utf8_unicode_ci,COERCIBLE) for operation '=' (SQL: update `media` set `generated_conversions` = JSON_EXTRACT(custom_properties, '$.generated_conversions'), `media`.`updated_at` = 2023-06-01 14:13:24 where (`generated_conversions` is null or `generated_conversions` = or JSON_TYPE(generated_conversions) = 'NULL') and JSON_LENGTH(custom_properties) > 0)
the collation of my DB is
utf8_unicode_ci
that's why I tried to change the collation ofgenerated_conversions
column and also I changedcustom_properties
column to json because it wastext
, but it's not working.Beta Was this translation helpful? Give feedback.
All reactions