P is for Practical | |
PerlMonks |
Re: Update Primary Key with DBIx::Classby talexb (Chancellor) |
on Sep 18, 2019 at 21:23 UTC ( [id://11106355]=note: print w/replies, xml ) | Need Help?? |
It may not be possible to change the value of a record's primary key. Perhaps what you can do instead is to create a new record from the old record, but store it with a new primary key -- then delete the record with the old primary key. That will work out to the result it sounds like you are looking for.
In Section
Seekers of Perl Wisdom
|
|