fixed versioned stuff to strip BEGIN from sql files
Luke Saunders [Wed, 9 Jul 2008 00:11:38 +0000 (00:11 +0000)]
lib/DBIx/Class/Schema/Versioned.pm

index 0799202..1b864cc 100644 (file)
@@ -324,7 +324,7 @@ sub _read_sql_file {
   @data = split(/;/, join('', @data));
   close($fh);
   @data = grep { $_ && $_ !~ /^-- / } @data;
-  @data = grep { $_ !~ /^(BEGIN TRANSACTION|COMMIT)/m } @data;
+  @data = grep { $_ !~ /^(BEGIN|BEGIN TRANSACTION|COMMIT)/m } @data;
   return \@data;
 }