reset _uniqs_started for POD on rescan
Rafael Kitover [Mon, 30 May 2011 14:23:26 +0000 (10:23 -0400)]
lib/DBIx/Class/Schema/Loader/Base.pm

index 275efae..998d536 100644 (file)
@@ -1134,8 +1134,7 @@ sub rescan {
         }
     }
 
-    delete $self->{_dump_storage};
-    delete $self->{_relations_started};
+    delete @$self{qw/_dump_storage _relations_started _uniqs_started/};
 
     my $loaded = $self->_load_tables(@current);
 
@@ -1919,8 +1918,6 @@ sub _setup_src_meta {
     # be careful to not create refs Data::Dump can "optimize"
     $full_table_name = \do {"".$full_table_name} if ref $table_name;
 
-    $self->_raw_stmt($table_class, ''); # add a blank line
-
     $self->_dbic_stmt($table_class, 'table', $full_table_name);
 
     my $cols     = $self->_table_columns($table);