I’m working with the CakeDC Users Plugin (https://github.com/CakeDC/users). When you add a user, it adds them to the database with a very long ‘id’ field (ie. 5092b9c5-1734-4d1f-a98b-210b46204441).
I tried going through the code to remove that, so it just auto-increments after the last id, but I can’t find where to change.
Does anyone know what line(s) need to be changed?
Thanks!
This is likely just your table structure. CakePHP automatically uses UUIDs when you set your “id” field to CHAR(36).
Just change that field to int(10) auto-increment, and it should be back to “normal”. (though, personally I’m a fan of UUIDs).
Just remember – any fields that reference user_id must also have the same field type.