Subject: | Missing "is_auto_increment" => 1 when creating files |
Config
===================
perl 5.8.8
mysql 5.0.45
OS: Fedora 7
uname: Linux fgutierr-f7 2.6.23.1-21.fc7 #1 SMP Thu Nov 1 21:09:24 EDT
2007 i686 i686 i386 GNU/Linux
DBIx-Class-Schema-Loader: 0.04003
Problem
===================
When loader created a Schema file from the database -- the resulting
schema file did not have "is_auto_increment" => 1
P.S. I was asked by castaway to send you this bug report
Generated Schema File
====================
package Schema::Data;
use strict;
use warnings;
use base 'DBIx::Class';
__PACKAGE__->load_components("Core");
__PACKAGE__->table("data");
__PACKAGE__->add_columns(
"id",
{ data_type => "INT", default_value => undef, is_nullable => 0, size
=> 11 },
"date",
{ data_type => "DATE", default_value => "", is_nullable => 0, size =>
10 },
"type",
{ data_type => "VARCHAR", default_value => "", is_nullable => 0, size
=> 80 },
"spot",
{ data_type => "VARCHAR", default_value => "", is_nullable => 0, size
=> 80 },
"amount",
{ data_type => "DOUBLE", default_value => "", is_nullable => 0, size
=> 64 },
"category",
{ data_type => "VARCHAR", default_value => "", is_nullable => 0, size
=> 80 },
);
__PACKAGE__->set_primary_key("id");
# Created by DBIx::Class::Schema::Loader v0.04003 @ 2007-12-13 01:58:33
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:N51lB7tjwMMQr2238Z8C7Q
# You can replace this text with custom content, and it will be
preserved on regeneration
1;