cakephp - CakeDC Users Plugin - Is there a way to change the user id? -


I am working with the KDCD user plugin (https://github.com/CakeDC/users) When you add a user, it adds them to a database with a very long 'id' field (i.e. 5092b9c5-1734-4d1f-a98b-210b46204441).

I tried to go through the code to remove it, so it is only auto-infinite after the last id, but I do not know where to change.

Does anyone know what line

thanks!

This is likely to be your table structure when you enter your "id" field CHAR (36) If set, KPHHP automatically uses.

Just change that field to int (10) auto-incineration, and return it to "normal". (Although, personally I am a fan of UUIDs).

Just remember - in the context of any field, user_id should also have the same field type.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -