X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FSQLite.pm;h=a48357902e66387885d0fea6ca3d935056095bda;hb=802a117545a5bd1a5d20152835a3aa7fb2e7b39f;hp=23adaf5073c869ce12556a5371ad11e6c6c20399;hpb=023596033b27c52ba85a41181004cf960d84fb75;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 23adaf5..a483579 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.07036_03'; +our $VERSION = '0.07041'; =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,