Revision history for Perl extension DBIx::Class::Schema::Loader
+ - fix unique constraint names for SQLite (actual names break ->deploy)
- fix bug in qualify_objects that would add schema to relnames
- better type info for Informix, except for DATETIME precision and
INTERVAL support
my @uniqs;
while (my $idx = $sth->fetchrow_hashref) {
next unless $idx->{unique};
+
my $name = $idx->{name};
my $get_idx_sth = $dbh->prepare("pragma index_info(" . $dbh->quote($name) . ")");
push @cols, $self->_lc($idx_row->{name});
}
$get_idx_sth->finish;
+
+ # Rename because SQLite complains about sqlite_ prefixes on identifiers
+ # and ignores constraint names in DDL.
+ $name = (join '_', @cols) . '_unique';
+
push @uniqs, [ $name => \@cols ];
}
$sth->finish;