unshift @{"${class}::ISA"},
'DBIx::Class::Schema::Loader::Compat::v0_040';
Class::C3::reinitialize;
+# just in case, though no one is likely to dump a dynamic schema
+ $self->version_to_dump('0.04006');
return;
}
return;
}
-sub _load_external {
+sub _class_path {
my ($self, $class) = @_;
my $class_path = $class;
$class_path =~ s{::}{/}g;
$class_path .= '.pm';
- my $real_inc_path = $self->_find_file_in_inc($class_path);
+ return $class_path;
+}
+
+sub _find_class_in_inc {
+ my ($self, $class) = @_;
+
+ return $self->_find_file_in_inc($self->_class_path($class));
+}
+
+sub _load_external {
+ my ($self, $class) = @_;
+
+ my $real_inc_path = $self->_find_class_in_inc($class);
return if !$real_inc_path;
warn qq/# Loaded external class definition for '$class'\n/
if $self->debug;
- croak 'Failed to locate actual external module file for '
- . "'$class'"
- if !$real_inc_path;
open(my $fh, '<', $real_inc_path)
or croak "Failed to open '$real_inc_path' for reading: $!";
$self->_ext_stmt($class,
use lib qw(t/backcompat/0.04006/lib);
use dbixcsl_common_tests;
use Test::More;
-plan skip_all => 'Backcompat tests disabled'
+plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests'
unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
eval { require DBD::SQLite };
use lib qw(t/backcompat/0.04006/lib);
use dbixcsl_common_tests;
use Test::More;
-plan skip_all => 'Backcompat tests disabled'
+plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests'
unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
use lib qw(t/backcompat/0.04006/lib);
use dbixcsl_common_tests;
use Test::More;
-plan skip_all => 'Backcompat tests disabled'
+plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests'
unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
use lib qw(t/backcompat/0.04006/lib);
use dbixcsl_common_tests;
use Test::More;
-plan skip_all => 'Backcompat tests disabled'
+plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests'
unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
use lib qw(t/backcompat/0.04006/lib);
use dbixcsl_common_tests;
use Test::More;
-plan skip_all => 'Backcompat tests disabled'
+plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests'
unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
use lib qw(t/backcompat/0.04006/lib);
use make_dbictest_db;
use Test::More;
-plan skip_all => 'Backcompat tests disabled'
+plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests'
unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
use lib qw(t/backcompat/0.04006/lib);
use make_dbictest_db;
use Test::More;
-plan skip_all => 'Backcompat tests disabled'
+plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests'
unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
use File::Path;
use make_dbictest_db;
use Test::More;
-plan skip_all => 'Backcompat tests disabled'
+plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests'
unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
use make_dbictest_db;
require DBIx::Class::Schema::Loader;
use Test::More;
-plan skip_all => 'Backcompat tests disabled'
+plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests'
unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
$classes->{$table_name} = $schema_class . q{::} . $source_name;
}
+# for debugging...
+# {
+# mkdir '/tmp/HLAGH';
+# $conn->_loader->{dump_directory} = '/tmp/HLAGH';
+# $conn->_loader->_dump_to_dir(values %$classes);
+# }
+
my $moniker1 = $monikers->{loader_test1};
my $class1 = $classes->{loader_test1};
my $rsobj1 = $conn->resultset($moniker1);