Copy the working mk_hash from HashRefInflator in -current into Cookbook
[dbsrgits/DBIx-Class-Historic.git] / lib / DBIx / Class / Schema.pm
index 8f8d846..b5ab0e0 100644 (file)
@@ -389,9 +389,6 @@ will produce the output
 
 sub compose_namespace {
   my ($self, $target, $base) = @_;
-  my %reg = %{ $self->source_registrations };
-  my %target;
-  my %map;
   my $schema = $self->clone;
   {
     no warnings qw/redefine/;
@@ -788,7 +785,7 @@ sub ddl_filename {
     my ($self, $type, $dir, $version) = @_;
 
     my $filename = ref($self);
-    $filename =~ s/::/-/;
+    $filename =~ s/::/-/g;
     $filename = "$dir$filename-$version-$type.sql";
 
     return $filename;