The uuid is not generated with the HasUuids trait when extending the roles and permissions base class #2620
Replies: 1 comment 1 reply
-
but when creating a new role or permissions record I get a sql error 1364 Field 'id' doesn't have a default value.
What's your code for creating the record? Including imported classes.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ginogalarza
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I want to use uuid for the primary keys of the roles and permissions models, I followed the steps in the documentation to use these, with the difference that I keep the name id as the primary key. I configured everything as indicated, but when creating a new role or permissions record I get a sql error
1364 Field 'id' doesn't have a default value
. Thanks for the help.Configuration of my models:
Beta Was this translation helpful? Give feedback.
All reactions