http://qs321.pair.com?node_id=11106355


in reply to Update Primary Key with DBIx::Class

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.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

  • Comment on Re: Update Primary Key with DBIx::Class