Revision history for Perl extension DBIx::Class::Schema::Loader
Not yet released
+ - Fix DB2 support
- Add support for load_namespaces-style class layout
- Fix test skip count for main skip_rels block
- Fix auto-inc column creation for the Oracle tests
my ($self, $table) = @_;
my $dbh = $self->schema->storage->dbh;
- my $sth = $dbh->foreign_key_info( '', '', '', '',
- $self->db_schema, $table );
+ my $sth = $dbh->foreign_key_info( '', $self->db_schema, '',
+ '', $self->db_schema, $table );
return [] if !$sth;
my %rels;
WHERE tc.TABSCHEMA = ? and tc.TABNAME = ? and tc.TYPE = 'U'}
) or die $DBI::errstr;
- $sth->execute($self->db_schema, $table) or die $DBI::errstr;
+ $sth->execute($self->db_schema, uc $table) or die $DBI::errstr;
my %keydata;
while(my $row = $sth->fetchrow_arrayref) {
return \@uniqs;
}
+sub _tables_list {
+ my $self = shift;
+ return map lc, $self->next::method;
+}
+
+sub _table_pk_info {
+ my ($self, $table) = @_;
+ return $self->next::method(uc $table);
+}
+
+sub _table_fk_info {
+ my ($self, $table) = @_;
+
+ my $rels = $self->next::method(uc $table);
+
+ foreach my $rel (@$rels) {
+ $rel->{remote_table} = lc $rel->{remote_table};
+ }
+
+ return $rels;
+}
+
+sub _columns_info_for {
+ my ($self, $table) = @_;
+ return $self->next::method(uc $table);
+}
+
=head1 SEE ALSO
L<DBIx::Class::Schema::Loader>, L<DBIx::Class::Schema::Loader::Base>,