for my $index (@indices) {
my $source = $schema->source($source_name);
- my @pks = $source->primary_columns;
- my @idx_cols = $index->fields;
- ok ( !eq_set(\@pks, \@idx_cols), "no additional index for the primary columns exists in $source_name");
+ my $pk_test = join("\x00", sort $source->primary_columns);
+ my $idx_test = join("\x00", sort $index->fields);
+ isnt ( $pk_test, $idx_test, "no additional index for the primary columns exists in $source_name");
}
}
}