summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-06-26 22:49:42 +0200
committerGitHub <noreply@github.com>2018-06-26 22:49:42 +0200
commit02e46829b2ddd0f6109c7d81cf40c1865b01a122 (patch)
treee79dc0be0b61af1211bce38b248e8b6367a33c1c /scripts
parent9e7f6444384c0990b89dda0ead7926b6307b960a (diff)
downloadbugzilla-02e46829b2ddd0f6109c7d81cf40c1865b01a122.tar.gz
bugzilla-02e46829b2ddd0f6109c7d81cf40c1865b01a122.tar.xz
Bug 1457550 - Update scripts/remove-non-public-data.pl suitability for current BMO infrastructure.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/remove-non-public-data.pl2
-rwxr-xr-xscripts/sanitizeme.pl1
2 files changed, 1 insertions, 2 deletions
diff --git a/scripts/remove-non-public-data.pl b/scripts/remove-non-public-data.pl
index 61c761c27..ce7948dd0 100755
--- a/scripts/remove-non-public-data.pl
+++ b/scripts/remove-non-public-data.pl
@@ -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");
}
}
diff --git a/scripts/sanitizeme.pl b/scripts/sanitizeme.pl
index 48a618d12..31418d047 100755
--- a/scripts/sanitizeme.pl
+++ b/scripts/sanitizeme.pl
@@ -26,7 +26,6 @@ use strict;
use warnings;
use lib qw(. lib local/lib/perl5);
-
use Bugzilla;
use Bugzilla::Bug;
use Bugzilla::Constants;