Skip to content

[Bug] Fails to work on string ids such as UUID #28

@doncadavona

Description

@doncadavona

Bug report

What I did

Implemented Revice on My UserCrudController

What I expected to happen

I should be able to edit a user entry.

What happened

When I save the user entry, this error occurs:

Illuminate\Database\QueryException

SQLSTATE[01000]: Warning: 1265 Data truncated for column 'user_id' at row 1

Image

What I've already tried to fix it

I have only gone through reading issues in https://github.com/VentureCraft/revisionable, which seem to be inactive.

This particular issue discusses the issue, but is unresponded to by the developers:

VentureCraft/revisionable#191

I have seen that https://github.com/joshbrw/revisionable-uuid resolves the issue.

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

### PHP VERSION:
8.3.16

### PHP EXTENSIONS:
Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, igbinary, imagick, exif, mysqli, pdo_mysql, pdo_sqlite, Phar, posix, readline, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, redis, Zend OPcache

### LARAVEL VERSION:
10.48.28.0

### BACKPACK PACKAGE VERSIONS:
backpack/activity-log: 2.0.6
backpack/backupmanager: v5.0.5
backpack/basset: 1.3.6
backpack/crud: 6.7.51
backpack/generators: v4.0.7
backpack/logmanager: v5.0.2
backpack/medialibrary-uploaders: 1.2.1
backpack/permissionmanager: 7.2.1
backpack/pro: 2.2.32
backpack/revise-operation: 2.0.0
backpack/theme-tabler: 1.2.17

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions