Created
July 11, 2018 21:36
-
-
Save dklawren/8312adaac3cca5c02106381c1f81437c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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