Permalink
Browse files

"release_meta_sanitised" gets renamed to "meta_sanitised"

  • Loading branch information...
1 parent e82aec5 commit 7bfd6092b5fa296483659ce30a1897eb31aa00a0 Elliot Chance committed Aug 2, 2010
Showing with 8 additions and 2 deletions.
  1. +1 −1 .gitignore
  2. +7 −1 backend/mysql.pl
View
@@ -2,5 +2,5 @@
:*
cloc.pl
sloc.sh
-mbdump/*
+mbdump*
replication/*
View
@@ -240,7 +240,13 @@ sub backend_mysql_update_index {
# all looks good so far ... create the index
print "$new_line\n";
- mbz_do_sql($new_line);
+ my $success = mbz_do_sql($new_line);
+
+ # if the index fails we will run it again as non-unique
+ if(!$success) {
+ $new_line =~ s/UNIQUE//;
+ mbz_do_sql($new_line);
+ }
}
close(SQL);

0 comments on commit 7bfd609

Please sign in to comment.