From 0c9caa52e58f2fa40da66941b58590a36dd09eb4 Mon Sep 17 00:00:00 2001 From: janw Date: Tue, 11 Mar 2008 10:46:32 +0000 Subject: [PATCH] Clean database before fill git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9668 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-server | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.30.2