Fix duplicate service contacts.

Fixes #6058
This commit is contained in:
Gunnar Beutner 2014-04-23 22:41:51 +02:00
parent d0af8a226b
commit 097e0bf4f4
1 changed files with 4 additions and 4 deletions

View File

@ -370,14 +370,14 @@ void DbConnection::PrepareDatabase(void)
//ClearConfigTable("hoststatus"); //ClearConfigTable("hoststatus");
ClearConfigTable("programstatus"); ClearConfigTable("programstatus");
ClearConfigTable("scheduleddowntime"); ClearConfigTable("scheduleddowntime");
//ClearConfigTable("service_contactgroups"); ClearConfigTable("service_contactgroups");
//ClearConfigTable("service_contacts"); ClearConfigTable("service_contacts");
ClearConfigTable("servicedependencies"); ClearConfigTable("servicedependencies");
//ClearConfigTable("servicegroup_members"); ClearConfigTable("servicegroup_members");
//ClearConfigTable("servicegroups"); //ClearConfigTable("servicegroups");
//ClearConfigTable("services"); //ClearConfigTable("services");
//ClearConfigTable("servicestatus"); //ClearConfigTable("servicestatus");
//ClearConfigTable("timeperiod_timeranges"); ClearConfigTable("timeperiod_timeranges");
//ClearConfigTable("timeperiods"); //ClearConfigTable("timeperiods");
BOOST_FOREACH(const DbType::Ptr& type, DbType::GetAllTypes()) { BOOST_FOREACH(const DbType::Ptr& type, DbType::GetAllTypes()) {