"Juan Camacho" <[EMAIL PROTECTED]> writes:

> On a somewhat separate issue, do you know how I could get the
> auto_increment added for the primary key in the SQL file? I just
> noticed it wasn't there.

Did you include ( is_auto_increment => 1 ) in the column definition?

  __PACKAGE__->add_columns(
      uid => {
        data_type         => 'int',
        is_auto_increment => 1,
      },
  );

The add_columns method, including the is_auto_increment column key is
documented in the POD for DBIx::Class::ResultSource. Use man or perldoc
to read the docs.

/rdj


_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]

Reply via email to