[8.x] Disable Column Statistics for php artisan schema:dump on MariaDB#43027
Merged
taylorotwell merged 1 commit intoJul 1, 2022
Merged
Conversation
Command fails on v10.x MariaDB.
|
@BrandonSurowiec I know this is closed already, but I ran into another issues because of this fix, please see #43530. I have been trying hard to replicate this issue, but so far I haven't been able to reproduce the issue, but I'm getting the warning instead - both with Laravel 8 and 9, with and without Sail, always with MariaDB installed. Could you try adding this line
to Edit: I'm currently running a manually-configured MariaDB container, and I'm getting this output myself with the addition above: |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:dumpcommand 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)