Coder Social home page Coder Social logo

Comments (3)

patinthehat avatar patinthehat commented on June 7, 2024

@Gonzalo2683 Could you provide your PHP, Laravel, spatie/laravel-medialibrary, and MariaDB version numbers? I couldn't reproduce this issue using a fresh Laravel 11 project, this package v11.4, and MariaDB 11 (along with the Laravel mariadb driver.)

With MariaDB 11, the uuid column with a uuid type is created without issue:

image

from laravel-medialibrary.

Gonzalo2683 avatar Gonzalo2683 commented on June 7, 2024

Mariadb

MariaDB [db]> select VERSION();
+---------------------------------------------+
| VERSION()                                   |
+---------------------------------------------+
| 10.4.33-MariaDB-1:10.4.33+maria~ubu2004-log |
+---------------------------------------------+
1 row in set (0.000 sec)

Spatie package

composer show spatie/laravel-medialibrary
name     : spatie/laravel-medialibrary
descrip. : Associate files with Eloquent models
keywords : cms, conversion, downloads, images, laravel, laravel-medialibrary, media, spatie
versions : * 11.4.7
released : 2024-04-24, this week
type     : library
license  : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
homepage : https://github.com/spatie/laravel-medialibrary
source   : [git] https://github.com/spatie/laravel-medialibrary.git 85f5f8284f827b8f2b426943e357e3df117ad1f5
dist     : [zip] https://api.github.com/repos/spatie/laravel-medialibrary/zipball/85f5f8284f827b8f2b426943e357e3df117ad1f5 85f5f8284f827b8f2b426943e357e3df117ad1f5
path     : /var/www/html/vendor/spatie/laravel-medialibrary
names    : spatie/laravel-medialibrary

Laravel y others

Laravel Version ............................................................................ 11.5.0
PHP Version ................................................................................. 8.2.18
Composer Version ........................................................................ 2.7.4

from laravel-medialibrary.

patinthehat avatar patinthehat commented on June 7, 2024

@Gonzalo2683 The issue appears to be with MariaDB versions below 10.7. According to the article linked below, 10.7 was when uuid data types were introduced - I would suggest using the mysql Laravel driver if you're unable to upgrade.

Since this is not an issue with the package, I'm going to close the issue. Thanks for the quick follow-up! 👍

Reference: https://mariadb.org/10-7-preview-feature-uuid-data-type/

from laravel-medialibrary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.