import at.dockwork.time.timePlan.domain.*
			
class UpdateScriptService {

	def run(def connection, def dataSourceFields) {

		boolean error = true

		new TimeTimePlanCategory(description_de:"Standard").save()

		def resultMap = at.dockwork.system.service.DataSourceService.execute(
			connection,
			dataSourceFields,
			[
				mySQLStatement:"update dw_time_time_plan set time_time_plan_category_id = 1 where time_time_plan_category_id is null or time_time_plan_category_id = 0",
				msSQLStatement:"update dw_time_time_plan set time_time_plan_category_id = 1 where time_time_plan_category_id is null or time_time_plan_category_id = 0"
			]
		)
			
		error
	}
}