import at.clockwork.system.service.SystemConfigurationService
import grails.util.Holders

class UpdateScriptService {

	def systemConfigurationService = Holders.grailsApplication.mainContext.getBean 'systemConfigurationService'

	def run(def connection, def dataSourceFields) {

		systemConfigurationService.deleteByCwID(154)
		systemConfigurationService.deleteByCwID(155)
		systemConfigurationService.deleteByCwID(801)
		systemConfigurationService.deleteByCwID(811)
		systemConfigurationService.deleteByCwID(812)
		systemConfigurationService.deleteByCwID(813)
		systemConfigurationService.deleteByCwID(814)
		systemConfigurationService.deleteByCwID(815)
		systemConfigurationService.deleteByCwID(816)
		systemConfigurationService.deleteByCwID(1031)
		systemConfigurationService.deleteByCwID(1051)
		systemConfigurationService.deleteByCwID(1052)
		systemConfigurationService.deleteByCwID(10501)
		systemConfigurationService.deleteByCwID(10502)
		systemConfigurationService.deleteByCwID(10511)
		systemConfigurationService.deleteByCwID(10512)
		systemConfigurationService.deleteByCwID(99001)

		true
	}
}