projects
/
dbsrgits/DBIx-Class-Schema-Loader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
651bced
)
make dynamic schemas 0.04006 mode by default
Rafael Kitover [Sat, 28 Nov 2009 08:46:00 +0000 (08:46 +0000)]
lib/DBIx/Class/Schema/Loader/Base.pm
patch
|
blob
|
blame
|
history
t/backcompat/0.04006/10sqlite_common.t
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Schema/Loader/Base.pm
b/lib/DBIx/Class/Schema/Loader/Base.pm
index
575345c
..
51bf652
100644
(file)
--- a/
lib/DBIx/Class/Schema/Loader/Base.pm
+++ b/
lib/DBIx/Class/Schema/Loader/Base.pm
@@
-339,6
+339,7
@@
sub _check_back_compat {
if ($self->{dynamic}) {
no strict 'refs';
my $class = ref $self || $self;
+ require DBIx::Class::Schema::Loader::Compat::v0_040;
unshift @{"${class}::ISA"},
'DBIx::Class::Schema::Loader::Compat::v0_040';
Class::C3::reinitialize;
diff --git
a/t/backcompat/0.04006/10sqlite_common.t
b/t/backcompat/0.04006/10sqlite_common.t
index
7899cf6
..
b28f1ac
100644
(file)
--- a/
t/backcompat/0.04006/10sqlite_common.t
+++ b/
t/backcompat/0.04006/10sqlite_common.t
@@
-1,5
+1,5
@@
use strict;
-use lib qw(t/lib);
+use lib qw(t/backcompat/0.04006/lib);
use dbixcsl_common_tests;
eval { require DBD::SQLite };