}
1;
+
+=head1 NAME
+
+DBIx::Class::Schema::Loader::Compat::v0_040 - Compatibility for DBIx::Class::Schema::Loader
+version 0.04006
+
+=head1 DESCRIPTION
+
+Dumps from the old version are auto-detected, and the compat layer is turned
+on. See also L<DBIx::Class::Schema::Loader::Base/namingg>.
+
+=cut
return $remote_relname;
}
-
1;
+
+=head1 NAME
+
+DBIx::Class::Schema::Loader::RelBuilder::Compat::v0_040 - RelBuilder for
+compatibility with DBIx::Class::Schema::Loader version 0.04006
+
+=head1 DESCRIPTION
+
+Loaded by L<DBIx::Class::Schema::Loader::Compat::v0_040>.
+
+=cut
use Test::More;
use lib qw(t/backcompat/0.04006/lib);
use make_dbictest_db;
-use Test::More;
+
plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests'
unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
-
# Takes a $schema as input, runs 4 basic tests
sub test_schema {
my ($testname, $schema) = @_;
use Test::More;
use lib qw(t/backcompat/0.04006/lib);
use make_dbictest_db;
-use Test::More;
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 File::Path;
use make_dbictest_db;
-use Test::More;
+
plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests'
unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
-
my $dump_path = './t/_dump';
{
use File::Path;
use make_dbictest_db;
require DBIx::Class::Schema::Loader;
-use Test::More;
+
plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests'
unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
-
-$^O eq 'MSWin32'
- ? plan(skip_all => "ActiveState perl produces additional warnings, and this test uses unix paths")
- : plan(tests => 85);
+$^O eq 'MSWin32' && plan skip_all =>
+"Win32 perl produces additional warnings, and this test uses unix paths";
my $DUMP_PATH = './t/_dump';
},
);
+done_testing;
+
END { rmtree($DUMP_PATH, 1, 1); }
--- /dev/null
+package My::ResultBaseClass;
+
+use base 'DBIx::Class::Core';
+
+1;
--- /dev/null
+package My::SchemaBaseClass;
+
+use base 'DBIx::Class::Schema';
+
+1;