From: Rafael Kitover Date: Mon, 30 May 2011 14:23:26 +0000 (-0400) Subject: reset _uniqs_started for POD on rescan X-Git-Tag: 0.07011~90 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8695fbfefe1e5f8c2d9ef276ac3a4d3cd262465f;p=dbsrgits%2FDBIx-Class-Schema-Loader.git reset _uniqs_started for POD on rescan --- diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm index 275efae..998d536 100644 --- a/lib/DBIx/Class/Schema/Loader/Base.pm +++ b/lib/DBIx/Class/Schema/Loader/Base.pm @@ -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);