fixed namespace bug and updated deps
Luke Saunders [Thu, 21 Feb 2008 13:54:59 +0000 (13:54 +0000)]
Makefile.PL
lib/DBIx/Class/Fixtures.pm

index d7ac50d..c480e3e 100644 (file)
@@ -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-*' },
index e2f5161..5465faa 100644 (file)
@@ -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;
 }