+ - Don't copy column data from schema that does anything other
+ than define data type. e.g. autoinc stuff
+
0.900200 2010-07-24
- No longer use 'scalar gmtime' for set_date in ChangeSet;
that was brittle and doesn't work on many databases, now
);
foreach my $column ( $source->primary_columns ) {
- $class->add_column( $column => { %{ $source->column_info($column) } } );
+ my %column_info = %{$source->column_info($column)};
+ delete $column_info{$_} for qw(
+ is_autoincrement
+ is_foreign_key
+ default_value
+ sequence
+ auto_nextval
+ );
+ $class->add_column( $column => \%column_info );
}
$class->set_primary_key( $source->primary_columns );