Skip to content

[11.x] Add MariaDB driver #50146

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

Merged
merged 1 commit into from
Feb 19, 2024
Merged

Conversation

staudenmeir
Copy link
Contributor

@staudenmeir staudenmeir commented Feb 19, 2024

The more MariaDB diverges from MySQL, the more tedious and hacky it gets to support both DBMS with a single driver.
Now that Laravel 11 provides a dedicated database config for MariaDB (#48455), it makes sense to also have a dedicated driver.

Upgrade Guide

The PR is not a breaking change and you can still use MariaDB with the MySQL driver. The ultimate goal, of course, is to remove all MariaDB-specific code from MySQL classes (grammars etc.), but I would only do that in Laravel 12. This gives MariaDB users a year to adjust their config and test the driver. They should switch to the new driver to benefit from MariaDB-specific features, but it doesn't break their application if they miss this change. Ideally, @laravel-shift can recommend it.

TODO

Plans

#48888 has already collected MariaDB-specific features/improvements we can implement. There are also a few older tickets about differences between MySQL and MariaDB we can revisit.

@taylorotwell taylorotwell merged commit 61db497 into laravel:master Feb 19, 2024
@taylorotwell
Copy link
Member

Thanks 👍

@GrahamCampbell
Copy link
Member

FYI, I'll re-target my PR and include the changes both for MySQL and MariaDB.

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.

4 participants