summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dibb <beandog@gentoo.org>2010-01-30 21:21:59 +0000
committerSteve Dibb <beandog@gentoo.org>2010-01-30 21:21:59 +0000
commit2b7b533c088a343aff42a29a0e635543d4ba2ccf (patch)
tree937b19d97b27444a0237a7767ed80d824dd01c1d
parentUse postgres to calcuate the time intervals (diff)
downloadznurt-org-backend-2b7b533c088a343aff42a29a0e635543d4ba2ccf.tar.gz
znurt-org-backend-2b7b533c088a343aff42a29a0e635543d4ba2ccf.tar.bz2
znurt-org-backend-2b7b533c088a343aff42a29a0e635543d4ba2ccf.zip
Clear out the old records if we're going to start anew
git-svn-id: file:///var/svn/portage@76 3218660a-b0cf-4799-a991-8ddcc5b9e0f3
-rw-r--r--import.bugzilla.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/import.bugzilla.php b/import.bugzilla.php
index 5ed9e3a..d821449 100644
--- a/import.bugzilla.php
+++ b/import.bugzilla.php
@@ -32,6 +32,9 @@
if($import_bugzilla) {
+ $sql = "DELETE FROM bugzilla;";
+ $db->query($sql);
+
if($verbose) {
shell::msg("importing bugs");
}