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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---