Revision history for {{$dist->name}}
{{$NEXT}}
+ - Added helpful logging for the schema_from_schema_loader ScriptHelper
- Added much more helpful error for "Can't find source for..." error in
migration scripts, based on code from DBIx::Class::Migration
- Test suite now is fully parallelizable
use List::Util 'first';
use Text::Brew 'distance';
use Try::Tiny;
+use DBIx::Class::DeploymentHandler::LogImporter qw(:dlog);
sub dbh {
my ($code) = @_;
if $opts->{naming} eq 'current' ||
(ref $opts->{naming} eq 'HASH' && first { $_ eq 'current' } values %{$opts->{naming}});
+ $opts->{debug} = 1
+ if !exists $opts->{debug} && $ENV{DBICDH_TRACE};
+
sub {
my ($schema, $versions) = @_;
my $new_schema = DBIx::Class::Schema::Loader::make_schema_at(
'SHSchema::' . $count++, $opts, \@ci
);
+
+ Dlog_debug {
+ "schema_from_schema_loader generated the following sources: $_"
+ } [ $new_schema->sources ];
my $sl_schema = $new_schema->connect(@ci);
try {
$code->($sl_schema, $versions)