From: Chris Hilton Date: Wed, 24 May 2006 18:41:35 +0000 (+0000) Subject: Ignore Oracle system constraints on source DB schema, also X-Git-Tag: v0.11008~436 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=99b0dca667d0de07e60f5fe49eb01d6fdbd6a9a0;p=dbsrgits%2FSQL-Translator.git Ignore Oracle system constraints on source DB schema, also --- diff --git a/lib/SQL/Translator/Diff.pm b/lib/SQL/Translator/Diff.pm index eb70090..9b60803 100644 --- a/lib/SQL/Translator/Diff.pm +++ b/lib/SQL/Translator/Diff.pm @@ -254,6 +254,8 @@ END } CONSTRAINT2: for my $c_src ( $src_table->get_constraints ) { + next if $source_db =~ /Oracle/ && + $c_src->type eq UNIQUE && $c_src->name =~ /^SYS_/i; next if $checked_constraints{$c_src}; for my $c_tar ( $tar_table->get_constraints ) { next CONSTRAINT2 if $c_src->equals($c_tar, $case_insensitive);