Skip to content

Commit

Permalink
Ignoring identical indexes on same columns ... not a reason to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
tnosaj committed Mar 29, 2021
1 parent a98092f commit 65be25d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/MySQL/Diff/Table.pm
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,6 @@ sub _parse {

if (/^(KEY|UNIQUE(?: KEY)?)\s+(\S+?)(?:\s+USING\s+(?:BTREE|HASH|RTREE))?\s*\((.*)\)(?:\s+USING\s+(?:BTREE|HASH|RTREE))?$/) {
my ($type, $key, $val) = ($1, $2, $3);
croak "index '$key' duplicated in table '$self->{name}'\n"
if $self->{indices}{$val};
$self->{indices}{$val} = $val;
$self->{unique}{$val} = 1 if($type =~ /unique/i);
debug(4, "got ", defined $self->{unique}{$val} ? 'unique ' : '', "index key '$val': ($val)");
Expand Down

0 comments on commit 65be25d

Please sign in to comment.