Implement MariaDB 10.11 Grammar #48888
Replies: 4 comments 5 replies
-
This may be something for Laravel 11, where MariaDB gets their own config. (see #48455) It could be extended with a new MariaDB Driver. (In the beginning it can be a copy of the MySQL Grammar and then new methods can be added, or features can be changed which are specific for MariaDB) You could try a PR, since Laravel 10 already supports MariaDB 10.10+ (see https://laravel.com/docs/10.x/database#introduction) |
Beta Was this translation helpful? Give feedback.
-
any version of MariaDB that is 10.10 or higher. I just got it working on a recent project of mine the client was looking to Hire Laravel Developers in Marysville |
Beta Was this translation helpful? Give feedback.
-
I've created a PR for a MariaDB driver: #50146 |
Beta Was this translation helpful? Give feedback.
-
The MariaDB driver will be included in Laravel 11.
MariaDB migrations will use the native UUID type (#50192, 8648a4a). When you switch to the MariaDB driver, you need to convert all existing UUID columns to the new type to prevent breaking changes: Schema::table('your_table', function (Blueprint $table) {
$table->uuid('your_uuid')->change();
});
AFAIU, we can't benefit from these since Laravel only has a general column type |
Beta Was this translation helpful? Give feedback.
-
MariaDB is a popular RDBMS that is traditionally compatible with MySQL. However, since version 10.1 the MariaDB team started to implement some features that may differ or are not present in modern versions of MySQL. Currently, Laravel bundles a generic MySQL schema grammar (https://github.com/laravel/framework/tree/10.x/src/Illuminate/Database/Schema/Grammars) that limits the usage of MariaDB.
MariaDB is an RDBMS that is more relevant in the industry and is a fair competitor of MySQL, and I believe that with time, the differences between both will be more significant.
Beta Was this translation helpful? Give feedback.
All reactions