Skip to content

Instantly share code, notes, and snippets.

@dklawren
Created July 11, 2018 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dklawren/8312adaac3cca5c02106381c1f81437c to your computer and use it in GitHub Desktop.
Save dklawren/8312adaac3cca5c02106381c1f81437c to your computer and use it in GitHub Desktop.
diff --git a/scripts/remove-non-public-data.pl b/scripts/remove-non-public-data.pl
index ce7948dd0..56abe09cb 100755
--- a/scripts/remove-non-public-data.pl
+++ b/scripts/remove-non-public-data.pl
@@ -140,11 +140,11 @@ my $dbh = Bugzilla->dbh;
print "running sanitizeme.pl\n";
my $sanitizeme = catfile(realpath(dirname(__FILE__)), 'sanitizeme.pl');
-system $sanitizeme, '--execute';
+#system $sanitizeme, '--execute';
-if ($dbh->selectrow_array("SELECT COUNT(*) FROM bug_group_map")) {
- die "sanitization failed\n";
-}
+#if ($dbh->selectrow_array("SELECT COUNT(*) FROM bug_group_map")) {
+# die "sanitization failed\n";
+#}
# drop all views
@@ -155,7 +155,7 @@ foreach my $view (sort @{ $dbh->selectcol_arrayref("SHOW FULL TABLES IN $db_name
# drop tables/columns
-my @tables = map { lc } sort @{ $dbh->selectcol_arrayref("SHOW TABLES") };
+my @tables = sort @{ $dbh->selectcol_arrayref("SHOW TABLES") };
foreach my $table (@tables) {
if (exists $whitelist{$table}) {
my @drop_columns;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment