From: Luke Saunders <luke.saunders@gmail.com>
Date: Thu, 21 Feb 2008 13:54:59 +0000 (+0000)
Subject: fixed namespace bug and updated deps
X-Git-Tag: v1.001002~33
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b4c67f96a5650eefe2a4be8b42f9aa4e75ff9d3d;p=dbsrgits%2FDBIx-Class-Fixtures.git

fixed namespace bug and updated deps
---

diff --git a/Makefile.PL b/Makefile.PL
index d7ac50d..c480e3e 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -10,13 +10,16 @@ WriteMakefile(
     PREREQ_PM => {
         'Test::More' => 0.7,
         'DBIx::Class' => 0.08,
+        'Data::Visitor' => 0.15,
+        'File::Copy::Recursive' => 0.35,
+        'DateTime' => 0.41,
+        'DBIx::Class::Schema::Loader' => 0.04004,
         'Class::Accessor::Grouped' => 0.06,
         'Path::Class' => 0.16,
         'Config::Any' => 0.08,
         'JSON::Syck' => 0.26,
         'Data::Dump::Streamer' => 2.05,
         'Hash::Merge' => 0.10,
-        'DBD::SQLite' => 1.14,
     },
     dist                => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
     clean               => { FILES => 'DBIx-Class-Fixtures-*' },
diff --git a/lib/DBIx/Class/Fixtures.pm b/lib/DBIx/Class/Fixtures.pm
index e2f5161..5465faa 100644
--- a/lib/DBIx/Class/Fixtures.pm
+++ b/lib/DBIx/Class/Fixtures.pm
@@ -664,8 +664,10 @@ sub _generate_schema {
   $self->msg("- finished importing DDL into DB");
 
   # load schema object from our new DB
-  $self->msg("- loading fresh DBIC object from DB");
-  my $schema = $namespace->connect(@{$connection_details});
+  $namespace_counter++;
+  my $namespace2 = "DBIx::Class::Fixtures::GeneratedSchema_" . $namespace_counter;
+  Class::C3::Componentised->inject_base( $namespace2 => $schema_class );
+  my $schema = $namespace2->connect(@{$connection_details});
   return $schema;
 }