From: janw Date: Tue, 11 Mar 2008 10:46:32 +0000 (+0000) Subject: Clean database before fill X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0c9caa52e58f2fa40da66941b58590a36dd09eb4;p=gosa.git Clean database before fill git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9668 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 56b376be7..e99285b80 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -1446,7 +1446,10 @@ sub create_fai_release_db { } } daemon_log("Inserting entries to DB",6); - $fai_server_db->exec_statementlist(\@sql_list); + if(@sql_list) { + unshift @sql_list, "DELETE FROM $table_name"; + $fai_server_db->exec_statementlist(\@sql_list); + } daemon_log("Done with inserting",6); } daemon_log("Done with creating fai_release_db",4);