Comments (3)
@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:
from laravel-medialibrary.
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.
@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)
- Media collections are lazy loaded with `preventLazyLoading()` enabled HOT 2
- addMediaFromDisk Method not defined when used in Queue Job
- When regenerating responsive images get wiped out.
- Broken link in UPGRADING,md, no instructions available for how to update conversions to new syntax. HOT 2
- Upgrade to 11: Custom optimizer ignored HOT 4
- Publishing the views is not working or not documented HOT 3
- php 8.3.4 + laravel-medialibrary 11.4.5: opcache+jit error: Only arrays and Traversables can be unpacked HOT 2
- Intervention\Image\Exception\NotReadableException: Unsupported image type application/x-empty. HOT 2
- Error when using withManipulations in combination with enumerations HOT 2
- Imagick driver works super slow with v11 HOT 3
- Changing file_name doesn't sync file on disk HOT 1
- Multiple Calls to registerMediaCollections Result in Duplicate Entries in mediaCollections Array HOT 1
- Too many connections Issue in Laravel Vapor when regenerating thumbnails
- Probably copying from MediaCollection to singleFile MediaCollection works weird HOT 2
- Herd/Valet SSL issue with addMediaFromUrl HOT 3
- Missing the Fit::FillMax HOT 4
- issue with singlefile() HOT 1
- getFirstMedia - not showing responsive images
- Custom Property issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-medialibrary.