From: Sven Schöling Date: Wed, 26 Jun 2013 09:33:18 +0000 (+0200) Subject: Bei foreign keys auch die ::AUTO:: namespaces löschen X-Git-Tag: release-3.1.0beta1~259 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=95a60147c8b2bf2fab66e6e1785708aeebfaccbc;p=kivitendo-erp.git Bei foreign keys auch die ::AUTO:: namespaces löschen --- diff --git a/scripts/rose_auto_create_model.pl b/scripts/rose_auto_create_model.pl index 3331c247e..2e746a6bd 100755 --- a/scripts/rose_auto_create_model.pl +++ b/scripts/rose_auto_create_model.pl @@ -120,6 +120,7 @@ CODE # patch foreign keys my $foreign_key_definition = "SL::DB::AUTO::$package"->meta->perl_foreign_keys_definition(%args); + $foreign_key_definition =~ s/::AUTO::/::/g; if ($definition =~ /\Q$foreign_key_definition\E/) { my ($start, $end) = ($-[0], $+[0]);