Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade example using JSON_EXTRACT #2970

Merged
merged 1 commit into from
Jun 29, 2022
Merged

Upgrade example using JSON_EXTRACT #2970

merged 1 commit into from
Jun 29, 2022

Conversation

erikn69
Copy link
Contributor

@erikn69 erikn69 commented Jun 29, 2022

Closes #2969

Change
'generated_conversions' => DB::raw('custom_properties->"$.generated_conversions")
To
'generated_conversions' => DB::raw('JSON_EXTRACT(custom_properties, "$.generated_conversions")')

Think this could possibly be added to the docs as anyone using a MariaDb database will run into this issue.

JSON_EXTRACT Tested on Mysql, MariaDB

@freekmurze freekmurze merged commit f64d461 into spatie:main Jun 29, 2022
@freekmurze
Copy link
Member

Thanks!

@erikn69 erikn69 deleted the patch-4 branch June 29, 2022 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MariaDb issue when upgrading from v8 to v9
2 participants