[Catalyst] Newbie with the tutorial and Postgresql
Tom Lanyon
tom at netspot.com.au
Wed May 30 08:24:36 GMT 2007
On 30/05/2007, at 3:39 PM, Marcello Romani wrote:
> Do you also have
>
> __PACKAGE__->set_primary_key('id');
>
> ?
You need:
- an add_column() or add_columns() line for your 'id' column
- the above set_primary_key('id') line
- the 'id' column in your database table must have its default
value set to the nextval from a sequence in the database
Hope this helps.
--
Tom Lanyon
Systems Administrator
NetSpot Pty Ltd
More information about the Catalyst
mailing list