Field 'generated_conversions' doesn't have a default value #2675
Unanswered
LarryBarker
asked this question in
Q&A
Replies: 1 comment
-
if (! Schema::hasColumn('media', 'generated_conversions')) {
Schema::table('media', function (Blueprint $table) {
$table->json('generated_conversions')->after('custom_properties')->nullable()->default('[]');
});
} |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
We had been using v7 of the package due to environment constraints. We recently upgraded our environment to PHP 8 and have decided to upgrade to v9 of the package.
I followed the upgrade guide as provided, and have been able to get the package working locally. However, on our QA environment, we are having issues uploading media.
When we upload media, we see the error:
Field 'generated_conversions' doesn't have a default value
I'm trying to understand why the package would work for me locally, but not in our QA environment. Here is the migration we used to add the
generated_conversions
column:Here is a screen shot of the

media
table structure for my local environment:Here is a screen shot of the

media
table structure for our QA environment:We also noticed in the stack trace, the
generated_conversions
column is not listed in the insert (but the value is):Any feedback is greatly appreciated. Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions