X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FBase.pm;h=51eb81ec9321478c04211d0ddcfe6cb79e65bd44;hb=0dd6956db88740a69000a0404c16221e8cebf8fb;hp=4eae9fbe7b38cf32b98e3d1c0464b9604275ba3b;hpb=7ca448fcfae3f1cc8286b713dfcbcc8be542a1b5;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm index 4eae9fb..51eb81e 100644 --- a/lib/DBIx/Class/Schema/Loader/Base.pm +++ b/lib/DBIx/Class/Schema/Loader/Base.pm @@ -1992,7 +1992,12 @@ sub _make_src_class { ); } - my $old_class = join(q{::}, @result_namespace, $table_moniker); + my $old_table_moniker = do { + local $self->naming->{monikers} = $upgrading_v; + $self->_table2moniker($table); + }; + + my $old_class = join(q{::}, @result_namespace, $old_table_moniker); $self->_upgrading_classes->{$table_class} = $old_class unless $table_class eq $old_class;