Skip to content

[12.x]: Use char(36) for uuid type on MariaDB < 10.7.0#55197

Merged
taylorotwell merged 1 commit into
laravel:12.xfrom
boedah:bugfix/mariadb-version-check-for-uuid-type
Apr 3, 2025
Merged

[12.x]: Use char(36) for uuid type on MariaDB < 10.7.0#55197
taylorotwell merged 1 commit into
laravel:12.xfrom
boedah:bugfix/mariadb-version-check-for-uuid-type

Conversation

@boedah

@boedah boedah commented Mar 28, 2025

Copy link
Copy Markdown
Contributor

Using the new Laravel mariadb driver results in an error General error: 4161 Unknown data type: 'uuid' on MariaDB < 10.6.x (which is a still supported LTS version till July 2026: https://mariadb.com/kb/en/changes-and-improvements-in-mariadb-10-6/)

uuid column types were added in 10.7.0: https://mariadb.com/kb/en/mariadb-1070-release-notes/

This PR adds a version check to use char(36) on MariaDB < 10.7.0

@github-actions

Copy link
Copy Markdown

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@boedah

boedah commented Mar 28, 2025

Copy link
Copy Markdown
Contributor Author

@taylorotwell I fixed the tests and created a second PR.

Tests run locally, however on GitHub one container in the matrix tests could not start up.

Is there a way to restart this run? Or how to proceed?
Thanks!

@rodrigopedra

Copy link
Copy Markdown
Contributor

@boedah I don't think they review PRs marked as draft, you can mark it as ready and someone will restart the test workers

@boedah boedah marked this pull request as ready for review April 3, 2025 11:27
@taylorotwell taylorotwell merged commit 8158e29 into laravel:12.x Apr 3, 2025
@boedah boedah deleted the bugfix/mariadb-version-check-for-uuid-type branch April 3, 2025 15:08
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.

3 participants