Fix to $filename from Carl Vincent
Jess Robinson [Sat, 3 Mar 2007 12:15:03 +0000 (12:15 +0000)]
lib/DBIx/Class/Schema.pm

index 8f8d846..3ab14fd 100644 (file)
@@ -788,7 +788,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;