]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1457550 - Update scripts/remove-non-public-data.pl suitability for current BMO...
authorDylan William Hardison <dylan@hardison.net>
Tue, 26 Jun 2018 20:49:42 +0000 (16:49 -0400)
committerGitHub <noreply@github.com>
Tue, 26 Jun 2018 20:49:42 +0000 (16:49 -0400)
scripts/remove-non-public-data.pl
scripts/sanitizeme.pl

index 61c761c270a58768283be6892c18c178dedc48fd..ce7948dd064a138ee2ad4b0594113797288e0bea 100755 (executable)
@@ -174,7 +174,7 @@ foreach my $table (@tables) {
     else {
         print "dropping $table\n";
         drop_referencing($table);
-        $dbh->do("DROP TABLE $table");
+        $dbh->do("DROP TABLE IF EXISTS $table");
     }
 }
 
index 48a618d1272009b1f69b44321a2d299624b7fc88..31418d0475d07592ef2c2484a1a5c1a1ab92d82d 100755 (executable)
@@ -26,7 +26,6 @@ use strict;
 use warnings;
 use lib qw(. lib local/lib/perl5);
 
-
 use Bugzilla;
 use Bugzilla::Bug;
 use Bugzilla::Constants;