use mro 'c3';
use DBIx::Class::Schema::Loader::Table ();
-our $VERSION = '0.07032';
+our $VERSION = '0.07043';
=head1 NAME
my ($deferrable_clause) = $ddl =~ /
"?\Q$local_col\E"? \s* (?:\w+\s*)* (?: \( \s* \d\+ (?:\s*,\s*\d+)* \s* \) )? \s*
- references \s* (?:\S+|".+?(?<!")") (?:\s* \( \s* "?\Q$remote_col\E"? \s* \))? \s*
+ references \s+ (?:\S+|".+?(?<!")") (?:\s* \( \s* "?\Q$remote_col\E"? \s* \))? \s*
(?:(?:
on \s+ (?:delete|update) \s+ (?:set \s+ null|set \s+ default|cascade|restrict|no \s+ action)
|
push @uniqs, [ $name => \@cols ];
}
$sth->finish;
- return \@uniqs;
+ return [ sort { $a->[0] cmp $b->[0] } @uniqs ];
}
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<DBIx::Class::Schema::Loader>, L<DBIx::Class::Schema::Loader::Base>,
L<DBIx::Class::Schema::Loader::DBI>
-=head1 AUTHOR
+=head1 AUTHORS
-See L<DBIx::Class::Schema::Loader/AUTHOR> and L<DBIx::Class::Schema::Loader/CONTRIBUTORS>.
+See L<DBIx::Class::Schema::Loader/AUTHORS>.
=head1 LICENSE