summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dibb <beandog@gentoo.org>2010-01-30 21:22:31 +0000
committerSteve Dibb <beandog@gentoo.org>2010-01-30 21:22:31 +0000
commita2632e1b7967ed9bec2f87ab40ae7568f96ab457 (patch)
tree099649905f1e9b571e4299f22bf042b4f8f22b54 /import.bugzilla.php
parentClear out the old records if we're going to start anew (diff)
downloadznurt-org-backend-a2632e1b7967ed9bec2f87ab40ae7568f96ab457.tar.gz
znurt-org-backend-a2632e1b7967ed9bec2f87ab40ae7568f96ab457.tar.bz2
znurt-org-backend-a2632e1b7967ed9bec2f87ab40ae7568f96ab457.zip
Clear out the old records if we're going to start anew
git-svn-id: file:///var/svn/portage@77 3218660a-b0cf-4799-a991-8ddcc5b9e0f3
Diffstat (limited to 'import.bugzilla.php')
-rw-r--r--import.bugzilla.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/import.bugzilla.php b/import.bugzilla.php
index d821449..cc3237b 100644
--- a/import.bugzilla.php
+++ b/import.bugzilla.php
@@ -34,6 +34,9 @@
$sql = "DELETE FROM bugzilla;";
$db->query($sql);
+
+ $sql = "DELETE FROM package_bugs WHERE status = 1;";
+ $db->query($sql);
if($verbose) {
shell::msg("importing bugs");