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

[8.x] Fix for #34592 artisan schema:dump error #36698

Merged
merged 2 commits into from
Mar 22, 2021

Conversation

matt-hullo
Copy link
Contributor

Fixes #34592

In Alpine Linux the mysql-client package (containing mysqldump and mysql CLI) is an alias for the MariaDB version of the CLI tools. The MariaDB version of mysqldump doesn't support the set-gtid-purged parameter, so the command fails in cases where the MariaDB CLI tool is being used to access to MySQL database connection. The current "isMaria" function only supports cases where the connection is to a MariaDB database.

This fix uses the same approach used for a similar issue with the column-statistics parameter: if there is an error related to the parameter it is removed and the command retried.

@driesvints driesvints changed the title Fix for #34592 artisan schema:dump error [8.x] Fix for #34592 artisan schema:dump error Mar 22, 2021
@taylorotwell taylorotwell merged commit baa48bf into laravel:8.x Mar 22, 2021
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.

artisan schema:dump error
2 participants