[8.x] Disable Column Statistics for php artisan schema:dump
on MariaDB
#43027
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
php artisan schema:dump
command fails on v10.x MariaDB. This is a resubmission of the fix by @domainregistrar in #40832. (Feel free to merge that one instead to give him credit.)The previous PR was closed as Taylor was awaiting feedback to confirm the fix. I just ran into this issue myself. The proposed fix solves it and was verified by a few others before me:
@taylorotwell can confirm that this problem exists.
EDIT: Using Laravel 9.x but should also happen in 8.x
Originally posted by @Jubeki in #40832 (comment)
Can confirm this fix works for me 👍🏼
I'm using Laravel version: 8.83.1 and Sail with
image: 'mariadb:10'
mysqldump version: Ver 10.19 Distrib 10.6.5-MariaDB, for debian-linux-gnu (x86_64)
Before applying this fix:
After applying this fix:
Originally posted by @22Nick22 in #40832 (comment)
Confirming: just got snagged by this myself (fresh Laravel 9 install using MariaDB via Sail)
Making the changes in this PR got it to work
Originally posted by @benmag in #40832 (comment)