I'm sorry that i can't help you with an issue, but if you have got a moment could you , please clarify the advantage of using UUID instead of ID? Thank you in advance.
On 15 май, 22:42, tcornett <tcorn...@gmail.com> wrote: > I am trying to migrate data from a schema that used auto_increment > integers in a MySQL database to a newly built CakePHP framework > application which will use UUIDs for the primary keys. I am having > issues updating the previous records and replacing the old ids ('1', > '2', '3', etc.) with generated UUIDs. > > As I am relatively new to CakePHP (but not PHP itself), I may just > have things out of order. All current attempts to update the primary > key result in insertion of a new blank record with a UUID as the > primary key. > > Can anyone provide guidance and/or snippets to iterate through the > records and replace the old id in the primary key with a UUID? > > NOTE: The id field is already set to CHAR(36) and listed as PRIMARY > KEY --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---