
import at.dockwork.system.service.SystemConfigurationService
import at.dockwork.system.domain.*

import grails.util.Holders
class UpdateScriptService {

	def systemConfigurationService = Holders.grailsApplication.mainContext.getBean 'systemConfigurationService'
	def run(def connection, def dataSourceFields) {

		systemConfigurationService.deleteByCwID(1)
		systemConfigurationService.deleteByCwID(11)
		systemConfigurationService.deleteByCwID(12)
		systemConfigurationService.deleteByCwID(13)
		systemConfigurationService.deleteByCwID(14)
		systemConfigurationService.deleteByCwID(21)
		systemConfigurationService.deleteByCwID(22)
		systemConfigurationService.deleteByCwID(23)
		systemConfigurationService.deleteByCwID(34)
		systemConfigurationService.deleteByCwID(35)
		systemConfigurationService.deleteByCwID(51)
		systemConfigurationService.deleteByCwID(52)

		true
	}
}
