X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FSQLite.pm;h=be60699895e08e19a99d26ae8943e9c2c7208320;hb=c52f11c91a8570f84daf2bfbbf60fa1ef3b32b5b;hp=550b804cfa64555b5c082fe0c94d5b1cf4c50731;hpb=cb9c535fda0a11fd5615b0351474207a12b06992;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm index 550b804..be60699 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm @@ -6,7 +6,7 @@ use base 'DBIx::Class::Schema::Loader::DBI::Component::QuotedDefault'; use mro 'c3'; use DBIx::Class::Schema::Loader::Table (); -our $VERSION = '0.07034_02'; +our $VERSION = '0.07042'; =head1 NAME @@ -226,7 +226,7 @@ sub _table_uniq_info { push @uniqs, [ $name => \@cols ]; } $sth->finish; - return \@uniqs; + return [ sort { $a->[0] cmp $b->[0] } @uniqs ]; } sub _tables_list { @@ -251,6 +251,15 @@ sub _tables_list { return $self->_filter_tables(\@tables, $opts); } +sub _table_info_matches { + my ($self, $table, $info) = @_; + + my $table_schema = $table->schema; + $table_schema = 'main' if !defined $table_schema; + return $info->{TABLE_SCHEM} eq $table_schema + && $info->{TABLE_NAME} eq $table->name; +} + =head1 SEE ALSO L, L,