(505,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_work_time_manual\', \'time_to\')','',545,'2018-08-28 10:51:52','\0','drop cw_work_time_manual.time_to','','2018-08-28 10:51:52','2018-08-28 10:51:52','','alter table cw_work_time_manual drop column time_to','alter table cw_work_time_manual drop column time_to',0,'OK','',''),
(506,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_work_time_manual\', \'duration\')','',546,'2018-08-28 10:51:52','\0','drop cw_work_time_manual.duration','','2018-08-28 10:51:52','2018-08-28 10:51:52','','alter table cw_work_time_manual drop column duration','alter table cw_work_time_manual drop column duration',0,'OK','',''),
(507,1,'at.clockwork.system.service.DataSourceService.existsTableInDatabase(connection, \'cw_menu\')','',547,'2018-08-28 10:51:52','\0','delete old menus','','2018-08-28 10:51:53','2018-08-28 10:51:53','','','',0,'OK','','import at.clockwork.common.domain.*\nimport at.clockwork.system.domain.*\nimport at.clockwork.generated.service.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	TriggerWriteService triggerWriteService = Holders.grailsApplication.mainContext.getBean \'triggerWriteService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        Script.findAllWhere(deleted:false).each { Script script ->\n\n            if (script.trigger) {\n                script.trigger.script = script\n                triggerWriteService.save(script.trigger)\n            }\n\n        }\n\n		true\n	}\n}'),
(508,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_changed_access_authorisation_spooler\', \'counter\')','',548,'2018-08-28 10:51:52','\0','add cw_changed_access_authorisation_spooler.counter','','2018-08-28 10:51:53','2018-08-28 10:51:53','','alter table cw_changed_access_authorisation_spooler add counter INTEGER','alter table cw_changed_access_authorisation_spooler add column counter INTEGER',0,'condition is false','',''),
(509,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_clockwork_mobile_spooler\', \'counter\')','',549,'2018-08-28 10:51:52','\0','add cw_clockwork_mobile_spooler.counter','','2018-08-28 10:51:53','2018-08-28 10:51:53','','alter table cw_clockwork_mobile_spooler add counter INTEGER','alter table cw_clockwork_mobile_spooler add column counter INTEGER',0,'condition is false','',''),
(510,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_customer_spooler\', \'counter\')','',550,'2018-08-28 10:51:52','\0','add cw_customer_spooler.counter','','2018-08-28 10:51:53','2018-08-28 10:51:53','','alter table cw_customer_spooler add counter INTEGER','alter table cw_customer_spooler add column counter INTEGER',0,'condition is false','',''),
(511,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_spooler\', \'counter\')','',551,'2018-08-28 10:51:52','\0','add cw_terminal_spooler.counter','','2018-08-28 10:51:53','2018-08-28 10:51:53','','alter table cw_terminal_spooler add counter INTEGER','alter table cw_terminal_spooler add column counter INTEGER',0,'condition is false','',''),
(512,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_dependet_data_spooler\', \'counter\')','',552,'2018-08-28 10:51:52','\0','add cw_time_dependet_data_spooler.counter','','2018-08-28 10:51:53','2018-08-28 10:51:53','','alter table cw_time_dependet_data_spooler add counter INTEGER','alter table cw_time_dependet_data_spooler add column counter INTEGER',0,'condition is false','',''),
(513,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_from_foxpro_spooler\', \'counter\')','',553,'2018-08-28 10:51:52','\0','add cw_from_foxpro_spooler.counter','','2018-08-28 10:51:53','2018-08-28 10:51:53','','alter table cw_from_foxpro_spooler add counter INTEGER','alter table cw_from_foxpro_spooler add column counter INTEGER',0,'condition is false','',''),
(514,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_clockwork_foxpro_spooler\', \'counter\')','',554,'2018-08-28 10:51:52','\0','add cw_clockwork_foxpro_spooler.counter','','2018-08-28 10:51:53','2018-08-28 10:51:53','','alter table cw_clockwork_foxpro_spooler add counter INTEGER','alter table cw_clockwork_foxpro_spooler add column counter INTEGER',0,'condition is false','',''),
(515,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_changed_access_authorisation_spooler\', \'counter\')','',556,'2018-08-28 10:51:52','\0','init cw_changed_access_authorisation_spooler.counter = 0','','2018-08-28 10:51:53','2018-08-28 10:51:53','','update cw_changed_access_authorisation_spooler set counter = 0 where counter is null','update cw_changed_access_authorisation_spooler set counter = 0 where counter is null',0,'OK','',''),
(516,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_clockwork_mobile_spooler\', \'counter\')','',557,'2018-08-28 10:51:52','\0','init cw_clockwork_mobile_spooler.counter = 0','','2018-08-28 10:51:53','2018-08-28 10:51:53','','update cw_clockwork_mobile_spooler set counter = 0 where counter is null','update cw_clockwork_mobile_spooler set counter = 0 where counter is null',0,'OK','',''),
(517,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_customer_spooler\', \'counter\')','',558,'2018-08-28 10:51:52','\0','init cw_customer_spooler.counter = 0','','2018-08-28 10:51:53','2018-08-28 10:51:53','','update cw_customer_spooler set counter = 0 where counter is null','update cw_customer_spooler set counter = 0 where counter is null',0,'OK','',''),
(518,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_spooler\', \'counter\')','',559,'2018-08-28 10:51:52','\0','init cw_terminal_spooler.counter = 0','','2018-08-28 10:51:53','2018-08-28 10:51:53','','update cw_terminal_spooler set counter = 0 where counter is null','update cw_terminal_spooler set counter = 0 where counter is null',0,'OK','',''),
(519,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_dependet_data_spooler\', \'counter\')','',560,'2018-08-28 10:51:52','\0','init cw_time_dependet_data_spooler.counter = 0','','2018-08-28 10:51:53','2018-08-28 10:51:53','','update cw_time_dependet_data_spooler set counter = 0 where counter is null','update cw_time_dependet_data_spooler set counter = 0 where counter is null',0,'OK','',''),
(520,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_from_foxpro_spooler\', \'counter\')','',561,'2018-08-28 10:51:52','\0','init cw_from_foxpro_spooler.counter = 0','','2018-08-28 10:51:53','2018-08-28 10:51:53','','update cw_from_foxpro_spooler set counter = 0 where counter is null','update cw_from_foxpro_spooler set counter = 0 where counter is null',0,'OK','',''),
(521,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_clockwork_foxpro_spooler\', \'counter\')','',562,'2018-08-28 10:51:52','\0','init cw_clockwork_foxpro_spooler.counter = 0','','2018-08-28 10:51:53','2018-08-28 10:51:53','','update cw_clockwork_foxpro_spooler set counter = 0 where counter is null','update cw_clockwork_foxpro_spooler set counter = 0 where counter is null',0,'OK','',''),
(522,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_event_base_data\', \'input\')','',563,'2018-08-28 10:51:52','\0','add cw_event_base_data.input','','2018-08-28 10:51:53','2018-08-28 10:51:53','','alter table cw_event_base_data add input INTEGER','alter table cw_event_base_data add column input INTEGER',0,'condition is false','',''),
(523,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_event_base_data\', \'input_state\')','',564,'2018-08-28 10:51:52','\0','add cw_event_base_data.input_state','','2018-08-28 10:51:53','2018-08-28 10:51:53','','alter table cw_event_base_data add input_state INTEGER','alter table cw_event_base_data add column input_state INTEGER',0,'condition is false','',''),
(524,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_event_base_data\', \'input\')','',565,'2018-08-28 10:51:52','\0','init cw_event_base_data.input = 0','','2018-08-28 10:51:53','2018-08-28 10:51:53','','update cw_event_base_data set input = 0 where input is null','update cw_event_base_data set input = 0 where input is null',0,'OK','',''),
(525,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_event_base_data\', \'input_state\')','',566,'2018-08-28 10:51:52','\0','init cw_event_base_data.input_state = 0','','2018-08-28 10:51:53','2018-08-28 10:51:53','','update cw_event_base_data set input_state = 0 where input_state is null','update cw_event_base_data set input_state = 0 where input_state is null',0,'OK','',''),
(526,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_system_configuration\', \'class\')','',-101,'2019-02-25 18:36:23','\0','add column systemConfiguration.class','','2019-02-25 18:36:24','2019-02-25 18:36:24','','alter table cw_system_configuration add class varchar(255) NULL','alter table cw_system_configuration add class varchar(255)',0,'condition is false','',''),
(527,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_office_pincode_waiting_period\')','',568,'2019-02-25 18:36:23','\0','add column cw_terminal_chiplox.activate_office_pincode_waiting_period','','2019-02-25 18:36:24','2019-02-25 18:36:24','','alter table cw_terminal_chiplox add activate_office_pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column activate_office_pincode_waiting_period INTEGER',0,'condition is false','',''),
(528,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_office_pincode_waiting_period\')','',569,'2019-02-25 18:36:23','\0','init cw_terminal_chiplox.activate_office_pincode_waiting_period = 0','','2019-02-25 18:36:24','2019-02-25 18:36:24','','update cw_terminal_chiplox set activate_office_pincode_waiting_period = 0 where activate_office_pincode_waiting_period is null','update cw_terminal_chiplox set activate_office_pincode_waiting_period = 0 where activate_office_pincode_waiting_period is null',0,'OK','',''),
(529,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'deactivate_office_pincode_waiting_period\')','',570,'2019-02-25 18:36:23','\0','add column cw_terminal_chiplox.deactivate_office_pincode_waiting_period','','2019-02-25 18:36:24','2019-02-25 18:36:24','','alter table cw_terminal_chiplox add deactivate_office_pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column deactivate_office_pincode_waiting_period INTEGER',0,'condition is false','',''),
(530,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'deactivate_office_pincode_waiting_period\')','',571,'2019-02-25 18:36:23','\0','init cw_terminal_chiplox.deactivate_office_pincode_waiting_period = 0','','2019-02-25 18:36:24','2019-02-25 18:36:24','','update cw_terminal_chiplox set deactivate_office_pincode_waiting_period = 0 where deactivate_office_pincode_waiting_period is null','update cw_terminal_chiplox set deactivate_office_pincode_waiting_period = 0 where deactivate_office_pincode_waiting_period is null',0,'OK','',''),
(531,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_generally_open_pincode_waiting_period\')','',572,'2019-02-25 18:36:23','\0','add column cw_terminal_chiplox.activate_generally_open_pincode_waiting_period','','2019-02-25 18:36:24','2019-02-25 18:36:24','','alter table cw_terminal_chiplox add activate_generally_open_pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column activate_generally_open_pincode_waiting_period INTEGER',0,'condition is false','',''),
(532,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_generally_open_pincode_waiting_period\')','',573,'2019-02-25 18:36:23','\0','init cw_terminal_chiplox.activate_generally_open_pincode_waiting_period = 0','','2019-02-25 18:36:24','2019-02-25 18:36:24','','update cw_terminal_chiplox set activate_generally_open_pincode_waiting_period = 0 where activate_generally_open_pincode_waiting_period is null','update cw_terminal_chiplox set activate_generally_open_pincode_waiting_period = 0 where activate_generally_open_pincode_waiting_period is null',0,'OK','',''),
(533,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'deactivate_generally_open_pincode_waiting_period\')','',574,'2019-02-25 18:36:23','\0','add column cw_terminal_chiplox.deactivate_generally_open_pincode_waiting_period','','2019-02-25 18:36:24','2019-02-25 18:36:24','','alter table cw_terminal_chiplox add deactivate_generally_open_pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column deactivate_generally_open_pincode_waiting_period INTEGER',0,'condition is false','',''),
(534,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'deactivate_generally_open_pincode_waiting_period\')','',575,'2019-02-25 18:36:23','\0','init cw_terminal_chiplox.deactivate_generally_open_pincode_waiting_period = 0','','2019-02-25 18:36:24','2019-02-25 18:36:24','','update cw_terminal_chiplox set deactivate_generally_open_pincode_waiting_period = 0 where deactivate_generally_open_pincode_waiting_period is null','update cw_terminal_chiplox set deactivate_generally_open_pincode_waiting_period = 0 where deactivate_generally_open_pincode_waiting_period is null',0,'OK','',''),
(535,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_door_day_access_schedule_2_detail\', \'activate_by_first_access\')','',576,'2019-02-25 18:36:23','\0','add column cw_chiplox_door_day_access_schedule_2_detail.activate_by_first_access','','2019-02-25 18:36:24','2019-02-25 18:36:24','','alter table cw_chiplox_door_day_access_schedule_2_detail add activate_by_first_access BIT','alter table cw_chiplox_door_day_access_schedule_2_detail add column activate_by_first_access BIT',0,'condition is false','',''),
(536,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_door_day_access_schedule_2_detail\', \'activate_by_first_access\')','',577,'2019-02-25 18:36:23','\0','init cw_chiplox_door_day_access_schedule_2_detail.activate_by_first_access = 0','','2019-02-25 18:36:24','2019-02-25 18:36:24','','update cw_chiplox_door_day_access_schedule_2_detail set activate_by_first_access = 0 where activate_by_first_access is null','update cw_chiplox_door_day_access_schedule_2_detail set activate_by_first_access = 0 where activate_by_first_access is null',0,'OK','',''),
(537,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_door_day_access_schedule_2_detail\', \'activate_before_first_access\')','',578,'2019-02-25 18:36:23','\0','add column cw_chiplox_door_day_access_schedule_2_detail.activate_before_first_access','','2019-02-25 18:36:24','2019-02-25 18:36:24','','alter table cw_chiplox_door_day_access_schedule_2_detail add activate_before_first_access INTEGER','alter table cw_chiplox_door_day_access_schedule_2_detail add column activate_before_first_access INTEGER',0,'condition is false','',''),
(538,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_door_day_access_schedule_2_detail\', \'activate_before_first_access\')','',579,'2019-02-25 18:36:23','\0','init cw_chiplox_door_day_access_schedule_2_detail.activate_before_first_access = 0','','2019-02-25 18:36:24','2019-02-25 18:36:24','','update cw_chiplox_door_day_access_schedule_2_detail set activate_before_first_access = 0 where activate_before_first_access is null','update cw_chiplox_door_day_access_schedule_2_detail set activate_before_first_access = 0 where activate_before_first_access is null',0,'OK','',''),
(539,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_door_day_access_schedule_2_detail\', \'manual_activation_of_generally_open\')','',580,'2019-02-25 18:36:23','\0','add column cw_chiplox_door_day_access_schedule_2_detail.manual_activation_of_generally_open','','2019-02-25 18:36:24','2019-02-25 18:36:24','','alter table cw_chiplox_door_day_access_schedule_2_detail add manual_activation_of_generally_open BIT','alter table cw_chiplox_door_day_access_schedule_2_detail add column manual_activation_of_generally_open BIT',0,'condition is false','',''),
(540,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_door_day_access_schedule_2_detail\', \'manual_activation_of_generally_open\')','',581,'2019-02-25 18:36:23','\0','init cw_chiplox_door_day_access_schedule_2_detail.manual_activation_of_generally_open = 0','','2019-02-25 18:36:24','2019-02-25 18:36:24','','update cw_chiplox_door_day_access_schedule_2_detail set manual_activation_of_generally_open = 0 where manual_activation_of_generally_open is null','update cw_chiplox_door_day_access_schedule_2_detail set manual_activation_of_generally_open = 0 where manual_activation_of_generally_open is null',0,'OK','',''),
(541,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_keyflex_door_day_access_schedule\', \'activate_from_first_access\')','',582,'2019-02-25 18:36:23','\0','drop cw_keyflex_door_day_access_schedule.activate_from_first_access','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_keyflex_door_day_access_schedule drop column activate_from_first_access','alter table cw_keyflex_door_day_access_schedule drop column activate_from_first_access',0,'condition is false','',''),
(542,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_keyflex_door_access_schedule\', \'activate_by_first_access\')','',583,'2019-02-25 18:36:23','\0','add column cw_keyflex_door_access_schedule.activate_by_first_access','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_keyflex_door_access_schedule add activate_by_first_access BIT','alter table cw_keyflex_door_access_schedule add column activate_by_first_access BIT',0,'condition is false','',''),
(543,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_keyflex_door_access_schedule\', \'activate_by_first_access\')','',584,'2019-02-25 18:36:23','\0','init cw_keyflex_door_access_schedule.activate_by_first_access = 0','','2019-02-25 18:36:25','2019-02-25 18:36:25','','update cw_keyflex_door_access_schedule set activate_by_first_access = 0 where activate_by_first_access is null','update cw_keyflex_door_access_schedule set activate_by_first_access = 0 where activate_by_first_access is null',0,'OK','',''),
(544,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_keyflex_door_access_schedule\', \'activate_before_first_access\')','',585,'2019-02-25 18:36:23','\0','add column cw_keyflex_door_access_schedule.activate_before_first_access','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_keyflex_door_access_schedule add activate_before_first_access INTEGER','alter table cw_keyflex_door_access_schedule add column activate_before_first_access INTEGER',0,'condition is false','',''),
(545,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_keyflex_door_access_schedule\', \'activate_before_first_access\')','',586,'2019-02-25 18:36:23','\0','init cw_keyflex_door_access_schedule.activate_before_first_access = 0','','2019-02-25 18:36:25','2019-02-25 18:36:25','','update cw_keyflex_door_access_schedule set activate_before_first_access = 0 where activate_before_first_access is null','update cw_keyflex_door_access_schedule set activate_before_first_access = 0 where activate_before_first_access is null',0,'OK','',''),
(546,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_alarmsystem_pincode_waiting_period\')','',587,'2019-02-25 18:36:23','\0','add column cw_terminal_chiplox.activate_alarmsystem_pincode_waiting_period','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_terminal_chiplox add activate_alarmsystem_pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column activate_alarmsystem_pincode_waiting_period INTEGER',0,'condition is false','',''),
(547,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_alarmsystem_pincode_waiting_period\')','',588,'2019-02-25 18:36:23','\0','init cw_terminal_chiplox.activate_alarmsystem_pincode_waiting_period = 0','','2019-02-25 18:36:25','2019-02-25 18:36:25','','update cw_terminal_chiplox set activate_alarmsystem_pincode_waiting_period = 0 where activate_alarmsystem_pincode_waiting_period is null','update cw_terminal_chiplox set activate_alarmsystem_pincode_waiting_period = 0 where activate_alarmsystem_pincode_waiting_period is null',0,'OK','',''),
(548,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'deactivate_alarmsystem_pincode_waiting_period\')','',589,'2019-02-25 18:36:23','\0','add column cw_terminal_chiplox.deactivate_alarmsystem_pincode_waiting_period','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_terminal_chiplox add deactivate_alarmsystem_pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column deactivate_alarmsystem_pincode_waiting_period INTEGER',0,'condition is false','',''),
(549,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'deactivate_alarmsystem_pincode_waiting_period\')','',590,'2019-02-25 18:36:23','\0','init cw_terminal_chiplox.deactivate_alarmsystem_pincode_waiting_period = 0','','2019-02-25 18:36:25','2019-02-25 18:36:25','','update cw_terminal_chiplox set deactivate_alarmsystem_pincode_waiting_period = 0 where deactivate_alarmsystem_pincode_waiting_period is null','update cw_terminal_chiplox set deactivate_alarmsystem_pincode_waiting_period = 0 where deactivate_alarmsystem_pincode_waiting_period is null',0,'OK','',''),
(550,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_office\')','',591,'2019-02-25 18:36:23','\0','add column cw_chiplox_person_day_access_schedule_2_detail.activate_office','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_chiplox_person_day_access_schedule_2_detail add activate_office BIT','alter table cw_chiplox_person_day_access_schedule_2_detail add column activate_office BIT',0,'condition is false','',''),
(551,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_office\')','',592,'2019-02-25 18:36:23','\0','init cw_chiplox_person_day_access_schedule_2_detail.activate_office = 0','','2019-02-25 18:36:25','2019-02-25 18:36:25','','update cw_chiplox_person_day_access_schedule_2_detail set activate_office = 0 where activate_office is null','update cw_chiplox_person_day_access_schedule_2_detail set activate_office = 0 where activate_office is null',0,'OK','',''),
(552,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'start_office\')','',593,'2019-02-25 18:36:23','\0','drop cw_chiplox_person_day_access_schedule_2_detail.start_office','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_chiplox_person_day_access_schedule_2_detail drop column start_office','alter table cw_chiplox_person_day_access_schedule_2_detail drop column start_office',0,'OK','',''),
(553,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'deactivate_office\')','',594,'2019-02-25 18:36:23','\0','add column cw_chiplox_person_day_access_schedule_2_detail.deactivate_office','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_chiplox_person_day_access_schedule_2_detail add deactivate_office BIT','alter table cw_chiplox_person_day_access_schedule_2_detail add column deactivate_office BIT',0,'condition is false','',''),
(554,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'deactivate_office\')','',595,'2019-02-25 18:36:23','\0','init cw_chiplox_person_day_access_schedule_2_detail.deactivate_office = 0','','2019-02-25 18:36:25','2019-02-25 18:36:25','','update cw_chiplox_person_day_access_schedule_2_detail set deactivate_office = 0 where deactivate_office is null','update cw_chiplox_person_day_access_schedule_2_detail set deactivate_office = 0 where deactivate_office is null',0,'OK','',''),
(555,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'stop_office\')','',596,'2019-02-25 18:36:23','\0','drop cw_chiplox_person_day_access_schedule_2_detail.stop_office','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_chiplox_person_day_access_schedule_2_detail drop column stop_office','alter table cw_chiplox_person_day_access_schedule_2_detail drop column stop_office',0,'OK','',''),
(556,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_generally_open\')','',597,'2019-02-25 18:36:23','\0','add column cw_chiplox_person_day_access_schedule_2_detail.activate_generally_open','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_chiplox_person_day_access_schedule_2_detail add activate_generally_open BIT','alter table cw_chiplox_person_day_access_schedule_2_detail add column activate_generally_open BIT',0,'condition is false','',''),
(557,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_generally_open\')','',598,'2019-02-25 18:36:23','\0','init cw_chiplox_person_day_access_schedule_2_detail.activate_generally_open = 0','','2019-02-25 18:36:25','2019-02-25 18:36:25','','update cw_chiplox_person_day_access_schedule_2_detail set activate_generally_open = 0 where activate_generally_open is null','update cw_chiplox_person_day_access_schedule_2_detail set activate_generally_open = 0 where activate_generally_open is null',0,'OK','',''),
(558,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'start_generally_open\')','',599,'2019-02-25 18:36:23','\0','drop cw_chiplox_person_day_access_schedule_2_detail.start_generally_open','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_chiplox_person_day_access_schedule_2_detail drop column start_generally_open','alter table cw_chiplox_person_day_access_schedule_2_detail drop column start_generally_open',0,'OK','',''),
(559,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'deactivate_generally_open\')','',600,'2019-02-25 18:36:23','\0','add column cw_chiplox_person_day_access_schedule_2_detail.deactivate_generally_open','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_chiplox_person_day_access_schedule_2_detail add deactivate_generally_open BIT','alter table cw_chiplox_person_day_access_schedule_2_detail add column deactivate_generally_open BIT',0,'condition is false','',''),
(560,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'deactivate_generally_open\')','',601,'2019-02-25 18:36:23','\0','init cw_chiplox_person_day_access_schedule_2_detail.deactivate_generally_open = 0','','2019-02-25 18:36:25','2019-02-25 18:36:25','','update cw_chiplox_person_day_access_schedule_2_detail set deactivate_generally_open = 0 where deactivate_generally_open is null','update cw_chiplox_person_day_access_schedule_2_detail set deactivate_generally_open = 0 where deactivate_generally_open is null',0,'OK','',''),
(561,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'stop_generally_open\')','',602,'2019-02-25 18:36:24','\0','drop cw_chiplox_person_day_access_schedule_2_detail.stop_generally_open','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_chiplox_person_day_access_schedule_2_detail drop column stop_generally_open','alter table cw_chiplox_person_day_access_schedule_2_detail drop column stop_generally_open',0,'OK','',''),
(562,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_alarmsystem\')','',603,'2019-02-25 18:36:24','\0','add column cw_chiplox_person_day_access_schedule_2_detail.activate_alarmsystem','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_chiplox_person_day_access_schedule_2_detail add activate_alarmsystem BIT','alter table cw_chiplox_person_day_access_schedule_2_detail add column activate_alarmsystem BIT',0,'condition is false','',''),
(563,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_alarmsystem\')','',604,'2019-02-25 18:36:24','\0','init cw_chiplox_person_day_access_schedule_2_detail.activate_alarmsystem = 0','','2019-02-25 18:36:25','2019-02-25 18:36:25','','update cw_chiplox_person_day_access_schedule_2_detail set activate_alarmsystem = 0 where activate_alarmsystem is null','update cw_chiplox_person_day_access_schedule_2_detail set activate_alarmsystem = 0 where activate_alarmsystem is null',0,'OK','',''),
(564,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'start_alarmsystem\')','',605,'2019-02-25 18:36:24','\0','drop cw_chiplox_person_day_access_schedule_2_detail.start_alarmsystem','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_chiplox_person_day_access_schedule_2_detail drop column start_alarmsystem','alter table cw_chiplox_person_day_access_schedule_2_detail drop column start_alarmsystem',0,'condition is false','',''),
(565,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'deactivate_alarmsystem\')','',606,'2019-02-25 18:36:24','\0','add column cw_chiplox_person_day_access_schedule_2_detail.deactivate_alarmsystem','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_chiplox_person_day_access_schedule_2_detail add deactivate_alarmsystem BIT','alter table cw_chiplox_person_day_access_schedule_2_detail add column deactivate_alarmsystem BIT',0,'condition is false','',''),
(566,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'deactivate_alarmsystem\')','',607,'2019-02-25 18:36:24','\0','init cw_chiplox_person_day_access_schedule_2_detail.deactivate_alarmsystem = 0','','2019-02-25 18:36:25','2019-02-25 18:36:25','','update cw_chiplox_person_day_access_schedule_2_detail set deactivate_alarmsystem = 0 where deactivate_alarmsystem is null','update cw_chiplox_person_day_access_schedule_2_detail set deactivate_alarmsystem = 0 where deactivate_alarmsystem is null',0,'OK','',''),
(567,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'stop_alarmsystem\')','',608,'2019-02-25 18:36:24','\0','drop cw_chiplox_person_day_access_schedule_2_detail.stop_alarmsystem','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_chiplox_person_day_access_schedule_2_detail drop column stop_alarmsystem','alter table cw_chiplox_person_day_access_schedule_2_detail drop column stop_alarmsystem',0,'condition is false','',''),
(568,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_office_with_end_pincode_waiting_period\')','',609,'2019-02-25 18:36:24','\0','add column cw_terminal_chiplox.activate_office_with_end_pincode_waiting_period','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_terminal_chiplox add activate_office_with_end_pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column activate_office_with_end_pincode_waiting_period INTEGER',0,'condition is false','',''),
(569,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_office_with_end_pincode_waiting_period\')','',610,'2019-02-25 18:36:24','\0','init cw_terminal_chiplox.activate_office_with_end_pincode_waiting_period = 0','','2019-02-25 18:36:25','2019-02-25 18:36:25','','update cw_terminal_chiplox set activate_office_with_end_pincode_waiting_period = 0 where activate_office_with_end_pincode_waiting_period is null','update cw_terminal_chiplox set activate_office_with_end_pincode_waiting_period = 0 where activate_office_with_end_pincode_waiting_period is null',0,'OK','',''),
(570,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_office_with_end\')','',611,'2019-02-25 18:36:24','\0','add column cw_chiplox_person_day_access_schedule_2_detail.activate_office_with_end','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_chiplox_person_day_access_schedule_2_detail add activate_office_with_end BIT','alter table cw_chiplox_person_day_access_schedule_2_detail add column activate_office_with_end BIT',0,'condition is false','',''),
(571,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_office_with_end\')','',612,'2019-02-25 18:36:24','\0','init cw_chiplox_person_day_access_schedule_2_detail.activate_office_with_end = 0','','2019-02-25 18:36:25','2019-02-25 18:36:25','','update cw_chiplox_person_day_access_schedule_2_detail set activate_office_with_end = 0 where activate_office_with_end is null','update cw_chiplox_person_day_access_schedule_2_detail set activate_office_with_end = 0 where activate_office_with_end is null',0,'OK','',''),
(572,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'end_of_office_time\')','',613,'2019-02-25 18:36:24','\0','add column cw_chiplox_person_day_access_schedule_2_detail.end_of_office_time','','2019-02-25 18:36:25','2019-02-25 18:36:25','','alter table cw_chiplox_person_day_access_schedule_2_detail add end_of_office_time INTEGER','alter table cw_chiplox_person_day_access_schedule_2_detail add column end_of_office_time INTEGER',0,'condition is false','',''),
(573,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'end_of_office_time\')','',614,'2019-02-25 18:36:24','\0','init cw_chiplox_person_day_access_schedule_2_detail.end_of_office_time = 0','','2019-02-25 18:36:25','2019-02-25 18:36:25','','update cw_chiplox_person_day_access_schedule_2_detail set end_of_office_time = 0 where end_of_office_time is null','update cw_chiplox_person_day_access_schedule_2_detail set end_of_office_time = 0 where end_of_office_time is null',0,'OK','',''),
(574,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_gantner\', \'number_of_persons\')','',616,'2019-02-25 18:36:24','\0','init cw_terminal_gantner.number_of_persons = 0','','2019-02-25 18:36:25','2019-02-25 18:36:25','','update cw_terminal_gantner set number_of_persons = 0 where number_of_persons is null','update cw_terminal_gantner set number_of_persons = 0 where number_of_persons is null',0,'OK','',''),
(575,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_door_day_access_schedule_2_detail\', \'active_from_first_access\')','',617,'2019-02-25 18:36:24','\0','drop cw_chiplox_door_day_access_schedule_2_detail.active_from_first_access','','2019-02-25 18:36:26','2019-02-25 18:36:26','','alter table cw_chiplox_door_day_access_schedule_2_detail drop column active_from_first_access','alter table cw_chiplox_door_day_access_schedule_2_detail drop column active_from_first_access',0,'OK','',''),
(576,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal\', \'snr\')','',618,'2019-02-25 18:36:24','\0','alter table cw_terminal alter column snr VARCHAR(255)','','2019-02-25 18:36:26','2019-02-25 18:36:26','','alter table cw_terminal alter column snr VARCHAR(255)','alter table cw_terminal modify column snr VARCHAR(255)',0,'OK','',''),
(577,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'create_project\')','',619,'2019-02-25 18:36:24','\0','init cw_booking_code_2_detail.create_project = 0','','2019-02-25 18:36:26','2019-02-25 18:36:26','','update cw_booking_code_2_detail set create_project = 0 where create_project is null','update cw_booking_code_2_detail set create_project = 0 where create_project is null',0,'OK','',''),
(578,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'create_order\')','',620,'2019-02-25 18:36:24','\0','init cw_booking_code_2_detail.create_order = 0','','2019-02-25 18:36:26','2019-02-25 18:36:26','','update cw_booking_code_2_detail set create_order = 0 where create_order is null','update cw_booking_code_2_detail set create_order = 0 where create_order is null',0,'OK','',''),
(579,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'create_order_item\')','',621,'2019-02-25 18:36:24','\0','init cw_booking_code_2_detail.create_order_item = 0','','2019-02-25 18:36:26','2019-02-25 18:36:26','','update cw_booking_code_2_detail set create_order_item = 0 where create_order_item is null','update cw_booking_code_2_detail set create_order_item = 0 where create_order_item is null',0,'OK','',''),
(580,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'create_cost_unit\')','',622,'2019-02-25 18:36:24','\0','init cw_booking_code_2_detail.create_cost_unit = 0','','2019-02-25 18:36:26','2019-02-25 18:36:26','','update cw_booking_code_2_detail set create_cost_unit = 0 where create_cost_unit is null','update cw_booking_code_2_detail set create_cost_unit = 0 where create_cost_unit is null',0,'OK','',''),
(581,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'create_machine\')','',623,'2019-02-25 18:36:24','\0','init cw_booking_code_2_detail.create_machine = 0','','2019-02-25 18:36:26','2019-02-25 18:36:26','','update cw_booking_code_2_detail set create_machine = 0 where create_machine is null','update cw_booking_code_2_detail set create_machine = 0 where create_machine is null',0,'OK','',''),
(582,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'create_workplace\')','',624,'2019-02-25 18:36:24','\0','init cw_booking_code_2_detail.create_workplace = 0','','2019-02-25 18:36:26','2019-02-25 18:36:26','','update cw_booking_code_2_detail set create_workplace = 0 where create_workplace is null','update cw_booking_code_2_detail set create_workplace = 0 where create_workplace is null',0,'OK','',''),
(583,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'create_workprocess\')','',625,'2019-02-25 18:36:24','\0','init cw_booking_code_2_detail.create_workprocess = 0','','2019-02-25 18:36:26','2019-02-25 18:36:26','','update cw_booking_code_2_detail set create_workprocess = 0 where create_workprocess is null','update cw_booking_code_2_detail set create_workprocess = 0 where create_workprocess is null',0,'OK','',''),
(584,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'use_absence\')','',626,'2019-02-25 18:36:24','\0','init cw_booking_code_2_detail.use_absence = 0','','2019-02-25 18:36:26','2022-11-04 07:48:17','','update cw_booking_code_2_detail set use_absence = 1 where use_absence is null or use_absence = 0','update cw_booking_code_2_detail set use_absence = 1 where use_absence is null or use_absence = 0',0,'OK','',''),
(585,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'use_project\')','',627,'2019-02-25 18:36:24','\0','init cw_booking_code_2_detail.use_project = 0','','2019-02-25 18:36:26','2019-02-25 18:36:26','','update cw_booking_code_2_detail set use_project = 0 where use_project is null','update cw_booking_code_2_detail set use_project = 0 where use_project is null',0,'OK','',''),
(586,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'use_order\')','',628,'2019-02-25 18:36:24','\0','init cw_booking_code_2_detail.use_order = 0','','2019-02-25 18:36:26','2019-02-25 18:36:26','','update cw_booking_code_2_detail set use_order = 0 where use_order is null','update cw_booking_code_2_detail set use_order = 0 where use_order is null',0,'OK','',''),
(587,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'use_order_item\')','',629,'2019-02-25 18:36:24','\0','init cw_booking_code_2_detail.use_order_item = 0','','2019-02-25 18:36:26','2019-02-25 18:36:26','','update cw_booking_code_2_detail set use_order_item = 0 where use_order_item is null','update cw_booking_code_2_detail set use_order_item = 0 where use_order_item is null',0,'OK','',''),
(588,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'use_cost_unit\')','',630,'2019-02-25 18:36:24','\0','init cw_booking_code_2_detail.use_cost_unit = 0','','2019-02-25 18:36:26','2019-02-25 18:36:26','','update cw_booking_code_2_detail set use_cost_unit = 0 where use_cost_unit is null','update cw_booking_code_2_detail set use_cost_unit = 0 where use_cost_unit is null',0,'OK','',''),
(589,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'use_machine\')','',631,'2019-02-25 18:36:24','\0','init cw_booking_code_2_detail.use_machine = 0','','2019-02-25 18:36:26','2019-02-25 18:36:26','','update cw_booking_code_2_detail set use_machine = 0 where use_machine is null','update cw_booking_code_2_detail set use_machine = 0 where use_machine is null',0,'OK','',''),
(590,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'use_workplace\')','',632,'2019-02-25 18:36:24','\0','init cw_booking_code_2_detail.use_workplace = 0','','2019-02-25 18:36:26','2019-02-25 18:36:26','','update cw_booking_code_2_detail set use_workplace = 0 where use_workplace is null','update cw_booking_code_2_detail set use_workplace = 0 where use_workplace is null',0,'OK','',''),
(591,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'use_workprocess\')','',633,'2019-02-25 18:36:24','\0','init cw_booking_code_2_detail.use_workprocess = 0','','2019-02-25 18:36:26','2019-02-25 18:36:26','','update cw_booking_code_2_detail set use_workprocess = 0 where use_workprocess is null','update cw_booking_code_2_detail set use_workprocess = 0 where use_workprocess is null',0,'OK','',''),
(592,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_keyflex_door_day_access_schedule\', \'active_from_first_access\')','',634,'2019-02-25 18:36:24','\0','drop cw_keyflex_door_day_access_schedule.active_from_first_access','','2019-02-25 18:36:26','2019-02-25 18:36:26','','alter table cw_keyflex_door_day_access_schedule drop column active_from_first_access','alter table cw_keyflex_door_day_access_schedule drop column active_from_first_access',0,'condition is false','',''),
(593,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_tmc\', \'identification_format_enum\')','',635,'2019-05-22 11:16:48','\0','init cw_terminal_tmc.identification_format_enum = \'DECIMAL\'','','2019-05-22 11:16:48','2019-05-22 11:16:48','','update cw_terminal_tmc set identification_format_enum = \'DECIMAL\' where identification_format_enum is null','update cw_terminal_tmc set identification_format_enum = \'DECIMAL\' where identification_format_enum is null',0,'OK','',''),
(594,1,'','',636,'2019-05-22 11:16:48','\0','clean systemConfiguration','','2019-05-22 11:16:48','2019-05-22 11:16:48','','','',0,'OK','','import at.clockwork.system.service.SystemConfigurationService\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def systemConfigurationService = Holders.grailsApplication.mainContext.getBean \'systemConfigurationService\'\n\n	def run(def connection, def dataSourceFields) {\n\n		systemConfigurationService.deleteByCwID(1502)\n\n		true\n	}\n}'),
(595,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_time_time_model\', \'only_person2time_time_model2time_planning\')','',637,'2019-05-22 11:16:48','\0','add column cw_person_2_time_time_model.only_person2time_time_model2time_planning','','2019-05-22 11:16:48','2019-05-22 11:16:48','','alter table cw_person_2_time_time_model add only_person2time_time_model2time_planning BIT','alter table cw_person_2_time_time_model add column only_person2time_time_model2time_planning BIT',0,'condition is false','',''),
(596,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_time_time_model\', \'only_person2time_time_model2time_planning\')','',638,'2019-05-22 11:16:48','\0','init cw_person_2_time_time_model.only_person2time_time_model2time_planning = 0','','2019-05-22 11:16:48','2019-05-22 11:16:48','','update cw_person_2_time_time_model set only_person2time_time_model2time_planning = 0 where only_person2time_time_model2time_planning is null','update cw_person_2_time_time_model set only_person2time_time_model2time_planning = 0 where only_person2time_time_model2time_planning is null',0,'OK','',''),
(597,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_work_period\', \'generated\')','',639,'2019-05-22 11:16:48','\0','init cw_work_period.generated = 0','','2019-05-22 11:16:48','2019-05-22 11:16:48','','update cw_work_period set generated = 0 where generated is null','update cw_work_period set generated = 0 where generated is null',0,'OK','',''),
(598,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_work_time_manual\', \'generated\')','',640,'2019-05-22 11:16:48','\0','init cw_work_time_manual.generated = 0','','2019-05-22 11:16:48','2019-05-22 11:16:48','','update cw_work_time_manual set generated = 0 where generated is null','update cw_work_time_manual set generated = 0 where generated is null',0,'OK','',''),
(599,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'present_at_work\')','',641,'2019-05-22 11:16:48','\0','add column cw_absence.present_at_work','','2019-05-22 11:16:48','2019-05-22 11:16:48','','alter table cw_absence add present_at_work BIT','alter table cw_absence add column present_at_work BIT',0,'condition is false','',''),
(600,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'present_at_work\')','',642,'2019-05-22 11:16:48','\0','init cw_absence.present_at_work = 0','','2019-05-22 11:16:48','2019-05-22 11:16:48','','update cw_absence set present_at_work = 0 where present_at_work is null','update cw_absence set present_at_work = 0 where present_at_work is null',0,'OK','',''),
(601,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type_data_initial\', \'date_created\')','',643,'2019-06-10 23:55:01','\0','init cw_time_time_type_data_initial.date_created','','2019-06-10 23:55:02','2020-02-04 10:54:25','','update cw_time_time_type_data_initial set date_created = \'2019-01-01\', last_updated = \'2019-01-01\' where date_created is null or last_updated is null','update cw_time_time_type_data_initial set date_created = \'2019-01-01\', last_updated = \'2019-01-01\' where date_created = \'0000-00-00\' or last_updated = \'0000-00-00\'',0,'OK','',''),
(602,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_2_identification_type\', \'type_value\')','',644,'2019-06-10 23:55:01','\0','add column cw_terminal_2_identification_type.type_value','','2019-06-10 23:55:02','2019-06-10 23:55:02','','alter table cw_terminal_2_identification_type add type_value varchar(255) NULL','alter table cw_terminal_2_identification_type add type_value varchar(255)',0,'condition is false','',''),
(603,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_2_identification_type\', \'type_value\')','',645,'2019-06-10 23:55:01','\0','init cw_terminal_2_identification_type.type_value = \'\'','','2019-06-10 23:55:02','2019-06-10 23:55:02','','update cw_terminal_2_identification_type set type_value = \'\' where type_value is null','update cw_terminal_2_identification_type set type_value = \'\' where type_value is null',0,'OK','',''),
(604,2,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'credit\')','',646,'2019-06-10 23:55:01','\0','add column cw_time_time_type.credit','','2019-06-10 23:55:02','2021-04-02 17:53:57','','alter table cw_time_time_type add credit FLOAT(53)','alter table cw_time_time_type add column credit DOUBLE',0,'condition is false','',''),
(605,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'credit\')','',647,'2019-06-10 23:55:01','\0','init cw_time_time_type.credit = 0','','2019-06-10 23:55:02','2019-06-10 23:55:02','','update cw_time_time_type set credit = 0 where credit is null','update cw_time_time_type set credit = 0 where credit is null',0,'OK','',''),
(606,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'no_minus_time\')','',648,'2019-06-10 23:55:01','\0','add column cw_time_time_type.no_minus_time','','2019-06-10 23:55:02','2019-06-10 23:55:02','','alter table cw_time_time_type add no_minus_time BIT','alter table cw_time_time_type add column no_minus_time BIT',0,'condition is false','',''),
(607,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'no_minus_time\')','',649,'2019-06-10 23:55:01','\0','init cw_time_time_type.no_minus_time = 0','','2019-06-10 23:55:02','2019-06-10 23:55:02','','update cw_time_time_type set no_minus_time = 0 where no_minus_time is null','update cw_time_time_type set no_minus_time = 0 where no_minus_time is null',0,'OK','',''),
(608,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_function1pincode_waiting_period\')','',650,'2020-02-04 10:54:26','\0','add column cw_terminal_chiplox.activate_function1pincode_waiting_period','','2020-02-04 10:54:26','2020-02-04 10:54:26','','alter table cw_terminal_chiplox add activate_function1pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column activate_function1pincode_waiting_period INTEGER',0,'condition is false','',''),
(609,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_function1pincode_waiting_period\')','',651,'2020-02-04 10:54:26','\0','init cw_terminal_chiplox.activate_function1pincode_waiting_period = 0','','2020-02-04 10:54:26','2020-02-04 10:54:26','','update cw_terminal_chiplox set activate_function1pincode_waiting_period = 0 where activate_function1pincode_waiting_period is null','update cw_terminal_chiplox set activate_function1pincode_waiting_period = 0 where activate_function1pincode_waiting_period is null',0,'OK','',''),
(610,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_function1pincode_time\')','',652,'2020-02-04 10:54:26','\0','add column cw_terminal_chiplox.activate_function1pincode_time','','2020-02-04 10:54:26','2020-02-04 10:54:26','','alter table cw_terminal_chiplox add activate_function1pincode_time INTEGER','alter table cw_terminal_chiplox add column activate_function1pincode_time INTEGER',0,'condition is false','',''),
(611,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_function1pincode_time\')','',653,'2020-02-04 10:54:26','\0','init cw_terminal_chiplox.activate_function1pincode_time = 0','','2020-02-04 10:54:26','2020-02-04 10:54:26','','update cw_terminal_chiplox set activate_function1pincode_time = 0 where activate_function1pincode_time is null','update cw_terminal_chiplox set activate_function1pincode_time = 0 where activate_function1pincode_time is null',0,'OK','',''),
(612,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_function1with_end_pincode_waiting_period\')','',654,'2020-02-04 10:54:26','\0','add column cw_terminal_chiplox.activate_function1with_end_pincode_waiting_period','','2020-02-04 10:54:27','2020-02-04 10:54:27','','alter table cw_terminal_chiplox add activate_function1with_end_pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column activate_function1with_end_pincode_waiting_period INTEGER',0,'condition is false','',''),
(613,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_function1with_end_pincode_waiting_period\')','',655,'2020-02-04 10:54:26','\0','init cw_terminal_chiplox.activate_function1with_end_pincode_waiting_period = 0','','2020-02-04 10:54:27','2020-02-04 10:54:27','','update cw_terminal_chiplox set activate_function1with_end_pincode_waiting_period = 0 where activate_function1with_end_pincode_waiting_period is null','update cw_terminal_chiplox set activate_function1with_end_pincode_waiting_period = 0 where activate_function1with_end_pincode_waiting_period is null',0,'OK','',''),
(614,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'deactivate_function1pincode_waiting_period\')','',656,'2020-02-04 10:54:26','\0','add column cw_terminal_chiplox.deactivate_function1pincode_waiting_period','','2020-02-04 10:54:27','2020-02-04 10:54:27','','alter table cw_terminal_chiplox add deactivate_function1pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column deactivate_function1pincode_waiting_period INTEGER',0,'condition is false','',''),
(615,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'deactivate_function1pincode_waiting_period\')','',657,'2020-02-04 10:54:26','\0','init cw_terminal_chiplox.deactivate_function1pincode_waiting_period = 0','','2020-02-04 10:54:27','2020-02-04 10:54:27','','update cw_terminal_chiplox set deactivate_function1pincode_waiting_period = 0 where deactivate_function1pincode_waiting_period is null','update cw_terminal_chiplox set deactivate_function1pincode_waiting_period = 0 where deactivate_function1pincode_waiting_period is null',0,'OK','',''),
(616,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_function2pincode_waiting_period\')','',658,'2020-02-04 10:54:26','\0','add column cw_terminal_chiplox.activate_function2pincode_waiting_period','','2020-02-04 10:54:27','2020-02-04 10:54:27','','alter table cw_terminal_chiplox add activate_function2pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column activate_function2pincode_waiting_period INTEGER',0,'condition is false','',''),
(617,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_function2pincode_waiting_period\')','',659,'2020-02-04 10:54:26','\0','init cw_terminal_chiplox.activate_function2pincode_waiting_period = 0','','2020-02-04 10:54:27','2020-02-04 10:54:27','','update cw_terminal_chiplox set activate_function2pincode_waiting_period = 0 where activate_function2pincode_waiting_period is null','update cw_terminal_chiplox set activate_function2pincode_waiting_period = 0 where activate_function2pincode_waiting_period is null',0,'OK','',''),
(618,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_function2pincode_time\')','',660,'2020-02-04 10:54:26','\0','add column cw_terminal_chiplox.activate_function2pincode_time','','2020-02-04 10:54:27','2020-02-04 10:54:27','','alter table cw_terminal_chiplox add activate_function2pincode_time INTEGER','alter table cw_terminal_chiplox add column activate_function2pincode_time INTEGER',0,'condition is false','',''),
(619,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_function2pincode_time\')','',661,'2020-02-04 10:54:26','\0','init cw_terminal_chiplox.activate_function2pincode_time = 0','','2020-02-04 10:54:27','2020-02-04 10:54:27','','update cw_terminal_chiplox set activate_function2pincode_time = 0 where activate_function2pincode_time is null','update cw_terminal_chiplox set activate_function2pincode_time = 0 where activate_function2pincode_time is null',0,'OK','',''),
(620,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_function2with_end_pincode_waiting_period\')','',662,'2020-02-04 10:54:26','\0','add column cw_terminal_chiplox.activate_function2with_end_pincode_waiting_period','','2020-02-04 10:54:27','2020-02-04 10:54:27','','alter table cw_terminal_chiplox add activate_function2with_end_pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column activate_function2with_end_pincode_waiting_period INTEGER',0,'condition is false','',''),
(621,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_function2with_end_pincode_waiting_period\')','',663,'2020-02-04 10:54:26','\0','init cw_terminal_chiplox.activate_function2with_end_pincode_waiting_period = 0','','2020-02-04 10:54:27','2020-02-04 10:54:27','','update cw_terminal_chiplox set activate_function2with_end_pincode_waiting_period = 0 where activate_function2with_end_pincode_waiting_period is null','update cw_terminal_chiplox set activate_function2with_end_pincode_waiting_period = 0 where activate_function2with_end_pincode_waiting_period is null',0,'OK','',''),
(622,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'deactivate_function2pincode_waiting_period\')','',664,'2020-02-04 10:54:26','\0','add column cw_terminal_chiplox.deactivate_function2pincode_waiting_period','','2020-02-04 10:54:27','2020-02-04 10:54:27','','alter table cw_terminal_chiplox add deactivate_function2pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column deactivate_function2pincode_waiting_period INTEGER',0,'condition is false','',''),
(623,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'deactivate_function2pincode_waiting_period\')','',665,'2020-02-04 10:54:26','\0','init cw_terminal_chiplox.deactivate_function2pincode_waiting_period = 0','','2020-02-04 10:54:27','2020-02-04 10:54:27','','update cw_terminal_chiplox set deactivate_function2pincode_waiting_period = 0 where deactivate_function2pincode_waiting_period is null','update cw_terminal_chiplox set deactivate_function2pincode_waiting_period = 0 where deactivate_function2pincode_waiting_period is null',0,'OK','',''),
(624,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_function1\')','',666,'2020-02-04 10:54:26','\0','add column cw_chiplox_person_day_access_schedule_2_detail.activate_function1','','2020-02-04 10:54:27','2020-02-04 10:54:27','','alter table cw_chiplox_person_day_access_schedule_2_detail add activate_function1 BIT','alter table cw_chiplox_person_day_access_schedule_2_detail add column activate_function1 BIT',0,'condition is false','',''),
(625,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_function1\')','',667,'2020-02-04 10:54:26','\0','init cw_chiplox_person_day_access_schedule_2_detail.activate_function1 = 0','','2020-02-04 10:54:27','2020-02-04 10:54:27','','update cw_chiplox_person_day_access_schedule_2_detail set activate_function1 = 0 where activate_function1 is null','update cw_chiplox_person_day_access_schedule_2_detail set activate_function1 = 0 where activate_function1 is null',0,'OK','',''),
(626,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_function1with_end\')','',668,'2020-02-04 10:54:26','\0','add column cw_chiplox_person_day_access_schedule_2_detail.activate_function1with_end','','2020-02-04 10:54:27','2020-02-04 10:54:27','','alter table cw_chiplox_person_day_access_schedule_2_detail add activate_function1with_end BIT','alter table cw_chiplox_person_day_access_schedule_2_detail add column activate_function1with_end BIT',0,'condition is false','',''),
(627,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_function1with_end\')','',669,'2020-02-04 10:54:26','\0','init cw_chiplox_person_day_access_schedule_2_detail.activate_function1with_end = 0','','2020-02-04 10:54:27','2020-02-04 10:54:27','','update cw_chiplox_person_day_access_schedule_2_detail set activate_function1with_end = 0 where activate_function1with_end is null','update cw_chiplox_person_day_access_schedule_2_detail set activate_function1with_end = 0 where activate_function1with_end is null',0,'OK','',''),
(628,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'end_of_function1time\')','',670,'2020-02-04 10:54:26','\0','add column cw_chiplox_person_day_access_schedule_2_detail.end_of_function1time','','2020-02-04 10:54:27','2020-02-04 10:54:27','','alter table cw_chiplox_person_day_access_schedule_2_detail add end_of_function1time INTEGER','alter table cw_chiplox_person_day_access_schedule_2_detail add column end_of_function1time INTEGER',0,'condition is false','',''),
(629,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'end_of_function1time\')','',671,'2020-02-04 10:54:26','\0','init cw_chiplox_person_day_access_schedule_2_detail.end_of_function1time = 0','','2020-02-04 10:54:27','2020-02-04 10:54:27','','update cw_chiplox_person_day_access_schedule_2_detail set end_of_function1time = 0 where end_of_function1time is null','update cw_chiplox_person_day_access_schedule_2_detail set end_of_function1time = 0 where end_of_function1time is null',0,'OK','',''),
(630,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'deactivate_function1\')','',672,'2020-02-04 10:54:26','\0','add column cw_chiplox_person_day_access_schedule_2_detail.deactivate_function1','','2020-02-04 10:54:27','2020-02-04 10:54:27','','alter table cw_chiplox_person_day_access_schedule_2_detail add deactivate_function1 BIT','alter table cw_chiplox_person_day_access_schedule_2_detail add column deactivate_function1 BIT',0,'condition is false','',''),
(631,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'deactivate_function1\')','',673,'2020-02-04 10:54:26','\0','init cw_chiplox_person_day_access_schedule_2_detail.deactivate_function1 = 0','','2020-02-04 10:54:27','2020-02-04 10:54:27','','update cw_chiplox_person_day_access_schedule_2_detail set deactivate_function1 = 0 where deactivate_function1 is null','update cw_chiplox_person_day_access_schedule_2_detail set deactivate_function1 = 0 where deactivate_function1 is null',0,'OK','',''),
(632,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_function2\')','',674,'2020-02-04 10:54:26','\0','add column cw_chiplox_person_day_access_schedule_2_detail.activate_function2','','2020-02-04 10:54:27','2020-02-04 10:54:27','','alter table cw_chiplox_person_day_access_schedule_2_detail add activate_function2 BIT','alter table cw_chiplox_person_day_access_schedule_2_detail add column activate_function2 BIT',0,'condition is false','',''),
(633,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_function2\')','',675,'2020-02-04 10:54:26','\0','init cw_chiplox_person_day_access_schedule_2_detail.activate_function2 = 0','','2020-02-04 10:54:27','2020-02-04 10:54:27','','update cw_chiplox_person_day_access_schedule_2_detail set activate_function2 = 0 where activate_function2 is null','update cw_chiplox_person_day_access_schedule_2_detail set activate_function2 = 0 where activate_function2 is null',0,'OK','',''),
(634,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_function2with_end\')','',676,'2020-02-04 10:54:26','\0','add column cw_chiplox_person_day_access_schedule_2_detail.activate_function2with_end','','2020-02-04 10:54:27','2020-02-04 10:54:27','','alter table cw_chiplox_person_day_access_schedule_2_detail add activate_function2with_end BIT','alter table cw_chiplox_person_day_access_schedule_2_detail add column activate_function2with_end BIT',0,'condition is false','',''),
(635,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_function2with_end\')','',677,'2020-02-04 10:54:26','\0','init cw_chiplox_person_day_access_schedule_2_detail.activate_function2with_end = 0','','2020-02-04 10:54:27','2020-02-04 10:54:27','','update cw_chiplox_person_day_access_schedule_2_detail set activate_function2with_end = 0 where activate_function2with_end is null','update cw_chiplox_person_day_access_schedule_2_detail set activate_function2with_end = 0 where activate_function2with_end is null',0,'OK','',''),
(636,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'end_of_function2time\')','',678,'2020-02-04 10:54:26','\0','add column cw_chiplox_person_day_access_schedule_2_detail.end_of_function2time','','2020-02-04 10:54:27','2020-02-04 10:54:27','','alter table cw_chiplox_person_day_access_schedule_2_detail add end_of_function2time INTEGER','alter table cw_chiplox_person_day_access_schedule_2_detail add column end_of_function2time INTEGER',0,'condition is false','',''),
(637,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'end_of_function2time\')','',679,'2020-02-04 10:54:26','\0','init cw_chiplox_person_day_access_schedule_2_detail.end_of_function2time = 0','','2020-02-04 10:54:27','2020-02-04 10:54:27','','update cw_chiplox_person_day_access_schedule_2_detail set end_of_function2time = 0 where end_of_function2time is null','update cw_chiplox_person_day_access_schedule_2_detail set end_of_function2time = 0 where end_of_function2time is null',0,'OK','',''),
(638,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'deactivate_function2\')','',680,'2020-02-04 10:54:26','\0','add column cw_chiplox_person_day_access_schedule_2_detail.deactivate_function2','','2020-02-04 10:54:27','2020-02-04 10:54:27','','alter table cw_chiplox_person_day_access_schedule_2_detail add deactivate_function2 BIT','alter table cw_chiplox_person_day_access_schedule_2_detail add column deactivate_function2 BIT',0,'condition is false','',''),
(639,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'deactivate_function2\')','',681,'2020-02-04 10:54:26','\0','init cw_chiplox_person_day_access_schedule_2_detail.deactivate_function2 = 0','','2020-02-04 10:54:27','2020-02-04 10:54:27','','update cw_chiplox_person_day_access_schedule_2_detail set deactivate_function2 = 0 where deactivate_function2 is null','update cw_chiplox_person_day_access_schedule_2_detail set deactivate_function2 = 0 where deactivate_function2 is null',0,'OK','',''),
(640,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal\', \'snr\')','',682,'2020-02-04 10:54:26','\0','init cw_terminal.snr = \'\'','','2020-02-04 10:54:27','2020-02-04 10:54:27','','update cw_terminal set snr = \'\' where snr is null','update cw_terminal set snr = \'\' where snr is null',0,'OK','',''),
(641,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_event_base_data\', \'counter\')','',683,'2020-02-04 10:54:26','\0','add column cw_event_base_data.counter','','2020-02-04 10:54:27','2020-02-04 10:54:27','','alter table cw_event_base_data add counter INTEGER','alter table cw_event_base_data add column counter INTEGER',0,'condition is false','',''),
(642,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_event_base_data\', \'counter\')','',684,'2020-02-04 10:54:26','\0','init cw_event_base_data.counter = 0','','2020-02-04 10:54:27','2020-02-04 10:54:27','','update cw_event_base_data set counter = 0 where counter is null','update cw_event_base_data set counter = 0 where counter is null',0,'OK','',''),
(643,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_plan\', \'part_time\')','',685,'2020-02-04 10:54:26','\0','add column cw_time_time_plan.part_time','','2020-02-04 10:54:27','2020-02-04 10:54:27','','alter table cw_time_time_plan add part_time BIT','alter table cw_time_time_plan add column part_time BIT',0,'condition is false','',''),
(644,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_plan\', \'part_time\')','',686,'2020-02-04 10:54:26','\0','init cw_time_time_plan.part_time = 0','','2020-02-04 10:54:27','2020-02-04 10:54:27','','update cw_time_time_plan set part_time = 0 where part_time is null','update cw_time_time_plan set part_time = 0 where part_time is null',0,'OK','',''),
(645,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_system_configuration\', \'deleted\')','',-2,'2020-02-04 10:54:26','\0','init cw_system_configuration.deleted = 0','','2020-02-04 10:54:26','2020-02-04 10:54:26','','update cw_system_configuration set deleted = 0 where deleted is null','update cw_system_configuration set deleted = 0 where deleted is null',0,'OK','',''),
(646,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_access_schedule_mapping\', \'person_access_schedule_id\')','',688,'2020-02-04 10:54:26','\0','drop cw_person_access_schedule_mapping.person_access_schedule_id','','2020-02-04 10:54:27','2020-02-04 10:54:27','','alter table cw_person_access_schedule_mapping drop column person_access_schedule_id','alter table cw_person_access_schedule_mapping drop column person_access_schedule_id',0,'OK','',''),
(647,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_key_flex\', \'max_access_schedules\')','',689,'2020-02-04 10:54:26','\0','init cw_terminal_key_flex.max_access_schedules = 20','','2020-02-04 10:54:27','2022-11-04 07:48:17','','update cw_terminal_key_flex set max_access_schedules = 20 where max_access_schedules is null or max_access_schedules = 0','update cw_terminal_key_flex set max_access_schedules = 20 where max_access_schedules is null or max_access_schedules = 0',0,'OK','',''),
(648,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_key_flex\', \'max_times_per_access_schedule\')','',690,'2020-02-04 10:54:26','\0','init cw_terminal_key_flex.max_times_per_access_schedule = 25','','2020-02-04 10:54:28','2022-11-04 07:48:17','','update cw_terminal_key_flex set max_times_per_access_schedule = 25 where max_times_per_access_schedule is null or max_times_per_access_schedule = 0','update cw_terminal_key_flex set max_times_per_access_schedule = 25 where max_times_per_access_schedule is null or max_times_per_access_schedule = 0',0,'OK','',''),
(649,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_key_flex\', \'max_public_holidays\')','',691,'2020-02-04 10:54:26','\0','init cw_terminal_key_flex.max_public_holidays = 50','','2020-02-04 10:54:28','2022-11-04 07:48:17','','update cw_terminal_key_flex set max_public_holidays = 50 where max_public_holidays is null or max_public_holidays = 0','update cw_terminal_key_flex set max_public_holidays = 50 where max_public_holidays is null or max_public_holidays = 0',0,'OK','',''),
(650,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_generally_close\')','',692,'2020-02-04 10:54:26','\0','add column cw_chiplox_person_day_access_schedule_2_detail.activate_generally_close','','2020-02-04 10:54:28','2020-02-04 10:54:28','','alter table cw_chiplox_person_day_access_schedule_2_detail add activate_generally_close BIT','alter table cw_chiplox_person_day_access_schedule_2_detail add column activate_generally_close BIT',0,'condition is false','',''),
(651,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_generally_close\')','',693,'2020-02-04 10:54:26','\0','init cw_chiplox_person_day_access_schedule_2_detail.activate_generally_close = 0','','2020-02-04 10:54:28','2020-02-04 10:54:28','','update cw_chiplox_person_day_access_schedule_2_detail set activate_generally_close = 0 where activate_generally_close is null','update cw_chiplox_person_day_access_schedule_2_detail set activate_generally_close = 0 where activate_generally_close is null',0,'OK','',''),
(652,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_generally_close_with_end\')','',694,'2020-02-04 10:54:26','\0','add column cw_chiplox_person_day_access_schedule_2_detail.activate_generally_close_with_end','','2020-02-04 10:54:28','2020-02-04 10:54:28','','alter table cw_chiplox_person_day_access_schedule_2_detail add activate_generally_close_with_end BIT','alter table cw_chiplox_person_day_access_schedule_2_detail add column activate_generally_close_with_end BIT',0,'condition is false','',''),
(653,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'activate_generally_close_with_end\')','',695,'2020-02-04 10:54:26','\0','init cw_chiplox_person_day_access_schedule_2_detail.activate_generally_close_with_end = 0','','2020-02-04 10:54:28','2020-02-04 10:54:28','','update cw_chiplox_person_day_access_schedule_2_detail set activate_generally_close_with_end = 0 where activate_generally_close_with_end is null','update cw_chiplox_person_day_access_schedule_2_detail set activate_generally_close_with_end = 0 where activate_generally_close_with_end is null',0,'OK','',''),
(654,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'end_of_generally_close_time\')','',696,'2020-02-04 10:54:26','\0','add column cw_chiplox_person_day_access_schedule_2_detail.end_of_generally_close_time','','2020-02-04 10:54:28','2020-02-04 10:54:28','','alter table cw_chiplox_person_day_access_schedule_2_detail add end_of_generally_close_time INTEGER','alter table cw_chiplox_person_day_access_schedule_2_detail add column end_of_generally_close_time INTEGER',0,'condition is false','',''),
(655,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'end_of_generally_close_time\')','',697,'2020-02-04 10:54:26','\0','init cw_chiplox_person_day_access_schedule_2_detail.end_of_generally_close_time = 0','','2020-02-04 10:54:28','2020-02-04 10:54:28','','update cw_chiplox_person_day_access_schedule_2_detail set end_of_generally_close_time = 0 where end_of_generally_close_time is null','update cw_chiplox_person_day_access_schedule_2_detail set end_of_generally_close_time = 0 where end_of_generally_close_time is null',0,'OK','',''),
(656,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'deactivate_generally_close\')','',698,'2020-02-04 10:54:26','\0','add column cw_chiplox_person_day_access_schedule_2_detail.deactivate_generally_close','','2020-02-04 10:54:28','2020-02-04 10:54:28','','alter table cw_chiplox_person_day_access_schedule_2_detail add deactivate_generally_close BIT','alter table cw_chiplox_person_day_access_schedule_2_detail add column deactivate_generally_close BIT',0,'condition is false','',''),
(657,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'deactivate_generally_close\')','',699,'2020-02-04 10:54:26','\0','init cw_chiplox_person_day_access_schedule_2_detail.deactivate_generally_close = 0','','2020-02-04 10:54:28','2020-02-04 10:54:28','','update cw_chiplox_person_day_access_schedule_2_detail set deactivate_generally_close = 0 where deactivate_generally_close is null','update cw_chiplox_person_day_access_schedule_2_detail set deactivate_generally_close = 0 where deactivate_generally_close is null',0,'OK','',''),
(658,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_generally_close_pincode_waiting_period\')','',700,'2020-02-04 10:54:26','\0','add column cw_terminal_chiplox.activate_generally_close_pincode_waiting_period','','2020-02-04 10:54:28','2020-02-04 10:54:28','','alter table cw_terminal_chiplox add activate_generally_close_pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column activate_generally_close_pincode_waiting_period INTEGER',0,'condition is false','',''),
(659,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_generally_close_pincode_waiting_period\')','',701,'2020-02-04 10:54:26','\0','init cw_terminal_chiplox.activate_generally_close_pincode_waiting_period = 0','','2020-02-04 10:54:28','2020-02-04 10:54:28','','update cw_terminal_chiplox set activate_generally_close_pincode_waiting_period = 0 where activate_generally_close_pincode_waiting_period is null','update cw_terminal_chiplox set activate_generally_close_pincode_waiting_period = 0 where activate_generally_close_pincode_waiting_period is null',0,'OK','',''),
(660,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_generally_close_with_end_pincode_waiting_period\')','',702,'2020-02-04 10:54:26','\0','add column cw_terminal_chiplox.activate_generally_close_with_end_pincode_waiting_period','','2020-02-04 10:54:28','2020-02-04 10:54:28','','alter table cw_terminal_chiplox add activate_generally_close_with_end_pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column activate_generally_close_with_end_pincode_waiting_period INTEGER',0,'condition is false','',''),
(661,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_generally_close_with_end_pincode_waiting_period\')','',703,'2020-02-04 10:54:26','\0','init cw_terminal_chiplox.activate_generally_close_with_end_pincode_waiting_period = 0','','2020-02-04 10:54:28','2020-02-04 10:54:28','','update cw_terminal_chiplox set activate_generally_close_with_end_pincode_waiting_period = 0 where activate_generally_close_with_end_pincode_waiting_period is null','update cw_terminal_chiplox set activate_generally_close_with_end_pincode_waiting_period = 0 where activate_generally_close_with_end_pincode_waiting_period is null',0,'OK','',''),
(662,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'deactivate_generally_close_pincode_waiting_period\')','',704,'2020-02-04 10:54:26','\0','add column cw_terminal_chiplox.deactivate_generally_close_pincode_waiting_period','','2020-02-04 10:54:28','2020-02-04 10:54:28','','alter table cw_terminal_chiplox add deactivate_generally_close_pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column deactivate_generally_close_pincode_waiting_period INTEGER',0,'condition is false','',''),
(663,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'deactivate_generally_close_pincode_waiting_period\')','',705,'2020-02-04 10:54:26','\0','init cw_terminal_chiplox.deactivate_generally_close_pincode_waiting_period = 0','','2020-02-04 10:54:28','2020-02-04 10:54:28','','update cw_terminal_chiplox set deactivate_generally_close_pincode_waiting_period = 0 where deactivate_generally_close_pincode_waiting_period is null','update cw_terminal_chiplox set deactivate_generally_close_pincode_waiting_period = 0 where deactivate_generally_close_pincode_waiting_period is null',0,'OK','',''),
(664,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_event_base_data\', \'input\')','',706,'2020-02-26 05:04:06','\0','add column cw_event_base_data.input','','2020-02-26 05:04:06','2020-02-26 05:04:06','','alter table cw_event_base_data add input INTEGER','alter table cw_event_base_data add column input INTEGER',0,'condition is false','',''),
(665,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_event_base_data\', \'input\')','',707,'2020-02-26 05:04:06','\0','init cw_event_base_data.input = 0','','2020-02-26 05:04:06','2020-02-26 05:04:06','','update cw_event_base_data set input = 0 where input is null','update cw_event_base_data set input = 0 where input is null',0,'OK','',''),
(666,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_event_base_data\', \'input_state\')','',708,'2020-02-26 05:04:06','\0','add column cw_event_base_data.input_state','','2020-02-26 05:04:06','2020-02-26 05:04:06','','alter table cw_event_base_data add input_state INTEGER','alter table cw_event_base_data add column input_state INTEGER',0,'condition is false','',''),
(667,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_event_base_data\', \'input_state\')','',709,'2020-02-26 05:04:06','\0','init cw_event_base_data.input_state = 0','','2020-02-26 05:04:06','2020-02-26 05:04:06','','update cw_event_base_data set input_state = 0 where input_state is null','update cw_event_base_data set input_state = 0 where input_state is null',0,'OK','',''),
(668,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'value_like_pause\')','',710,'2020-02-26 05:04:06','\0','add column cw_absence.cw_absence.value_like_pause','','2020-02-26 05:04:06','2020-02-26 05:04:06','','alter table cw_absence add value_like_pause BIT','alter table cw_absence add column value_like_pause BIT',0,'condition is false','',''),
(669,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'value_like_pause\')','',711,'2020-02-26 05:04:06','\0','init cw_absence.value_like_pause = false','','2020-02-26 05:04:06','2022-11-04 07:48:17','','update cw_absence set value_like_pause = 0 where value_like_pause is null','update cw_absence set value_like_pause = 0 where value_like_pause is null',0,'OK','',''),
(670,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'name\')','',712,'2020-07-24 19:02:35','\0','change createDirectTimeBooking to createDirectTimeBookingWithoutWorkflow','','2020-07-24 19:02:36','2020-07-24 19:02:36','','update cw_operator_role set name = \'createDirectTimeBookingWithoutWorkflow\', description_de = \'createDirectTimeBookingWithoutWorkflow\' where cwid = 115','update cw_operator_role set name = \'createDirectTimeBookingWithoutWorkflow\', description_de = \'createDirectTimeBookingWithoutWorkflow\' where cwid = 115',0,'OK','',''),
(671,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'name\')','',713,'2020-07-24 19:02:35','\0','change createDirectWorkBooking to createDirectWorkBookingWithoutWorkflow','','2020-07-24 19:02:36','2020-07-24 19:02:36','','update cw_operator_role set name = \'createDirectWorkBookingWithoutWorkflow\', description_de = \'createDirectWorkBookingWithoutWorkflow\' where cwid = 117','update cw_operator_role set name = \'createDirectWorkBookingWithoutWorkflow\', description_de = \'createDirectWorkBookingWithoutWorkflow\' where cwid = 117',0,'OK','',''),
(672,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'name\')','',714,'2020-07-24 19:02:35','\0','change createDirectMobileTimeBooking to createDirectMobileTimeBookingWithoutWorkflow','','2020-07-24 19:02:36','2020-07-24 19:02:36','','update cw_operator_role set name = \'createDirectMobileTimeBookingWithoutWorkflow\', description_de = \'createDirectMobileTimeBookingWithoutWorkflow\' where cwid = 1301','update cw_operator_role set name = \'createDirectMobileTimeBookingWithoutWorkflow\', description_de = \'createDirectMobileTimeBookingWithoutWorkflow\' where cwid = 1301',0,'OK','',''),
(673,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'name\')','',715,'2020-07-24 19:02:35','\0','change createDirectMobileWorkBooking to createDirectMobileWorkBookingWithoutWorkflow','','2020-07-24 19:02:36','2020-07-24 19:02:36','','update cw_operator_role set name = \'createDirectMobileWorkBookingWithoutWorkflow\', description_de = \'createDirectMobileWorkBookingWithoutWorkflow\' where cwid = 1302','update cw_operator_role set name = \'createDirectMobileWorkBookingWithoutWorkflow\', description_de = \'createDirectMobileWorkBookingWithoutWorkflow\' where cwid = 1302',0,'OK','',''),
(674,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'name\')','',716,'2020-07-24 19:02:35','\0','change createDirectMobileExpenseBooking to createDirectMobileExpenseBookingWithoutWorkflow','','2020-07-24 19:02:36','2020-07-24 19:02:36','','update cw_operator_role set name = \'createDirectMobileExpenseBookingWithoutWorkflow\', description_de = \'createDirectMobileExpenseBookingWithoutWorkflow\' where cwid = 1303','update cw_operator_role set name = \'createDirectMobileExpenseBookingWithoutWorkflow\', description_de = \'createDirectMobileExpenseBookingWithoutWorkflow\' where cwid = 1303',0,'OK','',''),
(675,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'name\')','',717,'2020-07-24 19:02:35','\0','change createDirectMobileTimeBookingWithCamera to createDirectMobileTimeBookingWithCameraWithoutWorkflow','','2020-07-24 19:02:36','2020-07-24 19:02:36','','update cw_operator_role set name = \'createDirectMobileTimeBookingWithCameraWithoutWorkflow\', description_de = \'createDirectMobileTimeBookingWithCameraWithoutWorkflow\' where cwid = 1307','update cw_operator_role set name = \'createDirectMobileTimeBookingWithCameraWithoutWorkflow\', description_de = \'createDirectMobileTimeBookingWithCameraWithoutWorkflow\' where cwid = 1307',0,'OK','',''),
(676,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'name\')','',718,'2020-07-24 19:02:35','\0','change createDirectMobileTimeDuration to createDirectMobileTimeDurationWithoutWorkflow','','2020-07-24 19:02:36','2020-07-24 19:02:36','','update cw_operator_role set name = \'createDirectMobileTimeDurationWithoutWorkflow\', description_de = \'createDirectMobileTimeDurationWithoutWorkflow\' where cwid = 1306','update cw_operator_role set name = \'createDirectMobileTimeDurationWithoutWorkflow\', description_de = \'createDirectMobileTimeDurationWithoutWorkflow\' where cwid = 1306',0,'OK','',''),
(677,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'name\')','',719,'2020-07-24 19:02:35','\0','change createDirectMobileWorkBookingWithCamera to createDirectMobileWorkBookingWithCameraWithoutWorkflow','','2020-07-24 19:02:36','2020-07-24 19:02:36','','update cw_operator_role set name = \'createDirectMobileWorkBookingWithCameraWithoutWorkflow\', description_de = \'createDirectMobileWorkBookingWithCameraWithoutWorkflow\' where cwid = 1308','update cw_operator_role set name = \'createDirectMobileWorkBookingWithCameraWithoutWorkflow\', description_de = \'createDirectMobileWorkBookingWithCameraWithoutWorkflow\' where cwid = 1308',0,'OK','',''),
(678,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_generally_open_pincode_waiting_period\')','',720,'2020-07-24 19:02:35','\0','add column cw_terminal_chiplox.activate_generally_open_pincode_waiting_period','','2020-07-24 19:02:36','2020-07-24 19:02:36','','alter table cw_terminal_chiplox add activate_generally_open_pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column activate_generally_open_pincode_waiting_period INTEGER',0,'condition is false','',''),
(679,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'activate_generally_open_pincode_waiting_period\')','',721,'2020-07-24 19:02:35','\0','init cw_terminal_chiplox.activate_generally_open_pincode_waiting_period = 0','','2020-07-24 19:02:36','2020-07-24 19:02:36','','update cw_terminal_chiplox set activate_generally_open_pincode_waiting_period = 0 where activate_generally_open_pincode_waiting_period is null','update cw_terminal_chiplox set activate_generally_open_pincode_waiting_period = 0 where activate_generally_open_pincode_waiting_period is null',0,'OK','',''),
(680,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'deactivate_generally_open_pincode_waiting_period\')','',722,'2020-07-24 19:02:35','\0','add column cw_terminal_chiplox.deactivate_generally_open_pincode_waiting_period','','2020-07-24 19:02:36','2020-07-24 19:02:36','','alter table cw_terminal_chiplox add deactivate_generally_open_pincode_waiting_period INTEGER','alter table cw_terminal_chiplox add column deactivate_generally_open_pincode_waiting_period INTEGER',0,'condition is false','',''),
(681,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_chiplox\', \'deactivate_generally_open_pincode_waiting_period\')','',723,'2020-07-24 19:02:35','\0','init cw_terminal_chiplox.deactivate_generally_open_pincode_waiting_period = 0','','2020-07-24 19:02:36','2020-07-24 19:02:36','','update cw_terminal_chiplox set deactivate_generally_open_pincode_waiting_period = 0 where deactivate_generally_open_pincode_waiting_period is null','update cw_terminal_chiplox set deactivate_generally_open_pincode_waiting_period = 0 where deactivate_generally_open_pincode_waiting_period is null',0,'OK','',''),
(682,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_category_type\', \'logistics_active\')','',724,'2020-07-24 19:02:35','\0','add column cw_person_category_type.logistics_active','','2020-07-24 19:02:36','2020-07-24 19:02:36','','alter table cw_person_category_type add logistics_active BIT','alter table cw_person_category_type add column logistics_active BIT',0,'condition is false','',''),
(683,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_category_type\', \'logistics_active\')','',725,'2020-07-24 19:02:35','\0','init cw_person_category_type.logistics_active','','2020-07-24 19:02:36','2022-11-04 07:48:17','','update cw_person_category_type set logistics_active = 0 where logistics_active is null','update cw_person_category_type set logistics_active = 0 where logistics_active is null',0,'OK','',''),
(684,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person\', \'no_logistics_active\')','',726,'2020-07-24 19:02:35','\0','add column cw_person.no_logistics_active','','2020-07-24 19:02:36','2020-07-24 19:02:36','','alter table cw_person add no_logistics_active BIT','alter table cw_person add column no_logistics_active BIT',0,'condition is false','',''),
(685,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person\', \'no_logistics_active\')','',727,'2020-07-24 19:02:35','\0','init cw_person.no_logistics_active','','2020-07-24 19:02:36','2022-11-04 07:48:17','','update cw_person set no_logistics_active = 0 where no_logistics_active is null','update cw_person set no_logistics_active = 0 where no_logistics_active is null',0,'OK','',''),
(686,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_ressources\')','',728,'2020-07-24 19:02:35','\0','add column cw_general_validation.all_ressources','','2020-07-24 19:02:36','2020-07-24 19:02:36','','alter table cw_general_validation add all_ressources BIT','alter table cw_general_validation add column all_ressources BIT',0,'condition is false','',''),
(687,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_ressources\')','',729,'2020-07-24 19:02:35','\0','init cw_general_validation.all_ressources = false','','2020-07-24 19:02:36','2022-11-04 07:48:17','','update cw_general_validation set all_ressources = 0 where all_ressources is null','update cw_general_validation set all_ressources = 0 where all_ressources is null',0,'OK','',''),
(688,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'ignore_anti_pass_back\')','',730,'2020-07-24 19:02:35','\0','add column cw_chiplox_person_day_access_schedule_2_detail.ignore_anti_pass_back','','2020-07-24 19:02:36','2020-07-24 19:02:36','','alter table cw_chiplox_person_day_access_schedule_2_detail add ignore_anti_pass_back BIT','alter table cw_chiplox_person_day_access_schedule_2_detail add column ignore_anti_pass_back BIT',0,'condition is false','',''),
(689,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_chiplox_person_day_access_schedule_2_detail\', \'ignore_anti_pass_back\')','',731,'2020-07-24 19:02:35','\0','init cw_chiplox_person_day_access_schedule_2_detail.ignore_anti_pass_back = 0','','2020-07-24 19:02:36','2020-07-24 19:02:36','','update cw_chiplox_person_day_access_schedule_2_detail set ignore_anti_pass_back = 0 where ignore_anti_pass_back is null','update cw_chiplox_person_day_access_schedule_2_detail set ignore_anti_pass_back = 0 where ignore_anti_pass_back is null',0,'OK','',''),
(690,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'set_access_to_entered\')','',732,'2020-07-24 19:02:35','\0','add column cw_booking_code_2_detail.set_access_to_entered','','2020-07-24 19:02:36','2020-07-24 19:02:36','','alter table cw_booking_code_2_detail add set_access_to_entered BIT','alter table cw_booking_code_2_detail add column set_access_to_entered BIT',0,'condition is false','',''),
(691,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'set_access_to_entered\')','',733,'2020-07-24 19:02:35','\0','init cw_booking_code_2_detail.set_access_to_entered = 0','','2020-07-24 19:02:36','2020-07-24 19:02:36','','update cw_booking_code_2_detail set set_access_to_entered = 0 where set_access_to_entered is null','update cw_booking_code_2_detail set set_access_to_entered = 0 where set_access_to_entered is null',0,'OK','',''),
(692,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'set_access_to_left\')','',734,'2020-07-24 19:02:35','\0','add column cw_booking_code_2_detail.set_access_to_left','','2020-07-24 19:02:36','2020-07-24 19:02:36','','alter table cw_booking_code_2_detail add set_access_to_left BIT','alter table cw_booking_code_2_detail add column set_access_to_left BIT',0,'condition is false','',''),
(693,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'set_access_to_left\')','',735,'2020-07-24 19:02:35','\0','init cw_booking_code_2_detail.set_access_to_left = 0','','2020-07-24 19:02:36','2020-07-24 19:02:36','','update cw_booking_code_2_detail set set_access_to_left = 0 where set_access_to_left is null','update cw_booking_code_2_detail set set_access_to_left = 0 where set_access_to_left is null',0,'OK','',''),
(694,1,'at.clockwork.system.service.DataSourceService.existsTableInDatabase(connection, \'cw_identification\')','',736,'2020-07-24 19:02:35','\0','PIN_[personNumber] to PIN_PID=[id]','','2020-07-24 19:02:36','2020-07-24 19:02:36','','','',0,'OK','','import at.clockwork.common.domain.*\nimport at.clockwork.generated.service.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	TriggerWriteService triggerWriteService = Holders.grailsApplication.mainContext.getBean \'triggerWriteService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        def gormCriteria = Identification.createCriteria()\n        def list = gormCriteria {\n            and {\n                like(\"number\", \"PIN_%\")\n                eq(\"deleted\", false)\n            }\n        }\n\n        list = list.sort{ it.id }.sort{ it.number }.reverse()\n        list.each { identification ->\n\n            def parts = identification.number.split(\"_\")\n\n            if (parts.size() == 2) {\n\n                Person person = Person.findWhere(number:parts[1], deleted:false)\n                if (person) {\n                    String newNumber = \"PIN_PID=\" + person.id\n                    if (Identification.findWhere(number:newNumber, deleted:false)) {\n                        identification.deleted = true\n                    } else {\n                        identification.number = newNumber\n                    }\n                } else {\n                    identification.deleted = true\n                }\n\n            }\n            triggerWriteService.save(identification)\n        }\n\n		true\n	}\n}'),
(695,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_company\', \'receiver\')','',737,'2020-07-24 19:02:35','\0','add column cw_company.receiver','','2020-07-24 19:02:36','2020-07-24 19:02:36','','alter table cw_company add receiver BIT','alter table cw_company add column receiver BIT',0,'condition is false','',''),
(696,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_company\', \'receiver\')','',738,'2020-07-24 19:02:35','\0','init cw_company.receiver = 0','','2020-07-24 19:02:36','2020-07-24 19:02:36','','update cw_company set receiver = 0 where receiver is null','update cw_company set receiver = 0 where receiver is null',0,'OK','',''),
(697,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_company\', \'carrier\')','',739,'2020-07-24 19:02:35','\0','add column cw_company.carrier','','2020-07-24 19:02:36','2020-07-24 19:02:36','','alter table cw_company add carrier BIT','alter table cw_company add column carrier BIT',0,'condition is false','',''),
(698,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_company\', \'carrier\')','',740,'2020-07-24 19:02:35','\0','init cw_company.carrier = 0','','2020-07-24 19:02:36','2020-07-24 19:02:36','','update cw_company set carrier = 0 where carrier is null','update cw_company set carrier = 0 where carrier is null',0,'OK','',''),
(699,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_company\', \'vendor_available_for_other_companies\')','',741,'2020-09-13 12:41:47','\0','add column cw_company.vendor_available_for_other_companies','','2020-09-13 12:41:47','2020-09-13 12:41:47','','alter table cw_company add vendor_available_for_other_companies INTEGER','alter table cw_company add column vendor_available_for_other_companies INTEGER',0,'condition is false','',''),
(700,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_company\', \'vendor_available_for_other_companies\')','',742,'2020-09-13 12:41:47','\0','init cw_company.vendor_available_for_other_companies = 0','','2020-09-13 12:41:47','2020-09-13 12:41:47','','update cw_company set vendor_available_for_other_companies = 0 where vendor_available_for_other_companies is null','update cw_company set vendor_available_for_other_companies = 0 where vendor_available_for_other_companies is null',0,'OK','',''),
(701,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_company\', \'receiver_available_for_other_companies\')','',743,'2020-09-13 12:41:47','\0','add column cw_company.receiver_available_for_other_companies','','2020-09-13 12:41:47','2020-09-13 12:41:47','','alter table cw_company add receiver_available_for_other_companies INTEGER','alter table cw_company add column receiver_available_for_other_companies INTEGER',0,'condition is false','',''),
(702,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_company\', \'receiver_available_for_other_companies\')','',744,'2020-09-13 12:41:47','\0','init cw_company.receiver_available_for_other_companies = 0','','2020-09-13 12:41:47','2020-09-13 12:41:47','','update cw_company set receiver_available_for_other_companies = 0 where receiver_available_for_other_companies is null','update cw_company set receiver_available_for_other_companies = 0 where receiver_available_for_other_companies is null',0,'OK','',''),
(703,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_company\', \'carrier_available_for_other_companies\')','',745,'2020-09-13 12:41:47','\0','add column cw_company.carrier_available_for_other_companies','','2020-09-13 12:41:47','2020-09-13 12:41:47','','alter table cw_company add carrier_available_for_other_companies INTEGER','alter table cw_company add column carrier_available_for_other_companies INTEGER',0,'condition is false','',''),
(704,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_company\', \'carrier_available_for_other_companies\')','',746,'2020-09-13 12:41:47','\0','init cw_company.carrier_available_for_other_companies = 0','','2020-09-13 12:41:47','2020-09-13 12:41:47','','update cw_company set carrier_available_for_other_companies = 0 where carrier_available_for_other_companies is null','update cw_company set carrier_available_for_other_companies = 0 where carrier_available_for_other_companies is null',0,'OK','',''),
(705,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_work_combinations\')','',747,'2021-04-02 17:53:58','\0','add column cw_general_validation.all_work_combinations','','2021-04-02 17:53:59','2021-04-02 17:53:59','','alter table cw_general_validation add all_work_combinations BIT','alter table cw_general_validation add column all_work_combinations BIT',0,'condition is false','',''),
(706,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_work_combinations\')','',748,'2021-04-02 17:53:58','\0','init cw_general_validation.all_work_combinations = false','','2021-04-02 17:53:59','2022-11-04 07:48:17','','update cw_general_validation set all_work_combinations = 0 where all_work_combinations is null','update cw_general_validation set all_work_combinations = 0 where all_work_combinations is null',0,'OK','',''),
(707,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_work_combination\', \'work_combination_type_id\')','',749,'2021-04-02 17:53:58','\0','alter table cw_work_combination modify work_combination_type_id bigint null','','2021-04-02 17:53:59','2021-04-02 17:53:59','','alter table cw_work_combination alter column work_combination_type_id bigint null','alter table cw_work_combination modify work_combination_type_id bigint null',0,'OK','',''),
(708,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_person_category\', \'deleted\')','',750,'2021-04-02 17:53:58','\0','add column cw_person_2_person_category.deleted','','2021-04-02 17:53:59','2021-04-02 17:53:59','','alter table cw_person_2_person_category add deleted BIT NOT NULL DEFAULT(0)','alter table cw_person_2_person_category add column deleted BIT NOT NULL DEFAULT 0',0,'condition is false','',''),
(709,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_person_category\', \'update_counter\')','',751,'2021-04-02 17:53:58','\0','add column cw_person_2_person_category.update_counter','','2021-04-02 17:53:59','2021-04-02 17:53:59','','alter table cw_person_2_person_category add update_counter INTEGER NULL DEFAULT(0)','alter table cw_person_2_person_category add column update_counter INTEGER NOT NULL DEFAULT 0',0,'condition is false','',''),
(710,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_person_category\', \'percent_value\')','',752,'2021-04-02 17:53:58','\0','add column cw_person_2_person_category.percent_value','','2021-04-02 17:53:59','2021-04-02 17:53:59','','alter table cw_person_2_person_category add percent_value FLOAT(53) NULL DEFAULT(0)','alter table cw_person_2_person_category add column percent_value DOUBLE NOT NULL DEFAULT 0',0,'condition is false','',''),
(711,2,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_person_category\', \'start_date\')','',753,'2021-04-02 17:53:58','\0','add column cw_person_2_person_category.start_date','','2021-04-02 17:53:59','2021-12-25 22:54:39','','alter table cw_person_2_person_category add start_date DATETIME','alter table cw_person_2_person_category add column start_date DATETIME',0,'condition is false','',''),
(712,2,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_person_category\', \'end_date\')','',754,'2021-04-02 17:53:58','\0','add column cw_person_2_person_category.end_date','','2021-04-02 17:53:59','2021-12-25 22:54:39','','alter table cw_person_2_person_category add end_date DATETIME','alter table cw_person_2_person_category add column end_date DATETIME',0,'condition is false','',''),
(713,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_company_2_contact\', \'main_contact\')','',755,'2021-04-02 17:53:58','\0','add column cw_company_2_contact.main_contact','','2021-04-02 17:53:59','2021-04-02 17:53:59','','alter table cw_company_2_contact add main_contact BIT NULL DEFAULT(0)','alter table cw_company_2_contact add column main_contact BIT NOT NULL DEFAULT 0',0,'condition is false','',''),
(714,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_person_category\', \'comment\')','',756,'2021-04-02 17:53:58','\0','add column cw_person_2_person_category.comment','','2021-04-02 17:53:59','2021-04-02 17:53:59','','alter table cw_person_2_person_category add comment varchar(255) NULL','alter table cw_person_2_person_category add comment varchar(255)',0,'condition is false','',''),
(715,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type_definition_detail\', \'description_en\')','',757,'2021-04-02 17:53:58','\0','add column cw_time_time_type_definition_detail.description_en','','2021-04-02 17:53:59','2021-04-02 17:53:59','','alter table cw_time_time_type_definition_detail add description_en varchar(255) NULL','alter table cw_time_time_type_definition_detail add description_en varchar(255)',0,'condition is false','',''),
(716,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type_definition\', \'description_en\')','',758,'2021-04-02 17:53:58','\0','add column cw_time_time_type_definition.description_en','','2021-04-02 17:53:59','2021-04-02 17:53:59','','alter table cw_time_time_type_definition add description_en varchar(255) NULL','alter table cw_time_time_type_definition add description_en varchar(255)',0,'condition is false','',''),
(717,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_sort_definition\', \'description_en\')','',759,'2021-04-02 17:53:58','\0','add column cw_sort_definition.description_en','','2021-04-02 17:53:59','2021-04-02 17:53:59','','alter table cw_sort_definition add description_en varchar(255) NULL','alter table cw_sort_definition add description_en varchar(255)',0,'condition is false','',''),
(718,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition\', \'description_en\')','',760,'2021-04-02 17:53:58','\0','add column cw_group_definition.description_en','','2021-04-02 17:53:59','2021-04-02 17:53:59','','alter table cw_group_definition add description_en varchar(255) NULL','alter table cw_group_definition add description_en varchar(255)',0,'condition is false','',''),
(719,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type_definition_detail\', \'description\')  && at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type_definition_detail\', \'description_en\')','',761,'2021-04-02 17:53:58','\0','update cw_time_time_type_definition_detail.description_en','','2021-04-02 17:53:59','2021-04-02 17:53:59','','update cw_time_time_type_definition_detail set description_en = description where description_en is null','update cw_time_time_type_definition_detail set description_en = description where description_en is null',0,'OK','',''),
(720,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type_definition\', \'description\') && at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type_definition\', \'description_en\')','',762,'2021-04-02 17:53:58','\0','update cw_time_time_type_definition.description_en','','2021-04-02 17:53:59','2021-04-02 17:53:59','','update cw_time_time_type_definition set description_en = description where description_en is null','update cw_time_time_type_definition set description_en = description where description_en is null',0,'OK','',''),
(721,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_sort_definition\', \'description\') && at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_sort_definition\', \'description_en\')','',763,'2021-04-02 17:53:58','\0','update cw_sort_definition.description_en','','2021-04-02 17:53:59','2021-04-02 17:53:59','','update cw_sort_definition set description_en = description where description_en is null','update cw_sort_definition set description_en = description where description_en is null',0,'OK','',''),
(722,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition\', \'description\') && at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition\', \'description_en\')','',764,'2021-04-02 17:53:58','\0','update cw_group_definition.description_en','','2021-04-02 17:53:59','2021-04-02 17:53:59','','update cw_group_definition set description_en = description where description_en is null','update cw_group_definition set description_en = description where description_en is null',0,'OK','',''),
(723,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_person_category\', \'percent\')','',765,'2021-04-02 17:53:58','\0','drop cw_person_2_person_category.percent','','2021-04-02 17:53:59','2021-04-02 17:53:59','','alter table cw_person_2_person_category drop column percent','alter table cw_person_2_person_category drop column percent',0,'condition is false','',''),
(724,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_person_category\', \'percent_value\')','',766,'2021-04-02 17:53:58','\0','init cw_person_2_person_category.percent_value = 0','','2021-04-02 17:53:59','2021-04-02 17:53:59','','update cw_person_2_person_category set percent_value = 0 where percent_value is null','update cw_person_2_person_category set percent_value = 0 where percent_value is null',0,'OK','',''),
(725,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'select_person_type\')','',767,'2021-04-02 17:53:58','\0','add column cw_operator_role.select_person_type','','2021-04-02 17:53:59','2021-04-02 17:53:59','','alter table cw_operator_role add select_person_type BIT','alter table cw_operator_role add column select_person_type BIT',0,'condition is false','',''),
(726,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'select_person_type\')','',768,'2021-04-02 17:53:58','\0','init cw_operator_role.select_person_type = false','','2021-04-02 17:53:59','2022-11-04 07:48:18','','update cw_operator_role set select_person_type = 0 where select_person_type is null','update cw_operator_role set select_person_type = 0 where select_person_type is null',0,'OK','',''),
(727,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_email\', \'counter\')','',769,'2021-04-02 17:53:58','\0','add column cw_email.counter','','2021-04-02 17:53:59','2021-04-02 17:53:59','','alter table cw_email add counter INTEGER NULL DEFAULT(0)','alter table cw_email add column counter INTEGER NOT NULL DEFAULT 0',0,'condition is false','',''),
(728,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_email\', \'counter\')','',770,'2021-04-02 17:53:58','\0','init cw_email.counter = 0','','2021-04-02 17:53:59','2021-04-02 17:53:59','','update cw_email set counter = 0 where counter is null','update cw_email set counter = 0 where counter is null',0,'OK','',''),
(729,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type_data_transfer\', \'time_time_type_data_transfer_enum\')','',771,'2021-04-02 17:53:58','\0','init cw_time_time_type_data_transfer.time_time_type_data_transfer_enum = \'DECIMAL\'','','2021-04-02 17:53:59','2021-04-02 17:53:59','','update cw_time_time_type_data_transfer set time_time_type_data_transfer_enum = \'_1_TO_1\' where time_time_type_data_transfer_enum is null','update cw_time_time_type_data_transfer set time_time_type_data_transfer_enum = \'_1_TO_1\' where time_time_type_data_transfer_enum is null',0,'OK','',''),
(730,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'select_user\')','',772,'2021-04-02 17:53:58','\0','add column cw_operator_role.select_user','','2021-04-02 17:53:59','2021-04-02 17:53:59','','alter table cw_operator_role add select_user BIT','alter table cw_operator_role add column select_user BIT',0,'condition is false','',''),
(731,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'select_user\')','',773,'2021-04-02 17:53:58','\0','init cw_operator_role.select_user = false','','2021-04-02 17:53:59','2022-11-04 07:48:18','','update cw_operator_role set select_user = 0 where select_user is null','update cw_operator_role set select_user = 0 where select_user is null',0,'OK','',''),
(732,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'select_operator_type\')','',774,'2021-04-02 17:53:58','\0','add column cw_operator_role.select_operator_type','','2021-04-02 17:53:59','2021-04-02 17:53:59','','alter table cw_operator_role add select_operator_type BIT','alter table cw_operator_role add column select_operator_type BIT',0,'condition is false','',''),
(733,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'select_operator_type\')','',775,'2021-04-02 17:53:58','\0','init cw_operator_role.select_operator_type = false','','2021-04-02 17:54:00','2022-11-04 07:48:18','','update cw_operator_role set select_operator_type = 0 where select_operator_type is null','update cw_operator_role set select_operator_type = 0 where select_operator_type is null',0,'OK','',''),
(734,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_synchronisation_area\', \'synchronise_time\')','',776,'2021-12-25 22:54:40','\0','drop cw_synchronisation_area.synchronise_time','','2021-12-25 22:54:41','2021-12-25 22:54:41','','alter table cw_synchronisation_area drop column synchronise_time','alter table cw_synchronisation_area drop column synchronise_time',0,'OK','',''),
(735,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_synchronisation_area\', \'synchronise_work\')','',777,'2021-12-25 22:54:40','\0','drop cw_synchronisation_area.synchronise_work','','2021-12-25 22:54:41','2021-12-25 22:54:41','','alter table cw_synchronisation_area drop column synchronise_work','alter table cw_synchronisation_area drop column synchronise_work',0,'OK','',''),
(736,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_synchronisation_area\', \'synchronise_access\')','',778,'2021-12-25 22:54:40','\0','drop cw_synchronisation_area.synchronise_access','','2021-12-25 22:54:41','2021-12-25 22:54:41','','alter table cw_synchronisation_area drop column synchronise_access','alter table cw_synchronisation_area drop column synchronise_access',0,'OK','',''),
(737,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_2_synchronisation_area\', \'reverse_direction\')','',779,'2021-12-25 22:54:40','\0','add column cw_terminal_2_synchronisation_area.reverse_direction','','2021-12-25 22:54:41','2021-12-25 22:54:41','','alter table cw_terminal_2_synchronisation_area add reverse_direction BIT','alter table cw_terminal_2_synchronisation_area add column reverse_direction BIT',0,'condition is false','',''),
(738,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_2_synchronisation_area\', \'reverse_direction\')','',780,'2021-12-25 22:54:40','\0','init cw_terminal_2_synchronisation_area.reverse_direction = false','','2021-12-25 22:54:41','2022-11-04 07:48:18','','update cw_terminal_2_synchronisation_area set reverse_direction = 0 where reverse_direction is null','update cw_terminal_2_synchronisation_area set reverse_direction = 0 where reverse_direction is null',0,'OK','',''),
(739,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_synchronisation_area\', \'trigger_going_booking\')','',781,'2021-12-25 22:54:40','\0','add column cw_synchronisation_area.trigger_going_booking','','2021-12-25 22:54:41','2021-12-25 22:54:41','','alter table cw_synchronisation_area add trigger_going_booking BIT','alter table cw_synchronisation_area add column trigger_going_booking BIT',0,'condition is false','',''),
(740,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_synchronisation_area\', \'trigger_going_booking\')','',782,'2021-12-25 22:54:40','\0','init cw_synchronisation_area.trigger_going_booking = false','','2021-12-25 22:54:41','2022-11-04 07:48:18','','update cw_synchronisation_area set trigger_going_booking = 0 where trigger_going_booking is null','update cw_synchronisation_area set trigger_going_booking = 0 where trigger_going_booking is null',0,'OK','',''),
(741,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_synchronisation_area\', \'reset_type_enum\')','',783,'2021-12-25 22:54:40','\0','add column cw_synchronisation_area.reset_type_enum','','2021-12-25 22:54:41','2021-12-25 22:54:41','','alter table cw_synchronisation_area add reset_type_enum varchar(255) NULL','alter table cw_synchronisation_area add column reset_type_enum  varchar(255)',0,'condition is false','',''),
(742,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_synchronisation_area\', \'reset_type_enum\')','',784,'2021-12-25 22:54:40','\0','init cw_synchronisation_area.reset_type_enum = false','','2021-12-25 22:54:41','2021-12-25 22:54:41','','update cw_synchronisation_area set reset_type_enum = \'RESET_TO_NULL\' where reset_type_enum is null','update cw_synchronisation_area set reset_type_enum = \'RESET_TO_NULL\' where reset_type_enum is null',0,'OK','',''),
(743,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_trigger\', \'report_use_user2operator_type\')','',785,'2021-12-25 22:54:40','\0','add column cw_trigger.report_use_user2operator_type','','2021-12-25 22:54:41','2021-12-25 22:54:41','','alter table cw_trigger add report_use_user2operator_type BIT','alter table cw_trigger add column report_use_user2operator_type BIT',0,'condition is false','',''),
(744,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_trigger\', \'report_use_user2operator_type\')','',786,'2021-12-25 22:54:40','\0','init cw_trigger.report_use_user2operator_type = false','','2021-12-25 22:54:41','2022-11-04 07:48:18','','update cw_trigger set report_use_user2operator_type = 0 where report_use_user2operator_type is null','update cw_trigger set report_use_user2operator_type = 0 where report_use_user2operator_type is null',0,'OK','',''),
(745,1,'at.clockwork.system.service.DataSourceService.existsTableInDatabase(connection, \'cw_trigger_report_2_operator_type\')','',787,'2021-12-25 22:54:40','\0','TriggerReport2OperatorType to Trigger2OperatorType','','2021-12-25 22:54:41','2021-12-25 22:54:41','','','',0,'OK','','import at.clockwork.common.domain.*\nimport at.clockwork.generated.service.*\nimport at.clockwork.system.domain.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def trigger2OperatorTypeWriteService = Holders.grailsApplication.mainContext.getBean \'trigger2OperatorTypeWriteService\'\n	def trigger2OperatorType2PersonWhitelistWriteService = Holders.grailsApplication.mainContext.getBean \'trigger2OperatorType2PersonWhitelistWriteService\'\n	def trigger2OperatorType2PersonBlacklistWriteService = Holders.grailsApplication.mainContext.getBean \'trigger2OperatorType2PersonBlacklistWriteService\'\n	def trigger2OperatorType2PersonCategoryWhitelistWriteService = Holders.grailsApplication.mainContext.getBean \'trigger2OperatorType2PersonCategoryWhitelistWriteService\'\n	def trigger2OperatorType2PersonCategoryBlacklistWriteService = Holders.grailsApplication.mainContext.getBean \'trigger2OperatorType2PersonCategoryBlacklistWriteService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        TriggerReport2OperatorType.findAll().each { triggerReport2OperatorType ->\n\n            Trigger2OperatorType trigger2OperatorType = new Trigger2OperatorType(\n                trigger:triggerReport2OperatorType.trigger,\n                operatorType:triggerReport2OperatorType.operatorType,\n                personCategory:triggerReport2OperatorType.personCategory,\n                generalValidation:triggerReport2OperatorType.generalValidation,\n                startDate:triggerReport2OperatorType.startDate,\n                endDate:triggerReport2OperatorType.endDate,\n                deleted:triggerReport2OperatorType.deleted\n            )\n            trigger2OperatorTypeWriteService.save(trigger2OperatorType)\n\n            TriggerReport2OperatorType2PersonWhitelist.findAll().each { triggerReport2OperatorType2PersonWhitelist ->\n                trigger2OperatorType2PersonWhitelistWriteService.save(\n                    new Trigger2OperatorType2PersonWhitelist(\n                        trigger2OperatorType:trigger2OperatorType,\n                        person:triggerReport2OperatorType2PersonWhitelist.person\n                    )\n                )\n            }\n\n            TriggerReport2OperatorType2PersonBlacklist.findAll().each { triggerReport2OperatorType2PersonBlacklist ->\n                trigger2OperatorType2PersonBlacklistWriteService.save(\n                    new Trigger2OperatorType2PersonBlacklist(\n                        trigger2OperatorType:trigger2OperatorType,\n                        person:triggerReport2OperatorType2PersonBlacklist.person\n                    )\n                )\n            }\n\n            TriggerReport2OperatorType2PersonCategoryWhitelist.findAll().each { triggerReport2OperatorType2PersonCategoryWhitelist ->\n                trigger2OperatorType2PersonCategoryWhitelistWriteService.save(\n                    new Trigger2OperatorType2PersonCategoryWhitelist(\n                        trigger2OperatorType:trigger2OperatorType,\n                        personCategory:triggerReport2OperatorType2PersonCategoryWhitelist.personCategory\n                    )\n                )\n            }\n\n            TriggerReport2OperatorType2PersonCategoryBlacklist.findAll().each { triggerReport2OperatorType2PersonCategoryBlacklist ->\n                trigger2OperatorType2PersonCategoryBlacklistWriteService.save(\n                    new Trigger2OperatorType2PersonCategoryBlacklist(\n                        trigger2OperatorType:trigger2OperatorType,\n                        personCategory:triggerReport2OperatorType2PersonCategoryBlacklist.personCategory\n                    )\n                )\n            }\n\n        }\n\n		true\n	}\n}'),
(746,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_gantner_person_category_access_authorisation\', \'master_authorisation\')','',788,'2021-12-25 22:54:40','\0','add column cw_gantner_person_category_access_authorisation.master_authorisation','','2021-12-25 22:54:41','2021-12-25 22:54:41','','alter table cw_gantner_person_category_access_authorisation add master_authorisation BIT','alter table cw_gantner_person_category_access_authorisation add column master_authorisation BIT',0,'condition is false','',''),
(747,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_gantner_person_category_access_authorisation\', \'master_authorisation\')','',789,'2021-12-25 22:54:40','\0','init cw_gantner_person_category_access_authorisation.master_authorisation = false','','2021-12-25 22:54:41','2022-11-04 07:48:18','','update cw_gantner_person_category_access_authorisation set master_authorisation = 0 where master_authorisation is null','update cw_gantner_person_category_access_authorisation set master_authorisation = 0 where master_authorisation is null',0,'OK','',''),
(748,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_gantner_person_access_authorisation\', \'master_authorisation\')','',790,'2021-12-25 22:54:40','\0','add column cw_gantner_person_access_authorisation.master_authorisation','','2021-12-25 22:54:41','2021-12-25 22:54:41','','alter table cw_gantner_person_access_authorisation add master_authorisation BIT','alter table cw_gantner_person_access_authorisation add column master_authorisation BIT',0,'condition is false','',''),
(749,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_gantner_person_access_authorisation\', \'master_authorisation\')','',791,'2021-12-25 22:54:40','\0','init cw_gantner_person_access_authorisation.master_authorisation = false','','2021-12-25 22:54:41','2022-11-04 07:48:18','','update cw_gantner_person_access_authorisation set master_authorisation = 0 where master_authorisation is null','update cw_gantner_person_access_authorisation set master_authorisation = 0 where master_authorisation is null',0,'OK','',''),
(750,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_period\', \'extern_id\')','',792,'2021-12-25 22:54:40','\0','add cw_time_period.extern_id','','2021-12-25 22:54:41','2021-12-25 22:54:41','','alter table cw_time_period alter column extern_id numeric(19,0) null','alter table cw_time_period modify extern_id bigint null',0,'OK','',''),
(751,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_period\', \'extern_id\')','',793,'2021-12-25 22:54:40','\0','init cw_time_period.extern_id = 0','','2021-12-25 22:54:41','2021-12-25 22:54:41','','update cw_time_period set extern_id = 0 where extern_id is null','update cw_time_period set extern_id = 0 where extern_id is null',0,'OK','',''),
(752,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_work_period\', \'extern_id\')','',794,'2021-12-25 22:54:40','\0','add cw_work_period.extern_id','','2021-12-25 22:54:41','2021-12-25 22:54:41','','alter table cw_work_period alter column extern_id numeric(19,0) null','alter table cw_work_period modify extern_id bigint null',0,'OK','',''),
(753,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_work_period\', \'extern_id\')','',795,'2021-12-25 22:54:40','\0','init cw_work_period.extern_id = 0','','2021-12-25 22:54:41','2021-12-25 22:54:41','','update cw_work_period set extern_id = 0 where extern_id is null','update cw_work_period set extern_id = 0 where extern_id is null',0,'OK','',''),
(754,4,'at.clockwork.system.service.DataSourceService.existsTableInDatabase(connection, \'cw_terminal_datafox\')','',796,'2021-12-25 22:54:40','\0','init Datafox-Terminals','','2021-12-25 22:54:42','2024-03-07 09:48:28','','','',0,'OK','','import at.clockwork.terminal.domain.*\nimport at.clockwork.system.domain.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n\n	def run(def connection, def dataSourceFields) {\n\n        Terminal.findAllWhere(terminalType : TerminalType.findWhere( cwID : TerminalType.DATAFOX_TIME_ONLINE, deleted:false ) ).each { terminal ->\n\n            if (!TerminalDatafox.get(terminal.id)) {\n\n                def resultMap = at.clockwork.system.service.DataSourceService.execute(\n                    connection,\n                    dataSourceFields,\n                    [\n                        mySQLStatement:\"\"\"insert into cw_terminal_datafox (\n                                        id, firmware_level, transfer_persons, person_list_name, transfer_projects, project_list_name, transfer_orders, order_list_name, transfer_order_items, order_item_list_name, transfer_cost_units, cost_unit_list_name, transfer_machines, machine_list_name, transfer_workplaces, workplace_list_name, transfer_workprocesses, workprocess_list_name, transfer_identifications, identification_list_name, check_authorisation,\n                                        transfer_absences, absence_list_name, action1, anti_pass_back\n                                        ) values (\n                                        ${terminal.id}, 0, false, \"\", false, \"\", false, \"\", false, \"\", false, \"\", false, \"\", false, \"\", false, \"\", false, \"\", false,\n                                        false, \"\", true, false\n                                        )\"\"\",\n                        msSQLStatement:\"\"\"insert into cw_terminal_datafox (\n                                       id, firmware_level, transfer_persons, person_list_name, transfer_projects, project_list_name, transfer_orders, order_list_name, transfer_order_items, order_item_list_name, transfer_cost_units, cost_unit_list_name, transfer_machines, machine_list_name, transfer_workplaces, workplace_list_name, transfer_workprocesses, workprocess_list_name, transfer_identifications, identification_list_name, check_authorisation,\n                                       transfer_absences, absence_list_name, action1, anti_pass_back\n                                       ) values (\n                                       ${terminal.id}, 0, 0, \"\", 0, \"\", 0, \"\", 0, \"\", 0, \"\", 0, \"\", 0, \"\", 0, \"\", 0, \"\", 0,\n                                       0, \"\", 1, 0\n                                       )\"\"\"\n                    ]\n                )\n\n    		}\n\n        }\n\n		true\n	}\n}'),
(755,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking\', \'homeoffice\')','',797,'2021-12-25 22:54:40','\0','add column cw_booking.homeoffice','','2021-12-25 22:54:42','2021-12-25 22:54:42','','alter table cw_booking add homeoffice BIT','alter table cw_booking add column homeoffice BIT',0,'condition is false','',''),
(756,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking\', \'homeoffice\')','',798,'2021-12-25 22:54:40','\0','init cw_booking.homeoffice = false','','2021-12-25 22:54:42','2022-11-04 07:48:18','','update cw_booking set homeoffice = 0 where homeoffice is null','update cw_booking set homeoffice = 0 where homeoffice is null',0,'OK','',''),
(757,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_period\', \'homeoffice\')','',799,'2021-12-25 22:54:40','\0','add column cw_time_period.homeoffice','','2021-12-25 22:54:42','2021-12-25 22:54:42','','alter table cw_time_period add homeoffice BIT','alter table cw_time_period add column homeoffice BIT',0,'condition is false','',''),
(758,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_period\', \'homeoffice\')','',800,'2021-12-25 22:54:40','\0','init cw_time_period.homeoffice = false','','2021-12-25 22:54:42','2022-11-04 07:48:18','','update cw_time_period set homeoffice = 0 where homeoffice is null','update cw_time_period set homeoffice = 0 where homeoffice is null',0,'OK','',''),
(759,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_work_period\', \'homeoffice\')','',801,'2021-12-25 22:54:40','\0','add column cw_work_period.homeoffice','','2021-12-25 22:54:42','2021-12-25 22:54:42','','alter table cw_work_period add homeoffice BIT','alter table cw_work_period add column homeoffice BIT',0,'condition is false','',''),
(760,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_work_period\', \'homeoffice\')','',802,'2021-12-25 22:54:40','\0','init cw_work_period.homeoffice = false','','2021-12-25 22:54:42','2022-11-04 07:48:18','','update cw_work_period set homeoffice = 0 where homeoffice is null','update cw_work_period set homeoffice = 0 where homeoffice is null',0,'OK','',''),
(761,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_event_base_data\', \'online_booking\')','',803,'2021-12-25 22:54:40','\0','add column cw_event_base_data.online_booking','','2021-12-25 22:54:42','2021-12-25 22:54:42','','alter table cw_event_base_data add online_booking BIT','alter table cw_event_base_data add column online_booking BIT',0,'condition is false','',''),
(762,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_event_base_data\', \'online_booking\')','',804,'2021-12-25 22:54:40','\0','init cw_event_base_data.online_booking = 0','','2021-12-25 22:54:42','2021-12-25 22:54:42','','update cw_event_base_data set online_booking = 0 where online_booking is null','update cw_event_base_data set online_booking = 0 where online_booking is null',0,'OK','',''),
(763,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_gantner\', \'identification_format_enum\')','',805,'2021-12-25 22:54:40','\0','init cw_terminal_gantner.identification_format_enum = \'DECIMAL\'','','2021-12-25 22:54:42','2021-12-25 22:54:42','','update cw_terminal_gantner set identification_format_enum = \'DECIMAL\' where identification_format_enum is null','update cw_terminal_gantner set identification_format_enum = \'DECIMAL\' where identification_format_enum is null',0,'OK','',''),
(764,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_text\', \'deleted\')','',806,'2021-12-25 22:54:40','\0','add column cw_text.deleted','','2021-12-25 22:54:42','2021-12-25 22:54:42','','alter table cw_text add deleted TINYINT','alter table cw_text add column deleted BIT',0,'condition is false','',''),
(765,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_text\', \'deleted\')','',807,'2021-12-25 22:54:40','\0','init cw_text.deleted = false','','2021-12-25 22:54:42','2022-11-04 07:48:18','','update cw_text set deleted = 0 where deleted is null','update cw_text set deleted = 0 where deleted is null',0,'OK','',''),
(766,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_text\', \'date_created\')','',808,'2021-12-25 22:54:40','\0','add column cw_text.date_created','',NULL,'2022-07-02 00:43:29','','alter table cw_text add date_created datetime','',0,NULL,'',''),
(767,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_text\', \'date_created\')','',809,'2021-12-25 22:54:40','\0','init column cw_text.date_created','','2021-12-25 22:54:42','2021-12-25 22:54:42','','update cw_text set date_created = getdate() where date_created is null','update cw_text set date_created = curdate() where date_created = \'0000-00-00\' or date_created is null',0,'OK','',''),
(768,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_text\', \'last_updated\')','',810,'2021-12-25 22:54:40','\0','add column cw_text.last_updated','',NULL,'2022-07-02 00:43:29','','alter table cw_text add last_updated datetime','',0,NULL,'',''),
(769,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_text\', \'last_updated\')','',811,'2021-12-25 22:54:40','\0','init column cw_text.last_updated','','2021-12-25 22:54:42','2021-12-25 22:54:42','','update cw_text set last_updated = getdate() where last_updated is null','update cw_text set last_updated = curdate() where last_updated = \'0000-00-00\' or last_updated is null',0,'OK','',''),
(770,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_text\', \'update_counter\')','',812,'2021-12-25 22:54:40','\0','add column cw_text.update_counter','','2021-12-25 22:54:42','2021-12-25 22:54:42','','alter table cw_text add update_counter INTEGER NULL DEFAULT(0)','alter table cw_text add column update_counter INTEGER NOT NULL DEFAULT 0',0,'condition is false','',''),
(771,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_text\', \'update_counter\')','',813,'2021-12-25 22:54:40','\0','init column cw_text.update_counter','','2021-12-25 22:54:42','2021-12-25 22:54:42','','update cw_text set update_counter = 0 where update_counter is null','update cw_text set update_counter = 0 where update_counter is null',0,'condition is false','',''),
(772,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'homeoffice_allowed\')','',814,'2021-12-25 22:54:40','\0','add column cw_absence.homeoffice_allowed','','2021-12-25 22:54:42','2021-12-25 22:54:42','','alter table cw_absence add homeoffice_allowed BIT','alter table cw_absence add column homeoffice_allowed BIT',0,'condition is false','',''),
(773,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'homeoffice_allowed\')','',815,'2021-12-25 22:54:40','\0','init cw_absence.homeoffice_allowed = 0','','2021-12-25 22:54:42','2021-12-25 22:54:42','','update cw_absence set homeoffice_allowed = 0 where homeoffice_allowed is null','update cw_absence set homeoffice_allowed = 0 where homeoffice_allowed is null',0,'OK','',''),
(774,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'use_quantity\')','',816,'2021-12-25 22:54:40','\0','add column cw_booking_code_2_detail.use_quantity','','2021-12-25 22:54:42','2021-12-25 22:54:42','','alter table cw_booking_code_2_detail add use_quantity BIT','alter table cw_booking_code_2_detail add column use_quantity BIT',0,'condition is false','',''),
(775,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'use_quantity\')','',817,'2021-12-25 22:54:40','\0','init cw_booking_code_2_detail.use_quantity = 0','','2021-12-25 22:54:42','2021-12-25 22:54:42','','update cw_booking_code_2_detail set use_quantity = 0 where use_quantity is null','update cw_booking_code_2_detail set use_quantity = 0 where use_quantity is null',0,'OK','',''),
(776,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'use_good_quantity\')','',818,'2021-12-25 22:54:40','\0','add column cw_booking_code_2_detail.use_good_quantity','','2021-12-25 22:54:42','2021-12-25 22:54:42','','alter table cw_booking_code_2_detail add use_good_quantity BIT','alter table cw_booking_code_2_detail add column use_good_quantity BIT',0,'condition is false','',''),
(777,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'use_good_quantity\')','',819,'2021-12-25 22:54:40','\0','init cw_booking_code_2_detail.use_good_quantity = 0','','2021-12-25 22:54:42','2021-12-25 22:54:42','','update cw_booking_code_2_detail set use_good_quantity = 0 where use_good_quantity is null','update cw_booking_code_2_detail set use_good_quantity = 0 where use_good_quantity is null',0,'OK','',''),
(778,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'use_wastage_quantity\')','',820,'2021-12-25 22:54:40','\0','add column cw_booking_code_2_detail.use_wastage_quantity','','2021-12-25 22:54:42','2021-12-25 22:54:42','','alter table cw_booking_code_2_detail add use_wastage_quantity BIT','alter table cw_booking_code_2_detail add column use_wastage_quantity BIT',0,'condition is false','',''),
(779,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_booking_code_2_detail\', \'use_wastage_quantity\')','',821,'2021-12-25 22:54:40','\0','init cw_booking_code_2_detail.use_wastage_quantity = 0','','2021-12-25 22:54:42','2021-12-25 22:54:42','','update cw_booking_code_2_detail set use_wastage_quantity = 0 where use_wastage_quantity is null','update cw_booking_code_2_detail set use_wastage_quantity = 0 where use_wastage_quantity is null',0,'OK','',''),
(780,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_model\', \'class\')','',822,'2021-12-25 22:54:40','\0','add column timeTimeModel.class','','2021-12-25 22:54:42','2021-12-25 22:54:42','','alter table cw_time_time_model add class varchar(255) NULL','alter table cw_time_time_model add class varchar(255)',0,'condition is false','',''),
(781,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_model\', \'class\')','',823,'2021-12-25 22:54:40','\0','init timeTimeModel.class','','2021-12-25 22:54:42','2021-12-25 22:54:42','','update cw_time_time_model set class=\'at.clockwork.time.timeModel.domain.TimeTimeModel\' where class is null or class = \'\'','update cw_time_time_model set class=\'at.clockwork.time.timeModel.domain.TimeTimeModel\' where class is null or class = \'\'',0,'OK','',''),
(782,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_plan\', \'class\')','',824,'2021-12-25 22:54:40','\0','add column timeTimeModel.class','','2021-12-25 22:54:42','2021-12-25 22:54:42','','alter table cw_time_time_plan add class varchar(255) NULL','alter table cw_time_time_plan add class varchar(255)',0,'condition is false','',''),
(783,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_plan\', \'class\')','',825,'2021-12-25 22:54:40','\0','init timeTimePlan.class','','2021-12-25 22:54:42','2021-12-25 22:54:42','','update cw_time_time_plan set class=\'at.clockwork.time.timePlan.domain.TimeTimePlan\' where class is null or class = \'\'','update cw_time_time_plan set class=\'at.clockwork.time.timePlan.domain.TimeTimePlan\' where class is null or class = \'\'',0,'OK','',''),
(784,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_email\', \'recipient\')','',826,'2021-12-25 22:54:40','\0','set cw_email.recipient to varchar(1000)','','2021-12-25 22:54:43','2021-12-25 22:54:43','','alter table cw_email alter column recipient varchar(1000)','alter table cw_email modify recipient varchar(1000)',0,'OK','',''),
(785,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_category_type\', \'show_in_reports\')','',827,'2021-12-25 22:54:40','\0','add column cw_person_category_type.show_in_reports','','2021-12-25 22:54:43','2021-12-25 22:54:43','','alter table cw_person_category_type add show_in_reports BIT','alter table cw_person_category_type add column show_in_reports BIT',0,'condition is false','',''),
(786,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_category_type\', \'show_in_reports\')','',828,'2021-12-25 22:54:40','\0','init cw_person_category_type.show_in_reports','','2021-12-25 22:54:43','2022-11-04 07:48:18','','update cw_person_category_type set show_in_reports = 0 where show_in_reports is null','update cw_person_category_type set show_in_reports = 0 where show_in_reports is null',0,'OK','',''),
(787,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_order\', \'duration\')','',829,'2021-12-25 22:54:40','\0','add column cw_order.duration','','2021-12-25 22:54:43','2021-12-25 22:54:43','','alter table cw_order add duration FLOAT(53)','alter table cw_order add column duration DOUBLE',0,'condition is false','',''),
(788,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_order\', \'duration\')','',830,'2021-12-25 22:54:40','\0','init cw_order.duration','','2021-12-25 22:54:43','2021-12-25 22:54:43','','update cw_order set duration = 0 where duration is null','update cw_order set duration = 0 where duration is null',0,'OK','',''),
(789,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_order\', \'quantity\')','',831,'2021-12-25 22:54:40','\0','add column cw_order.quantity','','2021-12-25 22:54:43','2021-12-25 22:54:43','','alter table cw_order add quantity FLOAT(53)','alter table cw_order add column quantity DOUBLE',0,'condition is false','',''),
(790,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_order\', \'quantity\')','',832,'2021-12-25 22:54:40','\0','init cw_order.quantity','','2021-12-25 22:54:43','2021-12-25 22:54:43','','update cw_order set quantity = 0 where quantity is null','update cw_order set quantity = 0 where quantity is null',0,'OK','',''),
(791,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_order_item\', \'quantity\')','',833,'2021-12-25 22:54:40','\0','add column cw_order_item.quantity','','2021-12-25 22:54:43','2021-12-25 22:54:43','','alter table cw_order_item add quantity FLOAT(53)','alter table cw_order_item add column quantity DOUBLE',0,'condition is false','',''),
(792,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_order_item\', \'quantity\')','',834,'2021-12-25 22:54:40','\0','init cw_order_item.quantity','','2021-12-25 22:54:43','2021-12-25 22:54:43','','update cw_order_item set quantity = 0 where quantity is null','update cw_order_item set quantity = 0 where quantity is null',0,'OK','',''),
(793,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'no_rounding\')','',835,'2021-12-25 22:54:40','\0','add column cw_absence.no_rounding','','2021-12-25 22:54:43','2021-12-25 22:54:43','','alter table cw_absence add no_rounding BIT','alter table cw_absence add column no_rounding BIT',0,'condition is false','',''),
(794,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'no_rounding\')','',836,'2021-12-25 22:54:40','\0','init cw_absence.no_rounding','','2021-12-25 22:54:43','2022-11-04 07:48:18','','update cw_absence set no_rounding = 0 where no_rounding is null','update cw_absence set no_rounding = 0 where no_rounding is null',0,'OK','',''),
(795,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'no_too_soon\')','',837,'2021-12-25 22:54:40','\0','add column cw_absence.no_too_soon','','2021-12-25 22:54:43','2021-12-25 22:54:43','','alter table cw_absence add no_too_soon BIT','alter table cw_absence add column no_too_soon BIT',0,'condition is false','',''),
(796,3,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'no_too_soon\')','',838,'2021-12-25 22:54:40','\0','init cw_absence.no_too_soon','','2021-12-25 22:54:43','2022-11-04 07:48:18','','update cw_absence set no_too_soon = 0 where no_too_soon is null','update cw_absence set no_too_soon = 0 where no_too_soon is null',0,'OK','',''),
(797,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'no_too_late\')','',839,'2021-12-25 22:54:40','\0','add column cw_absence.no_too_late','','2021-12-25 22:54:43','2021-12-25 22:54:43','','alter table cw_absence add no_too_late BIT','alter table cw_absence add column no_too_late BIT',0,'condition is false','',''),
(798,3,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'no_too_late\')','',840,'2021-12-25 22:54:40','\0','init cw_absence.no_too_late','','2021-12-25 22:54:43','2022-11-04 07:48:18','','update cw_absence set no_too_late = 0 where no_too_late is null','update cw_absence set no_too_late = 0 where no_too_late is null',0,'OK','',''),
(799,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_model_2_detail\', \'commercial_sum_time\')','',841,'2021-12-25 22:54:40','\0','add column cw_time_model_2_detail.commercial_sum_time','','2021-12-25 22:54:43','2021-12-25 22:54:43','','alter table cw_time_model_2_detail add commercial_sum_time INTEGER','alter table cw_time_model_2_detail add column commercial_sum_time INTEGER',0,'condition is false','',''),
(800,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_model_2_detail\', \'commercial_sum_time\')','',842,'2021-12-25 22:54:40','\0','init cw_time_model_2_detail.commercial_sum_time = 0','','2021-12-25 22:54:43','2021-12-25 22:54:43','','update cw_time_model_2_detail set commercial_sum_time = 0 where commercial_sum_time is null','update cw_time_model_2_detail set commercial_sum_time = 0 where commercial_sum_time is null',0,'OK','',''),
(801,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'absence_value_like_enum\') &&\n			at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'value_like_pause\')','',843,'2022-07-02 00:43:29','\0','init absenceValueLikeEnum','','2022-07-02 00:43:30','2022-07-02 00:43:30','','','',0,'OK','','import at.clockwork.transfer.gwtTransfer.client.enumeration.AbsenceValueLikeEnum\nimport at.clockwork.time.domain.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def absenceWriteService = Holders.grailsApplication.mainContext.getBean \'absenceWriteService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        Absence.findAll().each { absence ->\n\n            if (absence.absenceValueLikeEnum == null) {\n\n                if (absence.valueLikePause == true)\n                    absence.absenceValueLikeEnum = AbsenceValueLikeEnum.PAUSE\n                else\n                    absence.absenceValueLikeEnum = AbsenceValueLikeEnum.PRESENCE\n\n                absenceWriteService.save(absence)\n\n    		}\n\n        }\n\n		true\n	}\n}'),
(802,1,'at.clockwork.system.service.DataSourceService.existsTableInDatabase(connection, \'cw_menu\')','',844,'2022-07-02 00:43:29','\0','bereinigen: cw_menu','','2022-07-02 00:43:30','2022-07-02 00:43:30','','','',0,'OK','','import at.clockwork.security.domain.*\n\nclass UpdateScriptService {\n\n	def run(def connection, def dataSourceFields) {\n\n		Menu.executeQuery(\"\"\"select id from Menu where name in (\n		    \'menu.approvedTimeByMinutes.label\'\n		    , \'menu.approvedBookingTime.label\'\n		    )\"\"\").each {\n		    Menu menu = Menu.get(it)\n		    if (menu) {\n			    OperatorType2Menu.executeUpdate(\"delete from OperatorType2Menu where menu=?\", menu)\n			    User2Menu.executeUpdate(\"delete from User2Menu where menu=?\", menu)\n			    OperatorType2AutoStartedMenu.executeUpdate(\"delete from OperatorType2AutoStartedMenu where menu=?\", menu)\n			    menu.delete(flush:true)\n			}\n		}\n\n		true\n	}\n}'),
(803,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_balance\', \'present\')','',845,'2022-07-02 00:43:29','\0','add column cw_person_2_balance.present','','2022-07-02 00:43:30','2022-07-02 00:43:30','','alter table cw_person_2_balance add present BIT','alter table cw_person_2_balance add column present BIT',0,'condition is false','',''),
(804,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_balance\', \'present\')','',846,'2022-07-02 00:43:29','\0','init cw_person_2_balance.present','','2022-07-02 00:43:30','2022-11-04 07:48:18','','update cw_person_2_balance set present = 0 where present is null','update cw_person_2_balance set present = 0 where present is null',0,'OK','',''),
(805,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_calculation_day_info\', \'calculated_pause\')','',847,'2022-07-02 00:43:29','\0','add column cw_calculation_day_info.calculated_pause','','2022-07-02 00:43:30','2022-07-02 00:43:30','','alter table cw_calculation_day_info add calculated_pause BIT','alter table cw_calculation_day_info add column calculated_pause BIT',0,'condition is false','',''),
(806,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_calculation_day_info\', \'calculated_pause\')','',848,'2022-07-02 00:43:29','\0','init cw_calculation_day_info.calculated_pause = 0','','2022-07-02 00:43:30','2022-07-02 00:43:30','','update cw_calculation_day_info set calculated_pause = 0 where calculated_pause is null','update cw_calculation_day_info set calculated_pause = 0 where calculated_pause is null',0,'OK','',''),
(807,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_calculation_day_info\', \'calculated_rounding\')','',849,'2022-07-02 00:43:29','\0','add column cw_calculation_day_info.calculated_rounding','','2022-07-02 00:43:30','2022-07-02 00:43:30','','alter table cw_calculation_day_info add calculated_rounding BIT','alter table cw_calculation_day_info add column calculated_rounding BIT',0,'condition is false','',''),
(808,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_calculation_day_info\', \'calculated_rounding\')','',850,'2022-07-02 00:43:29','\0','init cw_calculation_day_info.calculated_rounding = 0','','2022-07-02 00:43:30','2022-07-02 00:43:30','','update cw_calculation_day_info set calculated_rounding = 0 where calculated_rounding is null','update cw_calculation_day_info set calculated_rounding = 0 where calculated_rounding is null',0,'OK','',''),
(809,1,'at.clockwork.system.service.DataSourceService.existsTableInDatabase(connection, \'cw_time_time_model\')  &&\n			at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_model\', \'calculation_program\')  &&\n			at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_model\', \'calculation_program2\')  &&\n			at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_model\', \'calculation_program3\')  &&\n			at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_model\', \'calculation_program4\')  &&\n			at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_model\', \'calculation_program5\')','',851,'2022-07-02 00:43:29','\0','bereinigen: getTimeModel2PlusTime','','2022-07-02 00:43:30','2022-07-02 00:43:30','','','',0,'OK','','import at.clockwork.time.timeModel.domain.*\n\nclass UpdateScriptService {\n\n	def run(def connection, def dataSourceFields) {\n\n        List fields = [\n             \"calculationProgram\"\n            ,\"calculationProgram2\"\n            ,\"calculationProgram3\"\n            ,\"calculationProgram4\"\n            ,\"calculationProgram5\"\n        ]\n	    List list = [\n	         [search:\"getTimeModel2PlusTime(calculationData.timeTimeModel, calculationData.dayEnum)\", replace:\"getTimeModel2PlusTime(calculationData)\"]\n	        ,[search:\"getTimeModel2PlusTime(_cd.timeTimeModel, _cd.dayEnum)\", replace:\"getTimeModel2PlusTime(calculationData)\"]\n	        ,[search:\"getTimeModel2MinusTime(calculationData.timeTimeModel, calculationData.dayEnum)\", replace:\"getTimeModel2MinusTime(calculationData)\"]\n	        ,[search:\"getTimeModel2MinusTime(_cd.timeTimeModel, _cd.dayEnum)\", replace:\"getTimeModel2MinusTime(calculationData)\"]\n	        ,[search:\"getTimeModel2PauseTime(calculationData.timeTimeModel, calculationData.dayEnum)\", replace:\"getTimeModel2PauseTime(calculationData)\"]\n	        ,[search:\"getTimeModel2PauseTime(_cd.timeTimeModel, _cd.dayEnum)\", replace:\"getTimeModel2PauseTime(calculationData)\"]\n	    ]\n\n        for (String field in fields) {\n            for (Map mapItem in list) {\n\n                String selectStatement = \"select id, $field from TimeTimeModel where $field like \'%${mapItem.search}%\'\"\n                TimeTimeModel.executeQuery(selectStatement).each {\n                    TimeTimeModel timeTimeModel = TimeTimeModel.get(it[0])\n                    if (timeTimeModel) {\n                        String text = it[1]\n                        text = text.replace(mapItem.search, mapItem.replace)\n                        String updateStatement = \"update TimeTimeModel set $field=:text where id=:id\"\n                        TimeTimeModel.executeUpdate(updateStatement, [id:it[0], text:text])\n                        timeTimeModel.save(flush:true)\n                    }\n                }\n\n            }\n        }\n\n		true\n	}\n}'),
(810,1,'at.clockwork.system.service.DataSourceService.existsTableInDatabase(connection, \'cw_script\')  &&\n			at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_script\', \'code\')  &&\n			at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_script\', \'code2\')  &&\n			at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_script\', \'code3\')  &&\n			at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_script\', \'code4\')  &&\n			at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_script\', \'code5\')','',852,'2022-07-02 00:43:29','\0','bereinigen: getTimeModel2PlusTime','','2022-07-02 00:43:31','2022-07-02 00:43:31','','','',0,'OK','','import at.clockwork.common.domain.*\n\nclass UpdateScriptService {\n\n	def run(def connection, def dataSourceFields) {\n\n        List fields = [\n             \"code\"\n            ,\"code2\"\n            ,\"code3\"\n            ,\"code4\"\n            ,\"code5\"\n        ]\n	    List list = [\n	         [search:\"getTimeModel2PlusTime(calculationData.timeTimeModel, calculationData.dayEnum)\", replace:\"getTimeModel2PlusTime(calculationData)\"]\n	        ,[search:\"getTimeModel2PlusTime(_cd.timeTimeModel, _cd.dayEnum)\", replace:\"getTimeModel2PlusTime(calculationData)\"]\n	        ,[search:\"getTimeModel2MinusTime(calculationData.timeTimeModel, calculationData.dayEnum)\", replace:\"getTimeModel2MinusTime(calculationData)\"]\n	        ,[search:\"getTimeModel2MinusTime(_cd.timeTimeModel, _cd.dayEnum)\", replace:\"getTimeModel2MinusTime(calculationData)\"]\n	        ,[search:\"getTimeModel2PauseTime(calculationData.timeTimeModel, calculationData.dayEnum)\", replace:\"getTimeModel2PauseTime(calculationData)\"]\n	        ,[search:\"getTimeModel2PauseTime(_cd.timeTimeModel, _cd.dayEnum)\", replace:\"getTimeModel2PauseTime(calculationData)\"]\n	    ]\n\n        for (String field in fields) {\n            for (Map mapItem in list) {\n\n                String selectStatement = \"select id, $field from Script where $field like \'%${mapItem.search}%\'\"\n                Script.executeQuery(selectStatement).each {\n                    Script script = Script.get(it[0])\n                    if (script) {\n                        String text = it[1]\n                        text = text.replace(mapItem.search, mapItem.replace)\n                        String updateStatement = \"update Script set $field=:text where id=:id\"\n                        Script.executeUpdate(updateStatement, [id:it[0], text:text])\n                        script.save(flush:true)\n                    }\n                }\n\n            }\n        }\n\n		true\n	}\n}'),
(811,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_model_2_detail\', \'round_base_enum\')','',853,'2022-07-02 00:43:29','\0','init TimeModel2RoundTime.roundBaseEnum','','2022-07-02 00:43:31','2024-03-07 09:48:28','','update cw_time_model_2_detail set round_base_enum = \'ZERO\' where class = \'at.clockwork.time.timeModel.detail.domain.TimeModelRoundTime\'','update cw_time_model_2_detail set round_base_enum = \'ZERO\' where class = \'at.clockwork.time.timeModel.detail.domain.TimeModelRoundTime\'',0,'OK','',''),
(812,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_key_flex\', \'check_only_pointer_at_reading_bookings\')','',854,'2022-07-02 00:43:29','\0','add column cw_terminal_key_flex.check_only_pointer_at_reading_bookings','','2022-07-02 00:43:31','2022-07-02 00:43:31','','alter table cw_terminal_key_flex add check_only_pointer_at_reading_bookings BIT','alter table cw_terminal_key_flex add column check_only_pointer_at_reading_bookings BIT',0,'condition is false','',''),
(813,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_key_flex\', \'check_only_pointer_at_reading_bookings\')','',855,'2022-07-02 00:43:29','\0','init cw_terminal_key_flex.check_only_pointer_at_reading_bookings = 0','','2022-07-02 00:43:31','2022-07-02 00:43:31','','update cw_terminal_key_flex set check_only_pointer_at_reading_bookings = 0 where check_only_pointer_at_reading_bookings is null','update cw_terminal_key_flex set check_only_pointer_at_reading_bookings = 0 where check_only_pointer_at_reading_bookings is null',0,'OK','',''),
(814,3,'at.clockwork.system.service.DataSourceService.existsTableInDatabase(connection, \'cw_person_2_day_setting\')  &&\n            			at.clockwork.system.service.DataSourceService.existsTableInDatabase(connection, \'cw_day_setting_2_additional_data\')','',856,'2022-07-02 00:43:29','\0','transfer cw_day_setting_2_additional_data to cw_person_2_day_setting','','2022-07-02 00:43:31','2025-03-19 11:55:29','','','',0,'OK','','import at.clockwork.time.domain.*\nimport at.clockwork.common.person.domain.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def person2DaySettingWriteService = Holders.grailsApplication.mainContext.getBean \'person2DaySettingWriteService\'\n	def person2DaySetting2AdditionalDataWriteService = Holders.grailsApplication.mainContext.getBean \'person2DaySetting2AdditionalDataWriteService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        DaySetting2AdditionalData.findAll().each { daySetting2AdditionalData ->\n\n            DaySetting2AdditionalData.withNewSession {\n\n                if (daySetting2AdditionalData.person && daySetting2AdditionalData.date && daySetting2AdditionalData.daySettingAdditionalData) {\n\n                    Person2DaySetting person2DaySetting = Person2DaySetting.findWhere(\n                        person : daySetting2AdditionalData.person,\n                        date : daySetting2AdditionalData.date )\n                    if (!person2DaySetting)\n                        person2DaySetting = new Person2DaySetting(\n                            person : daySetting2AdditionalData.person,\n                            date : daySetting2AdditionalData.date )\n\n                    person2DaySettingWriteService.save ( person2DaySetting )\n\n\n                    Person2DaySetting2AdditionalData person2DaySetting2AdditionalData = Person2DaySetting2AdditionalData.findWhere(\n                        person2DaySetting : person2DaySetting,\n                        daySettingAdditionalData : daySetting2AdditionalData.daySettingAdditionalData)\n                    if ( !person2DaySetting2AdditionalData)\n                        person2DaySetting2AdditionalData = new Person2DaySetting2AdditionalData(\n                                        person2DaySetting : person2DaySetting,\n                                        daySettingAdditionalData : daySetting2AdditionalData.daySettingAdditionalData )\n\n                    person2DaySetting2AdditionalData.value = daySetting2AdditionalData.value\n                    person2DaySetting2AdditionalData.info = daySetting2AdditionalData.info\n\n                    person2DaySetting2AdditionalDataWriteService.save ( person2DaySetting2AdditionalData )\n\n                }\n\n            }\n\n        }\n\n		true\n	}\n}'),
(815,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_text\', \'text_de\')','',857,'2022-07-02 00:43:29','\0','set cw_text.text_de to varchar(8000)','','2022-07-02 00:43:31','2022-07-02 00:43:31','','alter table cw_text alter column text_de varchar(8000)','alter table cw_text modify text_de varchar(8000)',0,'OK','',''),
(816,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_text\', \'text_en\')','',858,'2022-07-02 00:43:29','\0','set cw_text.text_en to varchar(8000)','','2022-07-02 00:43:31','2022-07-02 00:43:31','','alter table cw_text alter column text_en varchar(8000)','alter table cw_text modify text_en varchar(8000)',0,'OK','',''),
(817,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'name\')','',859,'2022-07-02 00:43:29','\0','update cw_operator_role set cwid = 100125 where cwid = 100126','','2022-07-02 00:43:31','2022-07-02 00:43:31','','update cw_operator_role set cwid = 100125 where cwid = 100126','update cw_operator_role set cwid = 100125 where cwid = 100126',0,'OK','',''),
(818,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox\', \'anti_pass_back\')','',860,'2022-11-04 07:48:18','\0','add column cw_terminal_datafox.anti_pass_back','','2022-11-04 07:48:20','2022-11-04 07:48:20','','alter table cw_terminal_datafox add anti_pass_back BIT','alter table cw_terminal_datafox add column anti_pass_back BIT',0,'condition is false','',''),
(819,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox\', \'anti_pass_back\')','',861,'2022-11-04 07:48:18','\0','init cw_terminal_datafox.anti_pass_back = 0','','2022-11-04 07:48:20','2022-11-04 07:48:20','','update cw_terminal_datafox set anti_pass_back = 0 where anti_pass_back is null','update cw_terminal_datafox set anti_pass_back = 0 where anti_pass_back is null',0,'OK','',''),
(820,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'ignore_anti_pass_back\')','',862,'2022-11-04 07:48:18','\0','add column cw_datafox_person_day_access_schedule_2_detail.ignore_anti_pass_back','','2022-11-04 07:48:20','2022-11-04 07:48:20','','alter table cw_datafox_person_day_access_schedule_2_detail add ignore_anti_pass_back BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column ignore_anti_pass_back BIT',0,'condition is false','',''),
(821,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'ignore_anti_pass_back\')','',863,'2022-11-04 07:48:18','\0','init cw_datafox_person_day_access_schedule_2_detail.ignore_anti_pass_back = 0','','2022-11-04 07:48:20','2022-11-04 07:48:20','','update cw_datafox_person_day_access_schedule_2_detail set ignore_anti_pass_back = 0 where ignore_anti_pass_back is null','update cw_datafox_person_day_access_schedule_2_detail set ignore_anti_pass_back = 0 where ignore_anti_pass_back is null',0,'OK','',''),
(822,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'use_pin_code\')','',864,'2022-11-04 07:48:18','\0','add column cw_datafox_person_day_access_schedule_2_detail.use_pin_code','','2022-11-04 07:48:20','2022-11-04 07:48:20','','alter table cw_datafox_person_day_access_schedule_2_detail add use_pin_code BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column use_pin_code BIT',0,'condition is false','',''),
(823,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'use_pin_code\')','',865,'2022-11-04 07:48:18','\0','init cw_datafox_person_day_access_schedule_2_detail.use_pin_code = 0','','2022-11-04 07:48:20','2022-11-04 07:48:20','','update cw_datafox_person_day_access_schedule_2_detail set use_pin_code = 0 where use_pin_code is null','update cw_datafox_person_day_access_schedule_2_detail set use_pin_code = 0 where use_pin_code is null',0,'OK','',''),
(824,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'entry_value\')','',866,'2022-11-04 07:48:18','\0','add column cw_datafox_person_day_access_schedule_2_detail.entry_value','','2022-11-04 07:48:20','2022-11-04 07:48:20','','alter table cw_datafox_person_day_access_schedule_2_detail add entry_value BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column entry_value BIT',0,'condition is false','',''),
(825,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'entry_value\')','',867,'2022-11-04 07:48:18','\0','init cw_datafox_person_day_access_schedule_2_detail.entry_value = 0','','2022-11-04 07:48:20','2022-11-04 07:48:20','','update cw_datafox_person_day_access_schedule_2_detail set entry_value = 0 where entry_value is null','update cw_datafox_person_day_access_schedule_2_detail set entry_value = 0 where entry_value is null',0,'OK','',''),
(826,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'exit_value\')','',868,'2022-11-04 07:48:18','\0','add column cw_datafox_person_day_access_schedule_2_detail.exit_value','','2022-11-04 07:48:20','2022-11-04 07:48:20','','alter table cw_datafox_person_day_access_schedule_2_detail add exit_value BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column exit_value BIT',0,'condition is false','',''),
(827,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'exit_value\')','',869,'2022-11-04 07:48:18','\0','init cw_datafox_person_day_access_schedule_2_detail.exit_value = 0','','2022-11-04 07:48:20','2022-11-04 07:48:20','','update cw_datafox_person_day_access_schedule_2_detail set exit_value = 0 where exit_value is null','update cw_datafox_person_day_access_schedule_2_detail set exit_value = 0 where exit_value is null',0,'OK','',''),
(828,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_system_configuration\', \'double_value\')','',-103,'2022-11-04 07:48:18','\0','add column cw_system_configuration.double_value','','2022-11-04 07:48:20','2022-11-04 07:48:20','','alter table cw_system_configuration add double_value FLOAT(53) NULL','alter table cw_system_configuration add double_value DOUBLE',0,'condition is false','',''),
(829,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_system_configuration\', \'double_value\')','',-102,'2022-11-04 07:48:18','\0','init cw_system_configuration.double_value = 0','','2022-11-04 07:48:20','2022-11-04 07:48:20','','update cw_system_configuration set double_value = 0 where double_value is null','update cw_system_configuration set double_value = 0 where double_value is null',0,'OK','',''),
(830,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_plan\', \'weekly_working_hours\')','',872,'2022-11-04 07:48:18','\0','add column cw_time_time_plan.weekly_working_hours','','2022-11-04 07:48:20','2022-11-04 07:48:20','','alter table cw_time_time_plan add weekly_working_hours FLOAT(53) NULL','alter table cw_time_time_plan add weekly_working_hours DOUBLE',0,'condition is false','',''),
(831,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_plan\', \'weekly_working_hours\')','',873,'2022-11-04 07:48:18','\0','init cw_time_time_plan.weekly_working_hours = 0','','2022-11-04 07:48:20','2022-11-04 07:48:20','','update cw_time_time_plan set weekly_working_hours = 0 where weekly_working_hours is null','update cw_time_time_plan set weekly_working_hours = 0 where weekly_working_hours is null',0,'OK','',''),
(832,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_plan\', \'weekly_working_days\')','',874,'2022-11-04 07:48:18','\0','add column cw_time_time_plan.weekly_working_days','','2022-11-04 07:48:20','2022-11-04 07:48:20','','alter table cw_time_time_plan add weekly_working_days FLOAT(53) NULL','alter table cw_time_time_plan add weekly_working_days DOUBLE',0,'condition is false','',''),
(833,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_plan\', \'weekly_working_days\')','',875,'2022-11-04 07:48:18','\0','init cw_time_time_plan.weekly_working_days = 0','','2022-11-04 07:48:20','2022-11-04 07:48:20','','update cw_time_time_plan set weekly_working_days = 0 where weekly_working_days is null','update cw_time_time_plan set weekly_working_days = 0 where weekly_working_days is null',0,'OK','',''),
(834,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'calculate\')','',876,'2022-11-04 07:48:18','\0','add column cw_time_time_type.calculate','','2022-11-04 07:48:20','2022-11-04 07:48:20','','alter table cw_time_time_type add calculate BIT','alter table cw_time_time_type add column calculate BIT',0,'condition is false','',''),
(835,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'calculate\')','',877,'2022-11-04 07:48:18','\0','init cw_time_time_type.calculate = 0','','2022-11-04 07:48:20','2022-11-04 07:48:20','','update cw_time_time_type set calculate = 0 where calculate is null','update cw_time_time_type set calculate = 0 where calculate is null',0,'OK','',''),
(836,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'credit_in_days\')','',878,'2022-11-04 07:48:18','\0','add column cw_time_time_type.credit_in_days','','2022-11-04 07:48:20','2022-11-04 07:48:20','','alter table cw_time_time_type add credit_in_days FLOAT(53)','alter table cw_time_time_type add column credit_in_days DOUBLE',0,'condition is false','',''),
(837,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'credit_in_days\')','',879,'2022-11-04 07:48:18','\0','init cw_time_time_type.credit_in_days = 0','','2022-11-04 07:48:20','2022-11-04 07:48:20','','update cw_time_time_type set credit_in_days = 0 where credit_in_days is null','update cw_time_time_type set credit_in_days = 0 where credit_in_days is null',0,'OK','',''),
(838,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'credit\') &&\n			at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'credit_in_hours\')','',880,'2022-11-04 07:48:18','\0','drop cw_time_time_type.credit_in_hours','','2022-11-04 07:48:20','2022-11-04 07:48:20','','alter table cw_time_time_type drop column credit_in_hours','alter table cw_time_time_type drop column credit_in_hours',0,'OK','',''),
(839,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'credit\') &&\n			!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'credit_in_hours\')','',881,'2022-11-04 07:48:18','\0','change column cw_time_time_type.credit to credit_in_hours','','2022-11-04 07:48:20','2022-11-04 07:48:20','','EXEC sp_rename \'cw_time_time_type.credit\', \'credit_in_hours\', \'COLUMN\'','alter table cw_time_time_type change column credit credit_in_hours DOUBLE',0,'OK','',''),
(840,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'full_time_hours\')','',882,'2022-11-04 07:48:18','\0','add column cw_time_time_type.full_time_hours','','2022-11-04 07:48:20','2022-11-04 07:48:20','','alter table cw_time_time_type add full_time_hours FLOAT(53)','alter table cw_time_time_type add column full_time_hours DOUBLE',0,'condition is false','',''),
(841,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'full_time_hours\')','',883,'2022-11-04 07:48:18','\0','init cw_time_time_type.full_time_hours = 0','','2022-11-04 07:48:20','2022-11-04 07:48:20','','update cw_time_time_type set full_time_hours = 0 where full_time_hours is null','update cw_time_time_type set full_time_hours = 0 where full_time_hours is null',0,'OK','',''),
(842,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'full_time_days\')','',884,'2022-11-04 07:48:18','\0','add column cw_time_time_type.full_time_days','','2022-11-04 07:48:20','2022-11-04 07:48:20','','alter table cw_time_time_type add full_time_days FLOAT(53)','alter table cw_time_time_type add column full_time_days DOUBLE',0,'condition is false','',''),
(843,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'full_time_days\')','',885,'2022-11-04 07:48:18','\0','init cw_time_time_type.full_time_days = 0','','2022-11-04 07:48:20','2022-11-04 07:48:20','','update cw_time_time_type set full_time_days = 0 where full_time_days is null','update cw_time_time_type set full_time_days = 0 where full_time_days is null',0,'OK','',''),
(844,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'credit_in_days\') &&\n			at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'credit_in_hours\')','',886,'2022-11-04 07:48:18','\0','init cw_time_time_type.credit_in_days = credit_in_hours','','2022-11-04 07:48:20','2022-11-04 07:48:20','','update cw_time_time_type set credit_in_days = credit_in_hours','update cw_time_time_type set credit_in_days = credit_in_hours',0,'OK','',''),
(845,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_loading_place\', \'active\')','',887,'2022-11-04 07:48:19','\0','add column cw_loading_place.active','','2022-11-04 07:48:21','2022-11-04 07:48:21','','alter table cw_loading_place add active BIT','alter table cw_loading_place add column active BIT',0,'condition is false','',''),
(846,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_loading_place\', \'active\')','',888,'2022-11-04 07:48:19','\0','init cw_loading_place.active = 1','','2022-11-04 07:48:21','2022-11-04 07:48:21','','update cw_loading_place set active = 1 where active is null or active = 0','update cw_loading_place set active = 1 where active is null or active = 0',0,'OK','',''),
(847,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_system_configuration\', \'pw_value\')','',889,'2022-11-04 07:48:19','\0','add column cw_system_configuration.pw_value','','2022-11-04 07:48:21','2022-11-04 07:48:21','','alter table cw_system_configuration add pw_value varchar(255) NULL','alter table cw_system_configuration add pw_value varchar(255)',0,'condition is false','',''),
(848,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_system_configuration\', \'str_value\') &&\n			at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_system_configuration\', \'pw_value\')','',890,'2022-11-04 07:48:19','\0','init cw_system_configuration.pw_value = cw_system_configuration.str_value, cw_system_configuration_str_value = \'\' where cwid = 3005','','2022-11-04 07:48:21','2022-11-04 07:48:21','','update cw_system_configuration set pw_value = str_value, str_value = \'\' where cwid = 3005','update cw_system_configuration set pw_value = str_value, str_value = \'\' where cwid = 3005',0,'OK','',''),
(849,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox_2_reader\', \'module_or_bus\')','',891,'2022-11-04 07:48:19','\0','add column cw_terminal_datafox_2_reader.module_or_bus','','2022-11-04 07:48:21','2022-11-04 07:48:21','','alter table cw_terminal_datafox_2_reader add module_or_bus INTEGER','alter table cw_terminal_datafox_2_reader add column module_or_bus INTEGER',0,'condition is false','',''),
(850,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox_2_reader\', \'module_or_bus\')','',892,'2022-11-04 07:48:19','\0','init cw_terminal_datafox_2_reader.module_or_bus = 1','','2022-11-04 07:48:21','2022-11-04 07:48:21','','update cw_terminal_datafox_2_reader set module_or_bus = 1 where module_or_bus is null or module_or_bus = 0','update cw_terminal_datafox_2_reader set module_or_bus = 1 where module_or_bus is null or module_or_bus = 0',0,'OK','',''),
(851,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_log_communication\', \'date_created\')','',893,'2022-11-04 07:48:19','\0','add column cw_log_communication.date_created','','2022-11-04 07:48:21','2022-11-04 07:48:21','','alter table cw_log_communication add date_created datetime','',0,'condition is false','',''),
(852,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_log_communication\', \'date_created\')','',894,'2022-11-04 07:48:19','\0','init column cw_log_communication.date_created','','2022-11-04 07:48:21','2022-11-04 07:48:21','','update cw_log_communication set date_created = getdate() where date_created is null','update cw_log_communication set date_created = curdate() where date_created = \'0000-00-00\' or date_created is null',0,'condition is false','',''),
(853,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_log_communication\', \'last_updated\')','',895,'2022-11-04 07:48:19','\0','add column cw_log_communication.last_updated','','2022-11-04 07:48:21','2022-11-04 07:48:21','','alter table cw_log_communication add last_updated datetime','',0,'condition is false','',''),
(854,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_log_communication\', \'last_updated\')','',896,'2022-11-04 07:48:19','\0','init column cw_log_communication.last_updated','','2022-11-04 07:48:21','2022-11-04 07:48:21','','update cw_log_communication set last_updated = getdate() where last_updated is null','update cw_log_communication set last_updated = curdate() where last_updated = \'0000-00-00\' or last_updated is null',0,'condition is false','',''),
(855,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_identification\', \'date_created\')','',897,'2022-11-04 07:48:19','\0','add column cw_person_2_identification.date_created','','2022-11-04 07:48:21','2022-11-04 07:48:21','','alter table cw_person_2_identification add date_created datetime','',0,'OK','',''),
(856,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_identification\', \'date_created\')','',898,'2022-11-04 07:48:19','\0','init column cw_person_2_identification.date_created','','2022-11-04 07:48:21','2022-11-04 07:48:21','','update cw_person_2_identification set date_created = getdate() where date_created is null','update cw_person_2_identification set date_created = curdate() where date_created = \'0000-00-00\' or date_created is null',0,'OK','',''),
(857,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_identification\', \'last_updated\')','',899,'2022-11-04 07:48:19','\0','add column cw_person_2_identification.last_updated','','2022-11-04 07:48:21','2022-11-04 07:48:21','','alter table cw_person_2_identification add last_updated datetime','',0,'OK','',''),
(858,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_identification\', \'last_updated\')','',900,'2022-11-04 07:48:19','\0','init column cw_person_2_identification.last_updated','','2022-11-04 07:48:21','2022-11-04 07:48:21','','update cw_person_2_identification set last_updated = getdate() where last_updated is null','update cw_person_2_identification set last_updated = curdate() where last_updated = \'0000-00-00\' or last_updated is null',0,'OK','',''),
(982,0,'at.clockwork.system.service.DataSourceService.existsTableInDatabase(connection, \'cw_terminal_datafox\')  &&\n            			at.clockwork.system.service.DataSourceService.existsTableInDatabase(connection, \'cw_terminal_type\')','',901,'2022-11-05 13:40:53','\0','set isUsed = 1 at Datafox-Terminals','',NULL,'2022-11-05 13:40:53','','','',0,NULL,'','import at.clockwork.terminal.domain.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def terminalDatafoxWriteService = Holders.grailsApplication.mainContext.getBean \'terminalDatafoxWriteService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        TerminalDatafox\n            .findAllWhere(isUsed:false, deleted:false)\n            .each { TerminalDatafox itTerminalDatafox ->\n\n            itTerminalDatafox.isUsed = true\n            terminalDatafoxWriteService.save(itTerminalDatafox)\n\n        }\n\n		true\n\n	}\n}'),
(983,0,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'show_head\')','',902,'2022-11-05 13:40:53','\0','add column cw_group_definition_detail.show_head','',NULL,'2022-11-05 13:40:53','','alter table cw_group_definition_detail add show_head BIT','alter table cw_group_definition_detail add column show_head BIT',0,NULL,'',''),
(984,0,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'show_head\')','',903,'2022-11-05 13:40:53','\0','init cw_group_definition_detail.show_head = 1','',NULL,'2022-11-05 13:40:53','','update cw_group_definition_detail set show_head = 1 where show_head is nullor show_head = 0','update cw_group_definition_detail set show_head = 1 where show_head is null or show_head = 0',0,NULL,'',''),
(985,0,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'show_foot\')','',904,'2022-11-05 13:40:53','\0','add column cw_group_definition_detail.show_foot','',NULL,'2022-11-05 13:40:53','','alter table cw_group_definition_detail add show_foot BIT','alter table cw_group_definition_detail add column show_foot BIT',0,NULL,'',''),
(986,0,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'show_foot\')','',905,'2022-11-05 13:40:53','\0','init cw_group_definition_detail.show_foot = 1','',NULL,'2022-11-05 13:40:53','','update cw_group_definition_detail set show_foot = 1 where show_foot is null or show_foot = 0','update cw_group_definition_detail set show_foot = 1 where show_foot is null or show_foot = 0',0,NULL,'',''),
(987,0,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'show_sum\')','',906,'2022-11-05 13:40:53','\0','add column cw_group_definition_detail.show_sum','',NULL,'2022-11-05 13:40:53','','alter table cw_group_definition_detail add show_sum BIT','alter table cw_group_definition_detail add column show_sum BIT',0,NULL,'',''),
(988,0,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'show_sum\')','',907,'2022-11-05 13:40:53','\0','init cw_group_definition_detail.show_sum = 1','',NULL,'2022-11-05 13:40:53','','update cw_group_definition_detail set show_sum = 1 where show_sum is null or show_sum = 0','update cw_group_definition_detail set show_sum = 1 where show_sum is null or show_sum = 0',0,NULL,'',''),
(989,0,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'show_count\')','',908,'2022-11-05 13:40:53','\0','add column cw_group_definition_detail.show_count','',NULL,'2022-11-05 13:40:53','','alter table cw_group_definition_detail add show_count BIT','alter table cw_group_definition_detail add column show_count BIT',0,NULL,'',''),
(990,0,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'show_count\')','',909,'2022-11-05 13:40:53','\0','init cw_group_definition_detail.show_count = 1','',NULL,'2022-11-05 13:40:53','','update cw_group_definition_detail set show_count = 1 where show_count is null or show_count = 0','update cw_group_definition_detail set show_count = 1 where show_count is null or show_count = 0',0,NULL,'',''),
(991,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_detail\')','',910,'2022-11-05 13:40:53','\0','add column cw_operator_role.show_detail','','2022-11-05 13:40:54','2022-11-05 13:40:54','','alter table cw_operator_role add show_detail BIT','alter table cw_operator_role add column show_detail BIT',0,'condition is false','',''),
(992,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_detail\')','',911,'2022-11-05 13:40:53','\0','init cw_operator_role.show_detail = 1','','2022-11-05 13:40:54','2022-11-05 13:40:54','','update cw_operator_role set show_detail = 1 where show_detail is null or show_detail = 0','update cw_operator_role set show_detail = 1 where show_detail is null or show_detail = 0',0,'OK','',''),
(993,0,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_head\')','',912,'2022-11-05 13:40:53','\0','add column cw_operator_role.show_head','',NULL,'2022-11-05 13:40:53','','alter table cw_operator_role add show_head BIT','alter table cw_operator_role add column show_head BIT',0,NULL,'',''),
(994,0,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_head\')','',913,'2022-11-05 13:40:53','\0','init cw_operator_role.show_head = 1','',NULL,'2022-11-05 13:40:53','','update cw_operator_role set show_head = 1 where show_head is null or show_head = 0','update cw_operator_role set show_head = 1 where show_head is null or show_head = 0',0,NULL,'',''),
(995,0,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_foot\')','',914,'2022-11-05 13:40:53','\0','add column cw_operator_role.show_foot','',NULL,'2022-11-05 13:40:53','','alter table cw_operator_role add show_foot BIT','alter table cw_operator_role add column show_foot BIT',0,NULL,'',''),
(996,0,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_foot\')','',915,'2022-11-05 13:40:53','\0','init cw_operator_role.show_foot = 1','',NULL,'2022-11-05 13:40:53','','update cw_operator_role set show_foot = 1 where show_foot is null or show_foot = 0','update cw_operator_role set show_foot = 1 where show_foot is null or show_foot = 0',0,NULL,'',''),
(997,0,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_sum\')','',916,'2022-11-05 13:40:53','\0','add column cw_operator_role.show_sum','',NULL,'2022-11-05 13:40:53','','alter table cw_operator_role add show_sum BIT','alter table cw_operator_role add column show_sum BIT',0,NULL,'',''),
(998,0,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_sum\')','',917,'2022-11-05 13:40:53','\0','init cw_operator_role.show_sum = 1','',NULL,'2022-11-05 13:40:53','','update cw_operator_role set show_sum = 1 where show_sum is null or show_sum = 0','update cw_operator_role set show_sum = 1 where show_sum is null or show_sum = 0',0,NULL,'',''),
(999,0,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_count\')','',918,'2022-11-05 13:40:53','\0','add column cw_operator_role.show_count','',NULL,'2022-11-05 13:40:53','','alter table cw_operator_role add show_count BIT','alter table cw_operator_role add column show_count BIT',0,NULL,'',''),
(1000,0,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_count\')','',919,'2022-11-05 13:40:53','\0','init cw_operator_role.show_count = 1','',NULL,'2022-11-05 13:40:53','','update cw_operator_role set show_count = 1 where show_count is null or show_count = 0','update cw_operator_role set show_count = 1 where show_count is null or show_count = 0',0,NULL,'',''),
(1001,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox\', \'transfer_absences\')','',920,'2022-11-05 13:40:53','\0','add column cw_terminal_datafox.transfer_absences','','2022-11-05 13:40:54','2022-11-05 13:40:54','','alter table cw_terminal_datafox add transfer_absences BIT','alter table cw_terminal_datafox add column transfer_absences BIT',0,'condition is false','',''),
(1002,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox\', \'transfer_absences\')','',921,'2022-11-05 13:40:53','\0','init cw_terminal_datafox.transfer_absences = 0','','2022-11-05 13:40:54','2022-11-05 13:40:54','','update cw_terminal_datafox set transfer_absences = 0 where transfer_absences is null','update cw_terminal_datafox set transfer_absences = 0 where transfer_absences is null',0,'OK','',''),
(1003,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox\', \'transfer_identifications\')','',922,'2022-11-05 13:40:53','\0','add column cw_terminal_datafox.transfer_identifications','','2022-11-05 13:40:54','2022-11-05 13:40:54','','alter table cw_terminal_datafox add transfer_identifications BIT','alter table cw_terminal_datafox add column transfer_identifications BIT',0,'condition is false','',''),
(1004,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox\', \'transfer_identifications\')','',923,'2022-11-05 13:40:53','\0','init cw_terminal_datafox.transfer_identifications = 0','','2022-11-05 13:40:54','2022-11-05 13:40:54','','update cw_terminal_datafox set transfer_identifications = 0 where transfer_identifications is null','update cw_terminal_datafox set transfer_identifications = 0 where transfer_identifications is null',0,'OK','',''),
(1005,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox\', \'check_authorisation\')','',924,'2022-11-05 13:40:53','\0','add column cw_terminal_datafox.check_authorisation','','2022-11-05 13:40:54','2022-11-05 13:40:54','','alter table cw_terminal_datafox add check_authorisation BIT','alter table cw_terminal_datafox add column check_authorisation BIT',0,'condition is false','',''),
(1006,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox\', \'check_authorisation\')','',925,'2022-11-05 13:40:53','\0','init cw_terminal_datafox.check_authorisation = 0','','2022-11-05 13:40:54','2022-11-05 13:40:54','','update cw_terminal_datafox set check_authorisation = 0 where check_authorisation is null','update cw_terminal_datafox set check_authorisation = 0 where check_authorisation is null',0,'OK','',''),
(1007,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox\', \'action1\')','',926,'2022-11-05 13:40:53','\0','add column cw_terminal_datafox.action1','','2022-11-05 13:40:54','2022-11-05 13:40:54','','alter table cw_terminal_datafox add action1 BIT','alter table cw_terminal_datafox add column action1 BIT',0,'condition is false','',''),
(1008,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox\', \'action1\')','',927,'2022-11-05 13:40:53','\0','init cw_terminal_datafox.action1 = 1','','2022-11-05 13:40:54','2022-11-05 13:40:54','','update cw_terminal_datafox set action1 = 1 where action1 is null or action1 = 0','update cw_terminal_datafox set action1 = 1 where action1 is null or action1 = 0',0,'OK','',''),
(1009,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox_2_reader\', \'pin_code\')','',928,'2022-11-05 13:40:53','\0','add column cw_terminal_datafox_2_reader.pin_code','','2022-11-05 13:40:54','2022-11-05 13:40:54','','alter table cw_terminal_datafox_2_reader add pin_code BIT','alter table cw_terminal_datafox_2_reader add column pin_code BIT',0,'condition is false','',''),
(1010,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox_2_reader\', \'pin_code\')','',929,'2022-11-05 13:40:53','\0','init cw_terminal_datafox_2_reader.pin_code = 0','','2022-11-05 13:40:55','2022-11-05 13:40:55','','update cw_terminal_datafox_2_reader set pin_code = 0 where pin_code is null','update cw_terminal_datafox_2_reader set pin_code = 0 where pin_code is null',0,'OK','',''),
(1011,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_sum\')','',930,'2022-11-05 13:40:53','\0','drop cw_operator_role.show_sum','','2022-11-05 13:40:55','2022-11-05 13:40:55','','alter table cw_operator_role drop column show_sum','alter table cw_operator_role drop column show_sum',0,'condition is false','',''),
(1012,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_count\')','',931,'2022-11-05 13:40:53','\0','drop cw_operator_role.show_count','','2022-11-05 13:40:55','2022-11-05 13:40:55','','alter table cw_operator_role drop column show_count','alter table cw_operator_role drop column show_count',0,'condition is false','',''),
(1013,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_head\')','',932,'2022-11-05 13:40:53','\0','drop cw_operator_role.show_head','','2022-11-05 13:40:55','2022-11-05 13:40:55','','alter table cw_operator_role drop column show_head','alter table cw_operator_role drop column show_head',0,'condition is false','',''),
(1014,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_foot\')','',933,'2022-11-05 13:40:53','\0','drop cw_operator_role.show_foot','','2022-11-05 13:40:55','2022-11-05 13:40:55','','alter table cw_operator_role drop column show_foot','alter table cw_operator_role drop column show_foot',0,'condition is false','',''),
(1015,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'show_sum\')','',934,'2022-11-05 13:40:53','\0','drop cw_group_definition_detail.show_sum','','2022-11-05 13:40:55','2022-11-05 13:40:55','','alter table cw_group_definition_detail drop column show_sum','alter table cw_group_definition_detail drop column show_sum',0,'condition is false','',''),
(1016,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'show_count\')','',935,'2022-11-05 13:40:53','\0','drop cw_group_definition_detail.show_count','','2022-11-05 13:40:55','2022-11-05 13:40:55','','alter table cw_group_definition_detail drop column show_count','alter table cw_group_definition_detail drop column show_count',0,'condition is false','',''),
(1017,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'show_head\')','',936,'2022-11-05 13:40:53','\0','drop cw_group_definition_detail.show_head','','2022-11-05 13:40:55','2022-11-05 13:40:55','','alter table cw_group_definition_detail drop column show_head','alter table cw_group_definition_detail drop column show_head',0,'condition is false','',''),
(1018,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'show_foot\')','',937,'2022-11-05 13:40:53','\0','drop cw_group_definition_detail.show_foot','','2022-11-05 13:40:55','2022-11-05 13:40:55','','alter table cw_group_definition_detail drop column show_foot','alter table cw_group_definition_detail drop column show_foot',0,'condition is false','',''),
(1019,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'show_group_header\')','',938,'2022-11-05 13:40:53','\0','add column cw_group_definition_detail.show_group_header','','2022-11-05 13:40:55','2022-11-05 13:40:55','','alter table cw_group_definition_detail add show_group_header BIT','alter table cw_group_definition_detail add column show_group_header BIT',0,'condition is false','',''),
(1020,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'show_group_header\')','',939,'2022-11-05 13:40:53','\0','init cw_group_definition_detail.show_group_header = 1','','2022-11-05 13:40:55','2022-11-05 13:40:55','','update cw_group_definition_detail set show_group_header = 1 where show_group_header is null or show_group_header = 0','update cw_group_definition_detail set show_group_header = 1 where show_group_header is null or show_group_header = 0',0,'OK','',''),
(1021,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'show_group_footer\')','',940,'2022-11-05 13:40:53','\0','add column cw_group_definition_detail.show_group_footer','','2022-11-05 13:40:55','2022-11-05 13:40:55','','alter table cw_group_definition_detail add show_group_footer BIT','alter table cw_group_definition_detail add column show_group_footer BIT',0,'condition is false','',''),
(1022,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'show_group_footer\')','',941,'2022-11-05 13:40:53','\0','init cw_group_definition_detail.show_group_footer = 1','','2022-11-05 13:40:55','2022-11-05 13:40:55','','update cw_group_definition_detail set show_group_footer = 1 where show_group_footer is null or show_group_footer = 0','update cw_group_definition_detail set show_group_footer = 1 where show_group_footer is null or show_group_footer = 0',0,'OK','',''),
(1023,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_column_header\')','',946,'2022-11-05 13:40:53','\0','add column cw_operator_role.show_column_header','','2022-11-05 13:40:55','2022-11-05 13:40:55','','alter table cw_operator_role add show_column_header BIT','alter table cw_operator_role add column show_column_header BIT',0,'condition is false','',''),
(1024,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_column_header\')','',947,'2022-11-05 13:40:53','\0','init cw_operator_role.show_column_header = 1','','2022-11-05 13:40:55','2022-11-05 13:40:55','','update cw_operator_role set show_column_header = 1 where show_column_header is null or show_column_header = 0','update cw_operator_role set show_column_header = 1 where show_column_header is null or show_column_header = 0',0,'OK','',''),
(1025,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_column_footer\')','',948,'2022-11-05 13:40:53','\0','add column cw_operator_role.show_column_footer','','2022-11-05 13:40:55','2022-11-05 13:40:55','','alter table cw_operator_role add show_column_footer BIT','alter table cw_operator_role add column show_column_footer BIT',0,'condition is false','',''),
(1026,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_column_footer\')','',949,'2022-11-05 13:40:53','\0','init cw_operator_role.show_column_footer = 0','','2022-11-05 13:40:55','2022-11-05 13:40:55','','update cw_operator_role set show_column_footer = 0 where show_column_footer is null','update cw_operator_role set show_column_footer = 0 where show_column_footer is null',0,'OK','',''),
(1027,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_page_header\')','',950,'2022-11-05 13:40:53','\0','add column cw_operator_role.show_page_header','','2022-11-05 13:40:55','2022-11-05 13:40:55','','alter table cw_operator_role add show_page_header BIT','alter table cw_operator_role add column show_page_header BIT',0,'condition is false','',''),
(1028,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_page_header\')','',951,'2022-11-05 13:40:53','\0','init cw_operator_role.show_page_header = 0','','2022-11-05 13:40:55','2022-11-05 13:40:55','','update cw_operator_role set show_page_header = 0 where show_page_header is null','update cw_operator_role set show_page_header = 0 where show_page_header is null',0,'OK','',''),
(1029,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_page_footer\')','',952,'2022-11-05 13:40:53','\0','add column cw_operator_role.show_page_footer','','2022-11-05 13:40:55','2022-11-05 13:40:55','','alter table cw_operator_role add show_page_footer BIT','alter table cw_operator_role add column show_page_footer BIT',0,'condition is false','',''),
(1030,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_page_footer\')','',953,'2022-11-05 13:40:53','\0','init cw_operator_role.show_page_footer = 1','','2022-11-05 13:40:55','2022-11-05 13:40:55','','update cw_operator_role set show_page_footer = 1 where show_page_footer is null or show_page_footer = 0','update cw_operator_role set show_page_footer = 1 where show_page_footer is null or show_page_footer = 0',0,'OK','',''),
(1031,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_title\')','',954,'2022-11-05 13:40:53','\0','add column cw_operator_role.show_title','','2022-11-05 13:40:55','2022-11-05 13:40:55','','alter table cw_operator_role add show_title BIT','alter table cw_operator_role add column show_title BIT',0,'condition is false','',''),
(1032,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_title\')','',955,'2022-11-05 13:40:53','\0','init cw_operator_role.show_title = 1','','2022-11-05 13:40:55','2022-11-05 13:40:55','','update cw_operator_role set show_title = 1 where show_title is null or show_title = 0','update cw_operator_role set show_title = 1 where show_title is null or show_title = 0',0,'OK','',''),
(1033,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_last_page_footer\')','',956,'2022-11-05 13:40:53','\0','add column cw_operator_role.show_last_page_footer','','2022-11-05 13:40:55','2022-11-05 13:40:55','','alter table cw_operator_role add show_last_page_footer BIT','alter table cw_operator_role add column show_last_page_footer BIT',0,'condition is false','',''),
(1034,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_last_page_footer\')','',957,'2022-11-05 13:40:53','\0','init cw_operator_role.show_last_page_footer = 0','','2022-11-05 13:40:55','2022-11-05 13:40:55','','update cw_operator_role set show_last_page_footer = 0 where show_last_page_footer is null','update cw_operator_role set show_last_page_footer = 0 where show_last_page_footer is null',0,'OK','',''),
(1035,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_summary\')','',958,'2022-11-05 13:40:53','\0','add column cw_operator_role.show_summary','','2022-11-05 13:40:56','2022-11-05 13:40:56','','alter table cw_operator_role add show_summary BIT','alter table cw_operator_role add column show_summary BIT',0,'condition is false','',''),
(1036,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_summary\')','',959,'2022-11-05 13:40:53','\0','init cw_operator_role.show_summary = 1','','2022-11-05 13:40:56','2022-11-05 13:40:56','','update cw_operator_role set show_summary = 1 where show_summary is null or show_summary = 0','update cw_operator_role set show_summary = 1 where show_summary is null or show_summary = 0',0,'OK','',''),
(1037,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_no_data\')','',960,'2022-11-05 13:40:53','\0','add column cw_operator_role.show_no_data','','2022-11-05 13:40:56','2022-11-05 13:40:56','','alter table cw_operator_role add show_no_data BIT','alter table cw_operator_role add column show_no_data BIT',0,'condition is false','',''),
(1038,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_no_data\')','',961,'2022-11-05 13:40:54','\0','init cw_operator_role.show_no_data = 0','','2022-11-05 13:40:56','2022-11-05 13:40:56','','update cw_operator_role set show_no_data = 0 where show_no_data is null','update cw_operator_role set show_no_data = 0 where show_no_data is null',0,'OK','',''),
(1039,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_background\')','',962,'2022-11-05 13:40:54','\0','add column cw_operator_role.show_background','','2022-11-05 13:40:56','2022-11-05 13:40:56','','alter table cw_operator_role add show_background BIT','alter table cw_operator_role add column show_background BIT',0,'condition is false','',''),
(1040,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_background\')','',963,'2022-11-05 13:40:54','\0','init cw_operator_role.show_background = 0','','2022-11-05 13:40:56','2022-11-05 13:40:56','','update cw_operator_role set show_background = 0 where show_background is null','update cw_operator_role set show_background = 0 where show_background is null',0,'OK','',''),
(1047,0,'at.clockwork.system.service.DataSourceService.existsTableInDatabase(connection, \'cw_terminal_datafox\')  &&\n            			at.clockwork.system.service.DataSourceService.existsTableInDatabase(connection, \'cw_terminal_type\')','',964,'2022-11-06 10:04:13','\0','set isUsed = 1 at Datafox-Terminals','',NULL,'2022-11-06 10:04:13','','','',0,NULL,'','import at.clockwork.terminal.domain.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def terminalDatafoxWriteService = Holders.grailsApplication.mainContext.getBean \'terminalDatafoxWriteService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        TerminalDatafox\n            .findAllWhere(isUsed:false, deleted:false)\n            .each { TerminalDatafox itTerminalDatafox ->\n\n            itTerminalDatafox.isUsed = true\n            terminalDatafoxWriteService.save(itTerminalDatafox)\n\n        }\n\n		true\n\n	}\n}'),
(1048,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_key_flex\', \'door_type_enum\')','',965,'2022-11-06 10:04:13','\0','init cw_terminal_key_flex.door_type_enum = \'ENTRY\'','','2022-11-06 10:04:14','2022-11-06 10:04:14','','update cw_terminal_key_flex set door_type_enum = \'ENTRY\' where door_type_enum is null','update cw_terminal_key_flex set door_type_enum = \'ENTRY\' where door_type_enum is null',0,'OK','',''),
(1049,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'select_date\')','',966,'2022-12-22 11:10:32','\0','update cw_operator_role set select_date = true where cwid = 100020 or cwid = 100021 or cwid = 100022','','2022-12-22 11:10:32','2022-12-22 11:10:32','','update cw_operator_role set select_date = 1 where cwid = 100020 or cwid = 100021 or cwid = 100022','update cw_operator_role set select_date = 1 where cwid = 100020 or cwid = 100021 or cwid = 100022',0,'OK','',''),
(1050,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_model_2_detail\', \'pause_booking_type_enum\')','',967,'2022-12-22 11:10:32','\0','init TimeModel2PauseTime.pauseBookingTypeEnum','','2022-12-22 11:10:32','2024-03-07 09:48:29','','update cw_time_model_2_detail set pause_booking_type_enum = \'ALL_BOOKING_TYPES\' where class = \'at.clockwork.time.timeModel.detail.domain.TimeModel2PauseTime\'','update cw_time_model_2_detail set pause_booking_type_enum = \'ALL_BOOKING_TYPES\' where class = \'at.clockwork.time.timeModel.detail.domain.TimeModel2PauseTime\'',0,'OK','',''),
(1051,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_work_time_type_data_rewind\', \'extern_id\')','',968,'2022-12-22 11:10:32','\0','add cw_work_time_type_data_rewind.extern_id','','2022-12-22 11:10:32','2022-12-22 11:10:32','','alter table cw_work_time_type_data_rewind alter column extern_id numeric(19,0) null','alter table cw_work_time_type_data_rewind modify extern_id bigint null',0,'OK','',''),
(1052,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_work_time_type_data_rewind\', \'extern_id\')','',969,'2022-12-22 11:10:32','\0','init cw_work_time_type_data_rewind.extern_id = 0','','2022-12-22 11:10:33','2022-12-22 11:10:33','','update cw_work_time_type_data_rewind set extern_id = 0 where extern_id is null','update cw_work_time_type_data_rewind set extern_id = 0 where extern_id is null',0,'OK','',''),
(1053,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'select_article\')','',970,'2022-12-22 11:10:32','\0','add column cw_operator_role.select_article','','2022-12-22 11:10:33','2022-12-22 11:10:33','','alter table cw_operator_role add select_article BIT','alter table cw_operator_role add column select_article BIT',0,'condition is false','',''),
(1054,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'select_article\')','',971,'2022-12-22 11:10:32','\0','init cw_operator_role.select_article = false','','2022-12-22 11:10:33','2022-12-22 11:10:33','','update cw_operator_role set select_article = 0 where select_article is null','update cw_operator_role set select_article = 0 where select_article is null',0,'OK','',''),
(1055,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'start_new_page\')','',972,'2022-12-22 11:10:32','\0','add column cw_group_definition_detail.start_new_page','','2022-12-22 11:10:33','2022-12-22 11:10:33','','alter table cw_group_definition_detail add start_new_page BIT','alter table cw_group_definition_detail add column start_new_page BIT',0,'condition is false','',''),
(1056,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_group_definition_detail\', \'start_new_page\')','',973,'2022-12-22 11:10:32','\0','init cw_group_definition_detail.start_new_page = 0','','2022-12-22 11:10:33','2022-12-22 11:10:33','','update cw_group_definition_detail set start_new_page = 0 where start_new_page is null','update cw_group_definition_detail set start_new_page = 0 where start_new_page is null',0,'OK','',''),
(1057,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'consider_at_credit\')','',974,'2022-12-22 11:10:32','\0','add column cw_time_time_type.consider_at_credit','','2022-12-22 11:10:33','2022-12-22 11:10:33','','alter table cw_time_time_type add consider_at_credit BIT','alter table cw_time_time_type add column consider_at_credit BIT',0,'condition is false','',''),
(1058,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'consider_at_credit\')','',975,'2022-12-22 11:10:32','\0','init cw_time_time_type.consider_at_credit = 0','','2022-12-22 11:10:33','2022-12-22 11:10:33','','update cw_time_time_type set consider_at_credit = 0 where consider_at_credit is null','update cw_time_time_type set consider_at_credit = 0 where consider_at_credit is null',0,'OK','',''),
(1059,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_type\', \'consider_at_credit\')','',976,'2022-12-22 11:10:32','\0','init cw_time_time_type.consider_at_credit = 1','','2022-12-22 11:10:33','2022-12-22 11:10:33','','update cw_time_time_type set consider_at_credit = 1 where number = \'40\' or credit_in_hours != 0 or credit_in_days != 0','update cw_time_time_type set consider_at_credit = 1 where number = \'40\' or credit_in_hours != 0 or credit_in_days != 0',0,'OK','',''),
(1060,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'select_deactivated_person\')','',977,'2022-12-22 11:10:32','\0','add column cw_operator_role.select_deactivated_person','','2022-12-22 11:10:33','2022-12-22 11:10:33','','alter table cw_operator_role add select_deactivated_person BIT','alter table cw_operator_role add column select_deactivated_person BIT',0,'condition is false','',''),
(1061,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'select_deactivated_person\')','',978,'2022-12-22 11:10:32','\0','init cw_operator_role.select_deactivated_person = false','','2022-12-22 11:10:33','2022-12-22 11:10:33','','update cw_operator_role set select_deactivated_person = 0 where select_deactivated_person is null','update cw_operator_role set select_deactivated_person = 0 where select_deactivated_person is null',0,'OK','',''),
(1062,1,'','',979,'2023-01-18 00:39:34','\0','create delete-trigger','','2023-01-18 00:39:35','2023-01-18 00:39:35','','','',0,'OK','','import at.clockwork.system.domain.*\n\nimport at.clockwork.transfer.gwtTransfer.client.enumeration.JobStartTypeEnum\nimport at.clockwork.transfer.gwtTransfer.client.enumeration.TriggerTypeEnum\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def triggerWriteService = Holders.grailsApplication.mainContext.getBean \'triggerWriteService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        Trigger deleteLogCommunicationTrigger = Trigger.findWhere(triggerTypeEnum:TriggerTypeEnum.DELETE_LOG_COMMUNICATION, deleted:false)\n        if (!deleteLogCommunicationTrigger) {\n            deleteLogCommunicationTrigger = new Trigger(\n                name : \"DeleteLogCommunication\",\n                description : \"Delete Log Communication\",\n                triggerTypeEnum : TriggerTypeEnum.DELETE_LOG_COMMUNICATION,\n                jobStartTypeEnum : JobStartTypeEnum.AUTOMATIC,\n                cronDefinition : \"0 0 2 * * ?\",\n                detail1 : \"14\"\n            )\n            triggerWriteService.save(deleteLogCommunicationTrigger)\n        }\n\n        Trigger deleteLogTriggerTrigger = Trigger.findWhere(triggerTypeEnum:TriggerTypeEnum.DELETE_LOG_TRIGGER, deleted:false)\n        if (!deleteLogTriggerTrigger) {\n            deleteLogTriggerTrigger = new Trigger(\n                name : \"DeleteLogTrigger\",\n                description : \"Delete Log Trigger\",\n                triggerTypeEnum : TriggerTypeEnum.DELETE_LOG_TRIGGER,\n                jobStartTypeEnum : JobStartTypeEnum.AUTOMATIC,\n                cronDefinition : \"0 5 2 * * ?\",\n                detail1 : \"14\"\n            )\n            triggerWriteService.save(deleteLogTriggerTrigger)\n        }\n\n        Trigger deleteTerminalCommunicationTrigger = Trigger.findWhere(triggerTypeEnum:TriggerTypeEnum.DELETE_TERMINAL_COMMUNICATION, deleted:false)\n        if (!deleteTerminalCommunicationTrigger) {\n            deleteTerminalCommunicationTrigger = new Trigger(\n                name : \"DeleteTerminalCommunication\",\n                description : \"Delete Terminal Communication\",\n                triggerTypeEnum : TriggerTypeEnum.DELETE_TERMINAL_COMMUNICATION,\n                jobStartTypeEnum : JobStartTypeEnum.AUTOMATIC,\n                cronDefinition : \"0 10 2 * * ?\",\n                detail1 : \"14\"\n            )\n            triggerWriteService.save(deleteTerminalCommunicationTrigger)\n        }\n\n		true\n\n	}\n}'),
(1063,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_article\', \'quantity\')','',980,'2023-02-08 21:48:52','\0','add column cw_article.quantity','','2023-02-08 21:48:52','2023-02-08 21:48:52','','alter table cw_article add quantity FLOAT(53)','alter table cw_article add column quantity DOUBLE',0,'condition is false','',''),
(1064,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_article\', \'quantity\')','',981,'2023-02-08 21:48:52','\0','init cw_article.quantity','','2023-02-08 21:48:52','2023-02-08 21:48:52','','update cw_article set quantity = 0 where quantity is null','update cw_article set quantity = 0 where quantity is null',0,'OK','',''),
(1065,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_article\', \'duration\')','',982,'2023-02-08 21:48:52','\0','add column cw_article.duration','','2023-02-08 21:48:52','2023-02-08 21:48:52','','alter table cw_article add duration FLOAT(53)','alter table cw_article add column duration DOUBLE',0,'condition is false','',''),
(1066,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_article\', \'duration\')','',983,'2023-02-08 21:48:52','\0','init cw_article.duration','','2023-02-08 21:48:52','2023-02-08 21:48:52','','update cw_article set duration = 0 where duration is null','update cw_article set duration = 0 where duration is null',0,'OK','',''),
(1067,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_article\', \'periodical_article_enum\')','',984,'2023-02-08 21:48:52','\0','init cw_article.periodical_article_enum = \'NONE\'','','2023-02-08 21:48:52','2023-02-08 21:48:52','','update cw_article set periodical_article_enum = \'NONE\' where periodical_article_enum is null','update cw_article set periodical_article_enum = \'NONE\' where periodical_article_enum is null',0,'OK','',''),
(1068,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_article\', \'price_per_unit\')','',985,'2023-02-08 21:48:52','\0','add column cw_article.price_per_unit','','2023-02-08 21:48:52','2023-02-08 21:48:52','','alter table cw_article add price_per_unit FLOAT(53)','alter table cw_article add column price_per_unit DOUBLE',0,'condition is false','',''),
(1069,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_article\', \'price_per_unit\')','',986,'2023-02-08 21:48:52','\0','init cw_article.price_per_unit','','2023-02-08 21:48:52','2023-02-08 21:48:52','','update cw_article set price_per_unit = 0 where price_per_unit is null','update cw_article set price_per_unit = 0 where price_per_unit is null',0,'OK','',''),
(1070,3,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox_2_action\', \'port_out\')','',987,'2023-02-08 21:48:52','\0','set TerminalDatafox2Action.outputEnum','','2023-02-08 21:48:52','2024-03-07 09:48:29','','','',0,'OK','','import at.clockwork.system.domain.*\n\nimport at.clockwork.transfer.gwtTransfer.client.enumeration.DatafoxOutputEnum\nimport at.clockwork.terminal.datafox.domain.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n//	def terminalDatafox2ActionWriteService = Holders.grailsApplication.mainContext.getBean \'terminalDatafox2ActionWriteService\'\n\n	def run(def connection, def dataSourceFields) {\n\n/*\n        TerminalDatafox2Action.findAllWhere(deleted:false).each { TerminalDatafox2Action terminalDatafox2Action ->\n\n            switch(terminalDatafox2Action.portOut) {\n                case 1:\n                    terminalDatafox2Action.outputEnum = DatafoxOutputEnum.BASE_RELAIS_1\n                    break\n\n                case 3:\n                    terminalDatafox2Action.outputEnum = DatafoxOutputEnum.BASE_RELAIS_2\n                    break\n\n                case -101:\n                    terminalDatafox2Action.outputEnum = DatafoxOutputEnum.UuZ\n                    break\n\n                default:\n                    terminalDatafox2Action.outputEnum = DatafoxOutputEnum.BASE_RELAIS_4\n                    break\n\n            }\n\n            terminalDatafox2ActionWriteService.save(terminalDatafox2Action)\n\n        }\n*/\n\n        at.clockwork.system.service.DataSourceService.execute(\n            connection,\n            dataSourceFields,\n            [\n                mySQLStatement:\"update cw_terminal_datafox_2_action set output_enum = \'BASE_RELAIS_1\' where port_out = 1\",\n                msSQLStatement:\"update cw_terminal_datafox_2_action set output_enum = \'BASE_RELAIS_1\' where port_out = 1\"\n            ]\n        )\n\n        at.clockwork.system.service.DataSourceService.execute(\n            connection,\n            dataSourceFields,\n            [\n                mySQLStatement:\"update cw_terminal_datafox_2_action set output_enum = \'BASE_RELAIS_2\' where port_out = 3\",\n                msSQLStatement:\"update cw_terminal_datafox_2_action set output_enum = \'BASE_RELAIS_2\' where port_out = 3\"\n            ]\n        )\n\n        at.clockwork.system.service.DataSourceService.execute(\n            connection,\n            dataSourceFields,\n            [\n                mySQLStatement:\"update cw_terminal_datafox_2_action set output_enum = \'UuZ\' where port_out = -101\",\n                msSQLStatement:\"update cw_terminal_datafox_2_action set output_enum = \'UuZ\' where port_out = -101\"\n            ]\n        )\n\n		true\n\n	}\n}'),
(1071,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_sort_definition_detail\', \'sort_expression\')','',988,'2024-03-07 09:48:29','\0','update SortDefinitionDetails','','2024-03-07 09:48:31','2024-03-07 09:48:31','','','',0,'OK','','class UpdateScriptService {\n\n	def run(def connection, def dataSourceFields) {\n\n        at.clockwork.system.service.DataSourceService.execute(\n            connection,\n            dataSourceFields,\n            [\n                mySQLStatement:\"update cw_sort_definition_detail set sort_expression = \'class TService { static transactional = false; int run(def a, def b, Map rM) { (a.person.dateOfEntry?.getMonth()?:0)*100+(a.person.dateOfEntry?.getDate()?:0) <=> (b.person.dateOfEntry?.getMonth()?:0)*100+(b.person.dateOfEntry?.getDate()?:0) } }\' where sort_expression = \'class TestService { static transactional = false; int run(def a, def b) { (a.person.dateOfEntry?.getMonth() ?: 0) * 100 + (a.person.dateOfEntry?.getDate() ?: 0) <=> (b.person.dateOfEntry?.getMonth() ?: 0) * 100 + (b.person.dateOfEntry?.getDate() ?: 0) } }\'\",\n                msSQLStatement:\"update cw_sort_definition_detail set sort_expression = \'class TService { static transactional = false; int run(def a, def b, Map rM) { (a.person.dateOfEntry?.getMonth()?:0)*100+(a.person.dateOfEntry?.getDate()?:0) <=> (b.person.dateOfEntry?.getMonth()?:0)*100+(b.person.dateOfEntry?.getDate()?:0) } }\' where sort_expression = \'class TestService { static transactional = false; int run(def a, def b) { (a.person.dateOfEntry?.getMonth() ?: 0) * 100 + (a.person.dateOfEntry?.getDate() ?: 0) <=> (b.person.dateOfEntry?.getMonth() ?: 0) * 100 + (b.person.dateOfEntry?.getDate() ?: 0) } }\'\"\n            ]\n        )\n\n        at.clockwork.system.service.DataSourceService.execute(\n            connection,\n            dataSourceFields,\n            [\n                mySQLStatement:\"update cw_sort_definition_detail set sort_expression = \'class TService { static transactional = false; int run(def a, def b, Map rM) { (a.person.dateOfBirth?.getMonth()?:0)*100+(a.person.dateOfBirth?.getDate()?:0) <=> (b.person.dateOfBirth?.getMonth()?:0)*100+(b.person.dateOfBirth?.getDate()?:0) } }\' where sort_expression = \'class TestService { static transactional = false; int run(def a, def b) { (a.person.dateOfBirth?.getMonth() ?: 0) * 100 + (a.person.dateOfBirth?.getDate() ?: 0) <=> (b.person.dateOfBirth?.getMonth() ?: 0) * 100 + (b.person.dateOfBirth?.getDate() ?: 0) } }\'\",\n                msSQLStatement:\"update cw_sort_definition_detail set sort_expression = \'class TService { static transactional = false; int run(def a, def b, Map rM) { (a.person.dateOfBirth?.getMonth()?:0)*100+(a.person.dateOfBirth?.getDate()?:0) <=> (b.person.dateOfBirth?.getMonth()?:0)*100+(b.person.dateOfBirth?.getDate()?:0) } }\' where sort_expression = \'class TestService { static transactional = false; int run(def a, def b) { (a.person.dateOfBirth?.getMonth() ?: 0) * 100 + (a.person.dateOfBirth?.getDate() ?: 0) <=> (b.person.dateOfBirth?.getMonth() ?: 0) * 100 + (b.person.dateOfBirth?.getDate() ?: 0) } }\'\"\n            ]\n        )\n\n        at.clockwork.system.service.DataSourceService.execute(\n            connection,\n            dataSourceFields,\n            [\n                mySQLStatement:\"update cw_sort_definition_detail set sort_expression = \'class TService { static transactional = false; int run(def a, def b, Map rM) { a.date <=> b.date } }\' where sort_expression = \'class TestService { static transactional = false; int run(def a, def b) { a.date <=> b.date } }\'\",\n                msSQLStatement:\"update cw_sort_definition_detail set sort_expression = \'class TService { static transactional = false; int run(def a, def b, Map rM) { a.date <=> b.date } }\' where sort_expression = \'class TestService { static transactional = false; int run(def a, def b) { a.date <=> b.date } }\'\"\n            ]\n        )\n\n		true\n\n	}\n}'),
(1072,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_script\', \'file_upload1\')','',989,'2024-03-07 09:48:29','\0','add column cw_script.file_upload1','','2024-03-07 09:48:31','2024-03-07 09:48:31','','alter table cw_script add file_upload1 BIT','alter table cw_script add column file_upload1 BIT',0,'condition is false','',''),
(1073,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_script\', \'file_upload1\')','',990,'2024-03-07 09:48:29','\0','init cw_script.file_upload1 = 0','','2024-03-07 09:48:31','2024-03-07 09:48:31','','update cw_script set file_upload1 = 0 where file_upload1 is null','update cw_script set file_upload1 = 0 where file_upload1 is null',0,'OK','',''),
(1074,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_script\', \'file_upload2\')','',991,'2024-03-07 09:48:29','\0','add column cw_script.file_upload2','','2024-03-07 09:48:31','2024-03-07 09:48:31','','alter table cw_script add file_upload2 BIT','alter table cw_script add column file_upload2 BIT',0,'condition is false','',''),
(1075,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_script\', \'file_upload2\')','',992,'2024-03-07 09:48:29','\0','init cw_script.file_upload2 = 0','','2024-03-07 09:48:31','2024-03-07 09:48:31','','update cw_script set file_upload2 = 0 where file_upload2 is null','update cw_script set file_upload2 = 0 where file_upload2 is null',0,'OK','',''),
(1076,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_script\', \'file_upload3\')','',993,'2024-03-07 09:48:29','\0','add column cw_script.file_upload3','','2024-03-07 09:48:31','2024-03-07 09:48:31','','alter table cw_script add file_upload3 BIT','alter table cw_script add column file_upload3 BIT',0,'condition is false','',''),
(1077,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_script\', \'file_upload3\')','',994,'2024-03-07 09:48:29','\0','init cw_script.file_upload3 = 0','','2024-03-07 09:48:31','2024-03-07 09:48:31','','update cw_script set file_upload3 = 0 where file_upload3 is null','update cw_script set file_upload3 = 0 where file_upload3 is null',0,'OK','',''),
(1078,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_script\', \'file_upload4\')','',995,'2024-03-07 09:48:29','\0','add column cw_script.file_upload4','','2024-03-07 09:48:31','2024-03-07 09:48:31','','alter table cw_script add file_upload4 BIT','alter table cw_script add column file_upload4 BIT',0,'condition is false','',''),
(1079,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_script\', \'file_upload4\')','',996,'2024-03-07 09:48:29','\0','init cw_script.file_upload4 = 0','','2024-03-07 09:48:31','2024-03-07 09:48:32','','update cw_script set file_upload4 = 0 where file_upload4 is null','update cw_script set file_upload4 = 0 where file_upload4 is null',0,'OK','',''),
(1080,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_script\', \'file_upload5\')','',997,'2024-03-07 09:48:29','\0','add column cw_script.file_upload5','','2024-03-07 09:48:32','2024-03-07 09:48:32','','alter table cw_script add file_upload5 BIT','alter table cw_script add column file_upload5 BIT',0,'condition is false','',''),
(1081,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_script\', \'file_upload5\')','',998,'2024-03-07 09:48:29','\0','init cw_script.file_upload5 = 0','','2024-03-07 09:48:32','2024-03-07 09:48:32','','update cw_script set file_upload5 = 0 where file_upload5 is null','update cw_script set file_upload5 = 0 where file_upload5 is null',0,'OK','',''),
(1082,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_model_2_detail\', \'active\')','',999,'2024-03-07 09:48:29','\0','add column cw_time_model_2_detail.active','','2024-03-07 09:48:32','2024-03-07 09:48:32','','alter table cw_time_model_2_detail add active BIT','alter table cw_time_model_2_detail add column active BIT',0,'condition is false','',''),
(1083,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_model_2_detail\', \'active\')','',1000,'2024-03-07 09:48:30','\0','init cw_time_model_2_detail.active = 1','','2024-03-07 09:48:32','2024-03-07 09:48:32','','update cw_time_model_2_detail set active = 1 where active is null','update cw_time_model_2_detail set active = 1 where active is null',0,'OK','',''),
(1084,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_visualisation\', \'rows_value\')','',1001,'2024-03-07 09:48:30','\0','change cw_person_visualisation.rows to cw_person_visualisation.rows_value - part 1','','2024-03-07 09:48:32','2024-03-07 09:48:32','','alter table cw_person_visualisation add rows_value INTEGER','alter table cw_person_visualisation add column rows_value INTEGER',0,'condition is false','',''),
(1085,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_visualisation\', \'rows\') &&\n            at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_visualisation\', \'rows_value\')','',1002,'2024-03-07 09:48:30','\0','change cw_person_visualisation.rows to cw_person_visualisation.rows_value - part 2','','2024-03-07 09:48:32','2024-03-07 09:48:32','','update cw_person_visualisation set rows_value = rows','update cw_person_visualisation set rows_value = rows',0,'condition is false','',''),
(1086,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_visualisation\', \'rows_value\')','',1003,'2024-03-07 09:48:30','\0','change cw_person_visualisation.rows to cw_person_visualisation.rows_value - part 3','','2024-03-07 09:48:32','2024-03-07 09:48:32','','update cw_person_visualisation set rows_value = 0 where rows_value is null','update cw_person_visualisation set rows_value = 0 where rows_value is null',0,'OK','',''),
(1087,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_visualisation\', \'rows\')','',1004,'2024-03-07 09:48:30','\0','change cw_person_visualisation.rows to cw_person_visualisation.rows_value - part 4','','2024-03-07 09:48:32','2024-03-07 09:48:32','','alter table cw_person_visualisation drop column rows','alter table cw_person_visualisation drop column `rows`',0,'condition is false','',''),
(1088,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_visualisation\', \'columns_value\')','',1005,'2024-03-07 09:48:30','\0','change cw_person_visualisation.columns to cw_person_visualisation.columns_value - part 1','','2024-03-07 09:48:32','2024-03-07 09:48:32','','alter table cw_person_visualisation add columns_value INTEGER','alter table cw_person_visualisation add column columns_value INTEGER',0,'condition is false','',''),
(1089,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_visualisation\', \'columns\') &&\n            at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_visualisation\', \'columns_value\')','',1006,'2024-03-07 09:48:30','\0','change cw_person_visualisation.columns to cw_person_visualisation.columns_value - part 2','','2024-03-07 09:48:32','2024-03-07 09:48:32','','update cw_person_visualisation set columns_value = columns','update cw_person_visualisation set columns_value = columns',0,'OK','',''),
(1090,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_visualisation\', \'columns_value\')','',1007,'2024-03-07 09:48:30','\0','change cw_person_visualisation.columns to cw_person_visualisation.columns_value - part 3','','2024-03-07 09:48:32','2024-03-07 09:48:32','','update cw_person_visualisation set columns_value = 0 where columns_value is null','update cw_person_visualisation set columns_value = 0 where columns_value is null',0,'OK','',''),
(1091,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_visualisation\', \'columns\')','',1008,'2024-03-07 09:48:30','\0','change cw_person_visualisation.columns to cw_person_visualisation.columns_value - part 4','','2024-03-07 09:48:32','2024-03-07 09:48:32','','alter table cw_person_visualisation drop column columns','alter table cw_person_visualisation drop column columns',0,'OK','',''),
(1092,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_trigger\', \'trigger_start_delay\')','',1009,'2024-03-07 09:48:30','\0','add column cw_trigger.trigger_start_delay','','2024-03-07 09:48:32','2024-03-07 09:48:32','','alter table cw_trigger add trigger_start_delay INTEGER','alter table cw_trigger add column trigger_start_delay INTEGER',0,'condition is false','',''),
(1093,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_trigger\', \'trigger_start_delay\')','',1010,'2024-03-07 09:48:30','\0','init cw_trigger.trigger_start_delay = 0','','2024-03-07 09:48:32','2024-03-07 09:48:32','','update cw_trigger set trigger_start_delay = 0 where trigger_start_delay is null','update cw_trigger set trigger_start_delay = 0 where trigger_start_delay is null',0,'OK','',''),
(1094,1,'','',1111,'2024-03-07 09:48:30','\0','Verwaltung von verschiedenen Smtp-Servern','','2024-03-07 09:48:35','2024-03-07 09:48:35','','','',0,'OK','','import at.clockwork.system.domain.Smtp\n\nimport at.clockwork.singleton.SystemConfigurations\nimport at.clockwork.transfer.gwtTransfer.client.enumeration.SmtpDomainEnum\nimport at.clockwork.generated.service.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def smtpWriteService = Holders.grailsApplication.mainContext.getBean \'smtpWriteService\'\n\n    SystemConfigurations systemConfigurations = SystemConfigurations.getInstance()\n\n	def run(def connection, def dataSourceFields) {\n\n        Smtp smtp = new Smtp()\n\n        smtp.name = \"all\"\n        smtp.description = \"all Domains\"\n\n        smtp.priority = 0\n        smtp.smtpDomainEnum = SmtpDomainEnum.ALL_DOMAINS\n        smtp.smtpDomain = \"\"\n\n        smtp.host = systemConfigurations.getItem(3001, \"strValue\") ?: \"\"\n        smtp.port = systemConfigurations.getItem(3002, \"intValue\") ?: 0\n        smtp.auth = systemConfigurations.getItem(3003, \"booleanValue\") ?: false\n        smtp.user = systemConfigurations.getItem(3004, \"strValue\") ?: \"\"\n        smtp.password = systemConfigurations.getItem(3005, \"pwValue\") ?: \"\"\n        smtp.startTlsEnable = systemConfigurations.getItem(3006, \"booleanValue\") ?: false\n        smtp.fromEmailAddress = systemConfigurations.getItem(3007, \"strValue\") ?: \"\"\n\n        smtp.deleted = false\n\n        smtpWriteService.save(smtp)\n\n		true\n\n	}\n}'),
(1095,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'select_operation_role\')','',1112,'2024-03-07 09:48:30','\0','add column cw_operator_role.select_operation_role','','2024-03-07 09:48:35','2024-03-07 09:48:35','','alter table cw_operator_role add select_operation_role BIT','alter table cw_operator_role add column select_operation_role BIT',0,'condition is false','',''),
(1096,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'select_operation_role\')','',1113,'2024-03-07 09:48:30','\0','init cw_operator_role.select_operation_role = false','','2024-03-07 09:48:35','2024-03-07 09:48:35','','update cw_operator_role set select_operation_role = 0 where select_operation_role is null','update cw_operator_role set select_operation_role = 0 where select_operation_role is null',0,'OK','',''),
(1097,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'select_report_role\')','',1114,'2024-03-07 09:48:30','\0','add column cw_operator_role.select_report_role','','2024-03-07 09:48:35','2024-03-07 09:48:35','','alter table cw_operator_role add select_report_role BIT','alter table cw_operator_role add column select_report_role BIT',0,'condition is false','',''),
(1098,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'select_report_role\')','',1115,'2024-03-07 09:48:30','\0','init cw_operator_role.select_report_role = false','','2024-03-07 09:48:35','2024-03-07 09:48:35','','update cw_operator_role set select_report_role = 0 where select_report_role is null','update cw_operator_role set select_report_role = 0 where select_report_role is null',0,'OK','',''),
(1099,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'show_no_data\')','',1116,'2024-03-07 09:48:30','\0','set cw_operator_role.show_no_data = 1','','2024-03-07 09:48:35','2024-03-07 09:48:35','','update cw_operator_role set show_no_data = 1','update cw_operator_role set show_no_data = 1',0,'OK','',''),
(1100,1,'','',1117,'2024-03-07 09:48:30','\0','Person2WorkCalculation -> Person2WorkCalculationTime','','2024-03-07 09:48:35','2024-03-07 09:48:35','','','',0,'OK','','import at.clockwork.common.person.domain.*\nimport at.clockwork.work.domain.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def workCalculationTimeWriteService = Holders.grailsApplication.mainContext.getBean \'workCalculationTimeWriteService\'\n	def person2WorkCalculationTimeWriteService = Holders.grailsApplication.mainContext.getBean \'person2WorkCalculationTimeWriteService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        int counter = 0\n        Person2WorkCalculation.findAllWhere(deleted:false).each { Person2WorkCalculation person2WorkCalculation ->\n\n            def aFirstCWC = person2WorkCalculation.afterFirstComingWorkCalculation\n            def aFurtherCWC = person2WorkCalculation.afterFurtherComingWorkCalculation\n\n            def gormCriteria = WorkCalculationTime.createCriteria()\n            def workCalculationTime = gormCriteria.get {\n\n                and {\n                    eq(\"afterFirstComingMinTime\", person2WorkCalculation.afterFirstComingMinTime)\n\n                    if (aFirstCWC?.workCalculationEnum == null)\n                        isNull(\"afterFirstComingWorkCalculationEnum\")\n                    else\n                        eq(\"afterFirstComingWorkCalculationEnum\", aFirstCWC?.workCalculationEnum)\n\n                    if (aFirstCWC?.project == null)\n                        isNull(\"afterFirstComingProject\")\n                    else\n                        eq(\"afterFirstComingProject\", aFirstCWC?.project)\n\n                    if (aFirstCWC?.order == null)\n                        isNull(\"afterFirstComingOrder\")\n                    else\n                        eq(\"afterFirstComingOrder\", aFirstCWC?.order)\n\n                    if (aFirstCWC?.orderItem == null)\n                        isNull(\"afterFirstComingOrderItem\")\n                    else\n                        eq(\"afterFirstComingOrderItem\", aFirstCWC?.orderItem)\n\n                    if (aFirstCWC?.costUnit == null)\n                        isNull(\"afterFirstComingCostUnit\")\n                    else\n                        eq(\"afterFirstComingCostUnit\", aFirstCWC?.costUnit)\n\n                    if (aFirstCWC?.machine == null)\n                        isNull(\"afterFirstComingMachine\")\n                    else\n                        eq(\"afterFirstComingMachine\", aFirstCWC?.machine)\n\n                    if (aFirstCWC?.workplace == null)\n                        isNull(\"afterFirstComingWorkplace\")\n                    else\n                        eq(\"afterFirstComingWorkplace\", aFirstCWC?.workplace)\n\n                    if (aFirstCWC?.workprocess == null)\n                        isNull(\"afterFirstComingWorkprocess\")\n                    else\n                        eq(\"afterFirstComingWorkprocess\", aFirstCWC?.workprocess)\n\n                    eq(\"afterFurtherComingMinTime\", person2WorkCalculation.afterFurtherComingMinTime)\n\n                    if (aFurtherCWC?.workCalculationEnum == null)\n                        isNull(\"afterFurtherComingWorkCalculationEnum\")\n                    else\n                        eq(\"afterFurtherComingWorkCalculationEnum\", aFurtherCWC?.workCalculationEnum)\n\n                    if (aFurtherCWC?.project == null)\n                        isNull(\"afterFurtherComingProject\")\n                    else\n                        eq(\"afterFurtherComingProject\", aFurtherCWC?.project)\n\n                    if (aFurtherCWC?.order == null)\n                        isNull(\"afterFurtherComingOrder\")\n                    else\n                        eq(\"afterFurtherComingOrder\", aFurtherCWC?.order)\n\n                    if (aFurtherCWC?.orderItem == null)\n                        isNull(\"afterFurtherComingOrderItem\")\n                    else\n                        eq(\"afterFurtherComingOrderItem\", aFurtherCWC?.orderItem)\n\n                    if (aFurtherCWC?.costUnit == null)\n                        isNull(\"afterFurtherComingCostUnit\")\n                    else\n                        eq(\"afterFurtherComingCostUnit\", aFurtherCWC?.costUnit)\n\n                    if (aFurtherCWC?.machine == null)\n                        isNull(\"afterFurtherComingMachine\")\n                    else\n                        eq(\"afterFurtherComingMachine\", aFurtherCWC?.machine)\n\n                    if (aFurtherCWC?.workplace == null)\n                        isNull(\"afterFurtherComingWorkplace\")\n                    else\n                        eq(\"afterFurtherComingWorkplace\", aFurtherCWC?.workplace)\n\n                    if (aFurtherCWC?.workprocess == null)\n                        isNull(\"afterFurtherComingWorkprocess\")\n                    else\n                        eq(\"afterFurtherComingWorkprocess\", aFurtherCWC?.workprocess)\n\n                    eq(\"deleted\", false)\n                }\n\n            }\n\n            if (!workCalculationTime) {\n                counter ++\n                workCalculationTime = new WorkCalculationTime(\n                    name : \"$counter\",\n                    description : \"$counter\",\n                    afterFirstComingMinTime : person2WorkCalculation.afterFirstComingMinTime,\n                    afterFirstComingWorkCalculationEnum : aFirstCWC?.workCalculationEnum,\n                    afterFirstComingProject : aFirstCWC?.project,\n                    afterFirstComingOrder : aFirstCWC?.order,\n                    afterFirstComingOrderItem : aFirstCWC?.orderItem,\n                    afterFirstComingCostUnit : aFirstCWC?.costUnit,\n                    afterFirstComingMachine : aFirstCWC?.machine,\n                    afterFirstComingWorkplace : aFirstCWC?.workplace,\n                    afterFirstComingWorkprocess : aFirstCWC?.workprocess,\n                    afterFurtherComingMinTime : person2WorkCalculation.afterFurtherComingMinTime,\n                    afterFurtherComingWorkCalculationEnum : aFurtherCWC?.workCalculationEnum,\n                    afterFurtherComingProject : aFurtherCWC?.project,\n                    afterFurtherComingOrder : aFurtherCWC?.order,\n                    afterFurtherComingOrderItem : aFurtherCWC?.orderItem,\n                    afterFurtherComingCostUnit : aFurtherCWC?.costUnit,\n                    afterFurtherComingMachine : aFurtherCWC?.machine,\n                    afterFurtherComingWorkplace : aFurtherCWC?.workplace,\n                    afterFurtherComingWorkprocess : aFurtherCWC?.workprocess\n                    )\n                workCalculationTimeWriteService.save(workCalculationTime)\n            }\n\n            Person2WorkCalculationTime person2WorkCalculationTime = new Person2WorkCalculationTime(\n                person : person2WorkCalculation.person,\n                workCalculationTime : workCalculationTime,\n                startDate : person2WorkCalculation.startDate,\n                endDate : person2WorkCalculation.endDate\n            )\n            person2WorkCalculationTimeWriteService.save(person2WorkCalculationTime)\n\n        }\n\n		true\n\n	}\n}'),
(1101,1,'','',1118,'2024-03-07 09:48:30','\0','change menu WorkCalculation to WorkCalculationTime','','2024-03-07 09:48:35','2024-03-07 09:48:35','','update cw_menu set description = \'Arbeitsberechnungen alt\', german = \'Arbeitsberechnungen alt\', english = \'Arbeitsberechnungen alt\' where name = \'menu.workCalculation.label\'','update cw_menu set description = \'Arbeitsberechnungen alt\', german = \'Arbeitsberechnungen alt\', english = \'Arbeitsberechnungen alt\' where name = \'menu.workCalculation.label\'',0,'OK','',''),
(1102,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'paid_absence_time_enum\')','',1119,'2024-03-07 09:48:30','\0','change cw_absence.paid_absence_time_enum FROM \'IGNORE\' TO \'IGNORE_ABSENCE\'','','2024-03-07 09:48:35','2024-03-07 09:48:35','','update cw_absence set paid_absence_time_enum = \'IGNORE_ABSENCE\' where paid_absence_time_enum = \'IGNORE\'','update cw_absence set paid_absence_time_enum = \'IGNORE_ABSENCE\' where paid_absence_time_enum = \'IGNORE\'',0,'OK','',''),
(1103,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'paid_absence_time_in_absence_planning_enum\')','',1120,'2024-03-07 09:48:30','\0','change cw_absence.paid_absence_time_in_absence_planning_enum FROM \'IGNORE\' TO \'IGNORE_ABSENCE\'','','2024-03-07 09:48:35','2024-03-07 09:48:35','','update cw_absence set paid_absence_time_in_absence_planning_enum = \'IGNORE_ABSENCE\' where paid_absence_time_in_absence_planning_enum = \'IGNORE\'','update cw_absence set paid_absence_time_in_absence_planning_enum = \'IGNORE_ABSENCE\' where paid_absence_time_in_absence_planning_enum = \'IGNORE\'',0,'OK','',''),
(1104,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_smtp\', \'user\') &&\n			at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_smtp\', \'user_value\')','',1121,'2024-03-07 09:48:30','\0','update cw_smtp.user_value = cw_smtp.user','','2024-03-07 09:48:35','2024-03-07 09:48:35','','update cw_smtp set user_value = user','update cw_smtp set user_value = user',0,'condition is false','',''),
(1105,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_smtp\', \'user\')','',1122,'2024-03-07 09:48:30','\0','drop column cw_smtp.user','','2024-03-07 09:48:36','2024-03-07 09:48:36','','','alter table cw_smtp drop column user',0,'condition is false','',''),
(1106,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_script\', \'logged_in_user_as_parameter\')','',1123,'2024-03-07 09:48:30','\0','add column cw_script.logged_in_user_as_parameter','','2024-03-07 09:48:36','2024-03-07 09:48:36','','alter table cw_script add logged_in_user_as_parameter BIT','alter table cw_script add column logged_in_user_as_parameter BIT',0,'condition is false','',''),
(1107,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_script\', \'logged_in_user_as_parameter\')','',1124,'2024-03-07 09:48:30','\0','init cw_script.logged_in_user_as_parameter = 0','','2024-03-07 09:48:36','2024-03-07 09:48:36','','update cw_script set logged_in_user_as_parameter = 0 where logged_in_user_as_parameter is null','update cw_script set logged_in_user_as_parameter = 0 where logged_in_user_as_parameter is null',0,'OK','',''),
(1108,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'select_time_interval\')','',1125,'2024-03-07 09:48:30','\0','add column cw_operator_role.select_time_interval','','2024-03-07 09:48:36','2024-03-07 09:48:36','','alter table cw_operator_role add select_time_interval BIT','alter table cw_operator_role add column select_time_interval BIT',0,'condition is false','',''),
(1109,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'select_time_interval\')','',1126,'2024-03-07 09:48:30','\0','init cw_operator_role.select_time_interval = false','','2024-03-07 09:48:36','2024-03-07 09:48:36','','update cw_operator_role set select_time_interval = 0 where select_time_interval is null','update cw_operator_role set select_time_interval = 0 where select_time_interval is null',0,'OK','',''),
(1110,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'default_time_interval\')','',1127,'2024-03-07 09:48:30','\0','add column cw_operator_role.default_time_interval','','2024-03-07 09:48:36','2024-03-07 09:48:36','','alter table cw_operator_role add default_time_interval INTEGER','alter table cw_operator_role add column default_time_interval INTEGER',0,'condition is false','',''),
(1111,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_operator_role\', \'default_time_interval\')','',1128,'2024-03-07 09:48:30','\0','init cw_operator_role.default_time_interval = 0','','2024-03-07 09:48:36','2024-03-07 09:48:36','','update cw_operator_role set default_time_interval = 0 where default_time_interval is null','update cw_operator_role set default_time_interval = 0 where default_time_interval is null',0,'OK','',''),
(1112,1,'','',1129,'2024-03-07 09:48:30','\0','init reportDefaultValues Part 1','','2024-03-07 09:48:36','2024-03-07 09:48:36','','','',0,'OK','','import at.clockwork.security.domain.*\n\nimport at.clockwork.transfer.gwtTransfer.client.enumeration.ReportDefaultItemsEnum\nimport at.clockwork.transfer.gwtTransfer.client.enumeration.ReportDefaultStartEndDateEnum\nimport at.clockwork.transfer.gwtTransfer.client.enumeration.ReportDefaultStartEndTimeEnum\n\nimport at.clockwork.transfer.gwtTransfer.client.constants.ReportRoleConstant\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def reportRoleWriteService = Holders.grailsApplication.mainContext.getBean \'reportRoleWriteService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        int counter = 0\n        ReportRole.findAllWhere(deleted:false).each { ReportRole it ->\n\n            it.defaultDate = ReportDefaultStartEndDateEnum.TODAY\n            it.defaultTime = ReportDefaultStartEndTimeEnum.NO_TIME\n            it.defaultDateTime = ReportDefaultStartEndDateEnum.TODAY\n\n            if (it.selectTimeInterval)\n                it.defaultTimeInterval = 60\n            else\n                it.defaultTimeInterval = 0\n\n            if (it.selectPersonCategory)\n                it.defaultPersonCategories = ReportDefaultItemsEnum.ALL_ITEMS\n            else\n                it.defaultPersonCategories = ReportDefaultItemsEnum.NO_ITEM\n\n            if (it.selectPerson)\n                it.defaultPersons = ReportDefaultItemsEnum.ALL_ITEMS\n            else\n                it.defaultPersons = ReportDefaultItemsEnum.NO_ITEM\n\n            if (it.selectDeactivatedPerson)\n                it.defaultDeactivatedPersons = ReportDefaultItemsEnum.ALL_ITEMS\n            else\n                it.defaultDeactivatedPersons = ReportDefaultItemsEnum.NO_ITEM\n\n            it.defaultTimeTimeTypes = ReportDefaultItemsEnum.NO_ITEM\n\n            it.defaultPersonTypes = ReportDefaultItemsEnum.NO_ITEM\n\n            reportRoleWriteService.save(it)\n\n        }\n\n		true\n\n	}\n}'),
(1113,1,'','',1130,'2024-03-07 09:48:30','\0','init reportDefaultValues Part 2','','2024-03-07 09:48:36','2024-03-07 09:48:36','','','',0,'OK','','import at.clockwork.security.domain.*\n\nimport at.clockwork.transfer.gwtTransfer.client.enumeration.ReportDefaultItemsEnum\nimport at.clockwork.transfer.gwtTransfer.client.enumeration.ReportDefaultStartEndDateEnum\nimport at.clockwork.transfer.gwtTransfer.client.enumeration.ReportDefaultStartEndTimeEnum\n\nimport at.clockwork.transfer.gwtTransfer.client.constants.ReportRoleConstant\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def reportRoleWriteService = Holders.grailsApplication.mainContext.getBean \'reportRoleWriteService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        int counter = 0\n        ReportRole.findAllWhere(deleted:false).each { ReportRole it ->\n\n//            it.defaultProjectCategories = ReportDefaultItemsEnum.NO_ITEM\n//            it.defaultProjects = ReportDefaultItemsEnum.NO_ITEM\n//            it.defaultOrderCategories = ReportDefaultItemsEnum.NO_ITEM\n//            it.defaultOrders = ReportDefaultItemsEnum.NO_ITEM\n//            it.defaultOrderItemCategories = ReportDefaultItemsEnum.NO_ITEM\n//            it.defaultOrderItems = ReportDefaultItemsEnum.NO_ITEM\n//            it.defaultCostUnitCategories = ReportDefaultItemsEnum.NO_ITEM\n//            it.defaultCostUnits = ReportDefaultItemsEnum.NO_ITEM\n//            it.defaultMachineCategories = ReportDefaultItemsEnum.NO_ITEM\n//            it.defaultMachines = ReportDefaultItemsEnum.NO_ITEM\n//            it.defaultWorkplaceCategories = ReportDefaultItemsEnum.NO_ITEM\n//            it.defaultWorkplaces = ReportDefaultItemsEnum.NO_ITEM\n//            it.defaultWorkprocessCategories = ReportDefaultItemsEnum.NO_ITEM\n//            it.defaultWorkprocesses = ReportDefaultItemsEnum.NO_ITEM\n\n            it.defaultWorkTimeTypes = ReportDefaultItemsEnum.NO_ITEM\n//            it.defaultArticles = ReportDefaultItemsEnum.NO_ITEM\n\n            if (it.selectTerminal)\n                it.defaultTerminals = ReportDefaultItemsEnum.ALL_ITEMS\n            else\n                it.defaultTerminals = ReportDefaultItemsEnum.NO_ITEM\n\n            it.defaultEventTypes = ReportDefaultItemsEnum.NO_ITEM\n\n            if (it.selectUser)\n                it.defaultUsers = ReportDefaultItemsEnum.ALL_ITEMS\n            else\n                it.defaultUsers = ReportDefaultItemsEnum.NO_ITEM\n\n            it.defaultOperatorTypes = ReportDefaultItemsEnum.NO_ITEM\n\n            it.defaultOperationRoles = ReportDefaultItemsEnum.NO_ITEM\n\n            it.defaultReportRoles = ReportDefaultItemsEnum.NO_ITEM\n\n            reportRoleWriteService.save(it)\n\n        }\n\n		true\n\n	}\n}'),
(1114,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'use_pin_code_only\')','',1131,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.use_pin_code_only','','2024-03-07 09:48:37','2024-03-07 09:48:37','','alter table cw_datafox_person_day_access_schedule_2_detail add use_pin_code_only BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column use_pin_code_only BIT',0,'condition is false','',''),
(1115,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'use_pin_code_only\')','',1132,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.use_pin_code_only = 0','','2024-03-07 09:48:37','2024-03-07 09:48:37','','update cw_datafox_person_day_access_schedule_2_detail set use_pin_code_only = 0 where use_pin_code_only is null','update cw_datafox_person_day_access_schedule_2_detail set use_pin_code_only = 0 where use_pin_code_only is null',0,'OK','',''),
(1116,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox\', \'web_socket\')','',1133,'2024-03-07 09:48:30','\0','add column cw_terminal_datafox.web_socket','','2024-03-07 09:48:37','2024-03-07 09:48:37','','alter table cw_terminal_datafox add web_socket BIT','alter table cw_terminal_datafox add column web_socket BIT',0,'condition is false','',''),
(1117,2,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox\', \'web_socket\')','',1134,'2024-03-07 09:48:30','\0','init cw_terminal_datafox.web_socket = 0','','2024-03-07 09:48:37','2024-07-14 18:31:22','','update cw_terminal_datafox set web_socket = 0 where web_socket is null','update cw_terminal_datafox set web_socket = 0 where web_socket is null',0,'OK','',''),
(1118,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_event_types\')','',1135,'2024-03-07 09:48:30','\0','add column cw_general_validation.all_event_types','','2024-03-07 09:48:37','2024-03-07 09:48:37','','alter table cw_general_validation add all_event_types BIT','alter table cw_general_validation add column all_event_types BIT',0,'condition is false','',''),
(1119,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_event_types\')','',1136,'2024-03-07 09:48:30','\0','init cw_general_validation.all_event_types = false','','2024-03-07 09:48:37','2024-03-07 09:48:37','','update cw_general_validation set all_event_types = 0 where all_event_types is null','update cw_general_validation set all_event_types = 0 where all_event_types is null',0,'OK','',''),
(1120,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_log_communication\', \'extern_id\')','',1137,'2024-03-07 09:48:30','\0','add cw_log_communication.extern_id','','2024-03-07 09:48:37','2024-03-07 09:48:37','','alter table cw_log_communication alter column extern_id numeric(19,0) null','alter table cw_log_communication modify extern_id bigint null',0,'OK','',''),
(1121,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_log_communication\', \'extern_id\')','',1138,'2024-03-07 09:48:30','\0','init cw_log_communication.extern_id = 0','','2024-03-07 09:48:37','2024-03-07 09:48:37','','update cw_log_communication set extern_id = 0 where extern_id is null','update cw_log_communication set extern_id = 0 where extern_id is null',0,'OK','',''),
(1122,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'ground_floor\')','',1139,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.ground_floor','','2024-03-07 09:48:37','2024-03-07 09:48:37','','alter table cw_datafox_person_day_access_schedule_2_detail add ground_floor BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column ground_floor BIT',0,'condition is false','',''),
(1123,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'ground_floor\')','',1140,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.ground_floor = 0','','2024-03-07 09:48:37','2024-03-07 09:48:37','','update cw_datafox_person_day_access_schedule_2_detail set ground_floor = 0 where ground_floor is null','update cw_datafox_person_day_access_schedule_2_detail set ground_floor = 0 where ground_floor is null',0,'OK','',''),
(1124,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor1\')','',1141,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.upper_floor1','','2024-03-07 09:48:37','2024-03-07 09:48:37','','alter table cw_datafox_person_day_access_schedule_2_detail add upper_floor1 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column upper_floor1 BIT',0,'condition is false','',''),
(1125,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor1\')','',1142,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.upper_floor1 = 0','','2024-03-07 09:48:37','2024-03-07 09:48:37','','update cw_datafox_person_day_access_schedule_2_detail set upper_floor1 = 0 where upper_floor1 is null','update cw_datafox_person_day_access_schedule_2_detail set upper_floor1 = 0 where upper_floor1 is null',0,'OK','',''),
(1126,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor2\')','',1143,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.upper_floor2','','2024-03-07 09:48:37','2024-03-07 09:48:37','','alter table cw_datafox_person_day_access_schedule_2_detail add upper_floor2 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column upper_floor2 BIT',0,'condition is false','',''),
(1127,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor2\')','',1144,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.upper_floor2 = 0','','2024-03-07 09:48:37','2024-03-07 09:48:37','','update cw_datafox_person_day_access_schedule_2_detail set upper_floor2 = 0 where upper_floor2 is null','update cw_datafox_person_day_access_schedule_2_detail set upper_floor2 = 0 where upper_floor2 is null',0,'OK','',''),
(1128,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor3\')','',1145,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.upper_floor3','','2024-03-07 09:48:37','2024-03-07 09:48:37','','alter table cw_datafox_person_day_access_schedule_2_detail add upper_floor3 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column upper_floor3 BIT',0,'condition is false','',''),
(1129,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor3\')','',1146,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.upper_floor3 = 0','','2024-03-07 09:48:37','2024-03-07 09:48:37','','update cw_datafox_person_day_access_schedule_2_detail set upper_floor3 = 0 where upper_floor3 is null','update cw_datafox_person_day_access_schedule_2_detail set upper_floor3 = 0 where upper_floor3 is null',0,'OK','',''),
(1130,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor4\')','',1147,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.upper_floor4','','2024-03-07 09:48:37','2024-03-07 09:48:37','','alter table cw_datafox_person_day_access_schedule_2_detail add upper_floor4 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column upper_floor4 BIT',0,'condition is false','',''),
(1131,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor4\')','',1148,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.upper_floor4 = 0','','2024-03-07 09:48:37','2024-03-07 09:48:37','','update cw_datafox_person_day_access_schedule_2_detail set upper_floor4 = 0 where upper_floor4 is null','update cw_datafox_person_day_access_schedule_2_detail set upper_floor4 = 0 where upper_floor4 is null',0,'OK','',''),
(1132,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor5\')','',1149,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.upper_floor5','','2024-03-07 09:48:37','2024-03-07 09:48:37','','alter table cw_datafox_person_day_access_schedule_2_detail add upper_floor5 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column upper_floor5 BIT',0,'condition is false','',''),
(1133,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor5\')','',1150,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.upper_floor5 = 0','','2024-03-07 09:48:37','2024-03-07 09:48:37','','update cw_datafox_person_day_access_schedule_2_detail set upper_floor5 = 0 where upper_floor5 is null','update cw_datafox_person_day_access_schedule_2_detail set upper_floor5 = 0 where upper_floor5 is null',0,'OK','',''),
(1134,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor6\')','',1151,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.upper_floor6','','2024-03-07 09:48:37','2024-03-07 09:48:37','','alter table cw_datafox_person_day_access_schedule_2_detail add upper_floor6 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column upper_floor6 BIT',0,'condition is false','',''),
(1135,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor6\')','',1152,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.upper_floor6 = 0','','2024-03-07 09:48:37','2024-03-07 09:48:37','','update cw_datafox_person_day_access_schedule_2_detail set upper_floor6 = 0 where upper_floor6 is null','update cw_datafox_person_day_access_schedule_2_detail set upper_floor6 = 0 where upper_floor6 is null',0,'OK','',''),
(1136,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor7\')','',1153,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.upper_floor7','','2024-03-07 09:48:37','2024-03-07 09:48:37','','alter table cw_datafox_person_day_access_schedule_2_detail add upper_floor7 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column upper_floor7 BIT',0,'condition is false','',''),
(1137,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor7\')','',1154,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.upper_floor7 = 0','','2024-03-07 09:48:37','2024-03-07 09:48:37','','update cw_datafox_person_day_access_schedule_2_detail set upper_floor7 = 0 where upper_floor7 is null','update cw_datafox_person_day_access_schedule_2_detail set upper_floor7 = 0 where upper_floor7 is null',0,'OK','',''),
(1138,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor8\')','',1155,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.upper_floor8','','2024-03-07 09:48:37','2024-03-07 09:48:37','','alter table cw_datafox_person_day_access_schedule_2_detail add upper_floor8 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column upper_floor8 BIT',0,'condition is false','',''),
(1139,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor8\')','',1156,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.upper_floor8 = 0','','2024-03-07 09:48:37','2024-03-07 09:48:37','','update cw_datafox_person_day_access_schedule_2_detail set upper_floor8 = 0 where upper_floor8 is null','update cw_datafox_person_day_access_schedule_2_detail set upper_floor8 = 0 where upper_floor8 is null',0,'OK','',''),
(1140,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor9\')','',1157,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.upper_floor9','','2024-03-07 09:48:37','2024-03-07 09:48:37','','alter table cw_datafox_person_day_access_schedule_2_detail add upper_floor9 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column upper_floor9 BIT',0,'condition is false','',''),
(1141,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor9\')','',1158,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.upper_floor9 = 0','','2024-03-07 09:48:37','2024-03-07 09:48:37','','update cw_datafox_person_day_access_schedule_2_detail set upper_floor9 = 0 where upper_floor9 is null','update cw_datafox_person_day_access_schedule_2_detail set upper_floor9 = 0 where upper_floor9 is null',0,'OK','',''),
(1142,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor10\')','',1159,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.upper_floor10','','2024-03-07 09:48:37','2024-03-07 09:48:37','','alter table cw_datafox_person_day_access_schedule_2_detail add upper_floor10 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column upper_floor10 BIT',0,'condition is false','',''),
(1143,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'upper_floor10\')','',1160,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.upper_floor10 = 0','','2024-03-07 09:48:37','2024-03-07 09:48:37','','update cw_datafox_person_day_access_schedule_2_detail set upper_floor10 = 0 where upper_floor10 is null','update cw_datafox_person_day_access_schedule_2_detail set upper_floor10 = 0 where upper_floor10 is null',0,'OK','',''),
(1144,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor1\')','',1161,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.basement_floor1','','2024-03-07 09:48:37','2024-03-07 09:48:37','','alter table cw_datafox_person_day_access_schedule_2_detail add basement_floor1 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column basement_floor1 BIT',0,'condition is false','',''),
(1145,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor1\')','',1162,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.basement_floor1 = 0','','2024-03-07 09:48:38','2024-03-07 09:48:38','','update cw_datafox_person_day_access_schedule_2_detail set basement_floor1 = 0 where basement_floor1 is null','update cw_datafox_person_day_access_schedule_2_detail set basement_floor1 = 0 where basement_floor1 is null',0,'OK','',''),
(1146,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor2\')','',1163,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.basement_floor2','','2024-03-07 09:48:38','2024-03-07 09:48:38','','alter table cw_datafox_person_day_access_schedule_2_detail add basement_floor2 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column basement_floor2 BIT',0,'condition is false','',''),
(1147,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor2\')','',1164,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.basement_floor2 = 0','','2024-03-07 09:48:38','2024-03-07 09:48:38','','update cw_datafox_person_day_access_schedule_2_detail set basement_floor2 = 0 where basement_floor2 is null','update cw_datafox_person_day_access_schedule_2_detail set basement_floor2 = 0 where basement_floor2 is null',0,'OK','',''),
(1148,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor3\')','',1165,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.basement_floor3','','2024-03-07 09:48:38','2024-03-07 09:48:38','','alter table cw_datafox_person_day_access_schedule_2_detail add basement_floor3 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column basement_floor3 BIT',0,'condition is false','',''),
(1149,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor3\')','',1166,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.basement_floor3 = 0','','2024-03-07 09:48:38','2024-03-07 09:48:38','','update cw_datafox_person_day_access_schedule_2_detail set basement_floor3 = 0 where basement_floor3 is null','update cw_datafox_person_day_access_schedule_2_detail set basement_floor3 = 0 where basement_floor3 is null',0,'OK','',''),
(1150,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor4\')','',1167,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.basement_floor4','','2024-03-07 09:48:38','2024-03-07 09:48:38','','alter table cw_datafox_person_day_access_schedule_2_detail add basement_floor4 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column basement_floor4 BIT',0,'condition is false','',''),
(1151,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor4\')','',1168,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.basement_floor4 = 0','','2024-03-07 09:48:38','2024-03-07 09:48:38','','update cw_datafox_person_day_access_schedule_2_detail set basement_floor4 = 0 where basement_floor4 is null','update cw_datafox_person_day_access_schedule_2_detail set basement_floor4 = 0 where basement_floor4 is null',0,'OK','',''),
(1152,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor5\')','',1169,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.basement_floor5','','2024-03-07 09:48:38','2024-03-07 09:48:38','','alter table cw_datafox_person_day_access_schedule_2_detail add basement_floor5 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column basement_floor5 BIT',0,'condition is false','',''),
(1153,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor5\')','',1170,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.basement_floor5 = 0','','2024-03-07 09:48:38','2024-03-07 09:48:38','','update cw_datafox_person_day_access_schedule_2_detail set basement_floor5 = 0 where basement_floor5 is null','update cw_datafox_person_day_access_schedule_2_detail set basement_floor5 = 0 where basement_floor5 is null',0,'OK','',''),
(1154,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor6\')','',1171,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.basement_floor6','','2024-03-07 09:48:38','2024-03-07 09:48:38','','alter table cw_datafox_person_day_access_schedule_2_detail add basement_floor6 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column basement_floor6 BIT',0,'condition is false','',''),
(1155,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor6\')','',1172,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.basement_floor6 = 0','','2024-03-07 09:48:38','2024-03-07 09:48:38','','update cw_datafox_person_day_access_schedule_2_detail set basement_floor6 = 0 where basement_floor6 is null','update cw_datafox_person_day_access_schedule_2_detail set basement_floor6 = 0 where basement_floor6 is null',0,'OK','',''),
(1156,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor7\')','',1173,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.basement_floor7','','2024-03-07 09:48:38','2024-03-07 09:48:38','','alter table cw_datafox_person_day_access_schedule_2_detail add basement_floor7 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column basement_floor7 BIT',0,'condition is false','',''),
(1157,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor7\')','',1174,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.basement_floor7 = 0','','2024-03-07 09:48:38','2024-03-07 09:48:38','','update cw_datafox_person_day_access_schedule_2_detail set basement_floor7 = 0 where basement_floor7 is null','update cw_datafox_person_day_access_schedule_2_detail set basement_floor7 = 0 where basement_floor7 is null',0,'OK','',''),
(1158,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor8\')','',1175,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.basement_floor8','','2024-03-07 09:48:38','2024-03-07 09:48:38','','alter table cw_datafox_person_day_access_schedule_2_detail add basement_floor8 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column basement_floor8 BIT',0,'condition is false','',''),
(1159,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor8\')','',1176,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.basement_floor8 = 0','','2024-03-07 09:48:38','2024-03-07 09:48:38','','update cw_datafox_person_day_access_schedule_2_detail set basement_floor8 = 0 where basement_floor8 is null','update cw_datafox_person_day_access_schedule_2_detail set basement_floor8 = 0 where basement_floor8 is null',0,'OK','',''),
(1160,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor9\')','',1177,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.basement_floor9','','2024-03-07 09:48:38','2024-03-07 09:48:38','','alter table cw_datafox_person_day_access_schedule_2_detail add basement_floor9 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column basement_floor9 BIT',0,'condition is false','',''),
(1161,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor9\')','',1178,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.basement_floor9 = 0','','2024-03-07 09:48:38','2024-03-07 09:48:38','','update cw_datafox_person_day_access_schedule_2_detail set basement_floor9 = 0 where basement_floor9 is null','update cw_datafox_person_day_access_schedule_2_detail set basement_floor9 = 0 where basement_floor9 is null',0,'OK','',''),
(1162,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor10\')','',1179,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.basement_floor10','','2024-03-07 09:48:38','2024-03-07 09:48:38','','alter table cw_datafox_person_day_access_schedule_2_detail add basement_floor10 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column basement_floor10 BIT',0,'condition is false','',''),
(1163,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'basement_floor10\')','',1180,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.basement_floor10 = 0','','2024-03-07 09:48:38','2024-03-07 09:48:38','','update cw_datafox_person_day_access_schedule_2_detail set basement_floor10 = 0 where basement_floor10 is null','update cw_datafox_person_day_access_schedule_2_detail set basement_floor10 = 0 where basement_floor10 is null',0,'OK','',''),
(1164,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box1\')','',1181,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.key_box1','','2024-03-07 09:48:38','2024-03-07 09:48:38','','alter table cw_datafox_person_day_access_schedule_2_detail add key_box1 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column key_box1 BIT',0,'condition is false','',''),
(1165,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box1\')','',1182,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.key_box1 = 0','','2024-03-07 09:48:38','2024-03-07 09:48:38','','update cw_datafox_person_day_access_schedule_2_detail set key_box1 = 0 where key_box1 is null','update cw_datafox_person_day_access_schedule_2_detail set key_box1 = 0 where key_box1 is null',0,'OK','',''),
(1166,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box2\')','',1183,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.key_box2','','2024-03-07 09:48:38','2024-03-07 09:48:38','','alter table cw_datafox_person_day_access_schedule_2_detail add key_box2 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column key_box2 BIT',0,'condition is false','',''),
(1167,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box2\')','',1184,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.key_box2 = 0','','2024-03-07 09:48:38','2024-03-07 09:48:38','','update cw_datafox_person_day_access_schedule_2_detail set key_box2 = 0 where key_box2 is null','update cw_datafox_person_day_access_schedule_2_detail set key_box2 = 0 where key_box2 is null',0,'OK','',''),
(1168,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box3\')','',1185,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.key_box3','','2024-03-07 09:48:38','2024-03-07 09:48:38','','alter table cw_datafox_person_day_access_schedule_2_detail add key_box3 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column key_box3 BIT',0,'condition is false','',''),
(1169,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box3\')','',1186,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.key_box3 = 0','','2024-03-07 09:48:38','2024-03-07 09:48:38','','update cw_datafox_person_day_access_schedule_2_detail set key_box3 = 0 where key_box3 is null','update cw_datafox_person_day_access_schedule_2_detail set key_box3 = 0 where key_box3 is null',0,'OK','',''),
(1170,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box4\')','',1187,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.key_box4','','2024-03-07 09:48:38','2024-03-07 09:48:38','','alter table cw_datafox_person_day_access_schedule_2_detail add key_box4 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column key_box4 BIT',0,'condition is false','',''),
(1171,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box4\')','',1188,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.key_box4 = 0','','2024-03-07 09:48:38','2024-03-07 09:48:38','','update cw_datafox_person_day_access_schedule_2_detail set key_box4 = 0 where key_box4 is null','update cw_datafox_person_day_access_schedule_2_detail set key_box4 = 0 where key_box4 is null',0,'OK','',''),
(1172,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box5\')','',1189,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.key_box5','','2024-03-07 09:48:38','2024-03-07 09:48:38','','alter table cw_datafox_person_day_access_schedule_2_detail add key_box5 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column key_box5 BIT',0,'condition is false','',''),
(1173,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box5\')','',1190,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.key_box5 = 0','','2024-03-07 09:48:38','2024-03-07 09:48:38','','update cw_datafox_person_day_access_schedule_2_detail set key_box5 = 0 where key_box5 is null','update cw_datafox_person_day_access_schedule_2_detail set key_box5 = 0 where key_box5 is null',0,'OK','',''),
(1174,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box6\')','',1191,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.key_box6','','2024-03-07 09:48:39','2024-03-07 09:48:39','','alter table cw_datafox_person_day_access_schedule_2_detail add key_box6 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column key_box6 BIT',0,'condition is false','',''),
(1175,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box6\')','',1192,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.key_box6 = 0','','2024-03-07 09:48:39','2024-03-07 09:48:39','','update cw_datafox_person_day_access_schedule_2_detail set key_box6 = 0 where key_box6 is null','update cw_datafox_person_day_access_schedule_2_detail set key_box6 = 0 where key_box6 is null',0,'OK','',''),
(1176,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box7\')','',1193,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.key_box7','','2024-03-07 09:48:39','2024-03-07 09:48:39','','alter table cw_datafox_person_day_access_schedule_2_detail add key_box7 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column key_box7 BIT',0,'condition is false','',''),
(1177,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box7\')','',1194,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.key_box7 = 0','','2024-03-07 09:48:39','2024-03-07 09:48:39','','update cw_datafox_person_day_access_schedule_2_detail set key_box7 = 0 where key_box7 is null','update cw_datafox_person_day_access_schedule_2_detail set key_box7 = 0 where key_box7 is null',0,'OK','',''),
(1178,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box8\')','',1195,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.key_box8','','2024-03-07 09:48:39','2024-03-07 09:48:39','','alter table cw_datafox_person_day_access_schedule_2_detail add key_box8 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column key_box8 BIT',0,'condition is false','',''),
(1179,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box8\')','',1196,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.key_box8 = 0','','2024-03-07 09:48:39','2024-03-07 09:48:39','','update cw_datafox_person_day_access_schedule_2_detail set key_box8 = 0 where key_box8 is null','update cw_datafox_person_day_access_schedule_2_detail set key_box8 = 0 where key_box8 is null',0,'OK','',''),
(1180,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box9\')','',1197,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.key_box9','','2024-03-07 09:48:39','2024-03-07 09:48:39','','alter table cw_datafox_person_day_access_schedule_2_detail add key_box9 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column key_box9 BIT',0,'condition is false','',''),
(1181,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box9\')','',1198,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.key_box9 = 0','','2024-03-07 09:48:39','2024-03-07 09:48:39','','update cw_datafox_person_day_access_schedule_2_detail set key_box9 = 0 where key_box9 is null','update cw_datafox_person_day_access_schedule_2_detail set key_box9 = 0 where key_box9 is null',0,'OK','',''),
(1182,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box10\')','',1199,'2024-03-07 09:48:30','\0','add column cw_datafox_person_day_access_schedule_2_detail.key_box10','','2024-03-07 09:48:39','2024-03-07 09:48:39','','alter table cw_datafox_person_day_access_schedule_2_detail add key_box10 BIT','alter table cw_datafox_person_day_access_schedule_2_detail add column key_box10 BIT',0,'condition is false','',''),
(1183,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_datafox_person_day_access_schedule_2_detail\', \'key_box10\')','',1200,'2024-03-07 09:48:30','\0','init cw_datafox_person_day_access_schedule_2_detail.key_box10 = 0','','2024-03-07 09:48:39','2024-03-07 09:48:39','','update cw_datafox_person_day_access_schedule_2_detail set key_box10 = 0 where key_box10 is null','update cw_datafox_person_day_access_schedule_2_detail set key_box10 = 0 where key_box10 is null',0,'OK','',''),
(1184,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox\', \'action1\')','',1201,'2024-03-07 09:48:30','\0','init cw_terminal_datafox.action1 = 1','','2024-03-07 09:48:39','2024-03-07 09:48:39','','update cw_terminal_datafox set action1 = 1','update cw_terminal_datafox set action1 = 1',0,'OK','',''),
(1185,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox\', \'door_module\')','',1202,'2024-03-07 09:48:30','\0','add column cw_terminal_datafox.door_module','','2024-03-07 09:48:39','2024-03-07 09:48:39','','alter table cw_terminal_datafox add door_module INTEGER','alter table cw_terminal_datafox add column door_module INTEGER',0,'condition is false','',''),
(1186,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox\', \'door_module\')','',1203,'2024-03-07 09:48:30','\0','init cw_terminal_datafox.door_module = 0','','2024-03-07 09:48:39','2024-03-07 09:48:39','','update cw_terminal_datafox set door_module = 0 where door_module is null','update cw_terminal_datafox set door_module = 0 where door_module is null',0,'OK','',''),
(1187,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_datafox_person_access_schedules\')','',1204,'2024-03-07 09:48:30','\0','add column cw_general_validation.all_datafox_person_access_schedules','','2024-03-07 09:48:39','2024-03-07 09:48:39','','alter table cw_general_validation add all_datafox_person_access_schedules BIT','alter table cw_general_validation add column all_datafox_person_access_schedules BIT',0,'condition is false','',''),
(1188,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_datafox_person_access_schedules\')','',1205,'2024-03-07 09:48:30','\0','init cw_general_validation.all_datafox_person_access_schedules = false','','2024-03-07 09:48:39','2024-03-07 09:48:39','','update cw_general_validation set all_datafox_person_access_schedules = 0 where all_datafox_person_access_schedules is null','update cw_general_validation set all_datafox_person_access_schedules = 0 where all_datafox_person_access_schedules is null',0,'OK','',''),
(1189,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_datafox_door_access_schedules\')','',1206,'2024-03-07 09:48:31','\0','add column cw_general_validation.all_datafox_door_access_schedules','','2024-03-07 09:48:39','2024-03-07 09:48:39','','alter table cw_general_validation add all_door_datafox_access_schedules BIT','alter table cw_general_validation add column all_datafox_door_access_schedules BIT',0,'condition is false','',''),
(1190,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_datafox_door_access_schedules\')','',1207,'2024-03-07 09:48:31','\0','init cw_general_validation.all_datafox_door_access_schedules = false','','2024-03-07 09:48:39','2024-03-07 09:48:39','','update cw_general_validation set all_datafox_door_access_schedules = 0 where all_datafox_door_access_schedules is null','update cw_general_validation set all_datafox_door_access_schedules = 0 where all_datafox_door_access_schedules is null',0,'OK','',''),
(1191,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_keyflex_person_access_schedules\')','',1209,'2024-03-07 09:48:31','\0','add column cw_general_validation.all_keyflex_person_access_schedules','','2024-03-07 09:48:39','2024-03-07 09:48:39','','alter table cw_general_validation add all_keyflex_person_access_schedules BIT','alter table cw_general_validation add column all_keyflex_person_access_schedules BIT',0,'condition is false','',''),
(1192,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_keyflex_person_access_schedules\')','',1210,'2024-03-07 09:48:31','\0','init cw_general_validation.all_keyflex_person_access_schedules = false','','2024-03-07 09:48:39','2024-03-07 09:48:39','','update cw_general_validation set all_keyflex_person_access_schedules = 0 where all_keyflex_person_access_schedules is null','update cw_general_validation set all_keyflex_person_access_schedules = 0 where all_keyflex_person_access_schedules is null',0,'OK','',''),
(1193,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_keyflex_door_access_schedules\')','',1211,'2024-03-07 09:48:31','\0','add column cw_general_validation.all_keyflex_door_access_schedules','','2024-03-07 09:48:39','2024-03-07 09:48:39','','alter table cw_general_validation add all_door_keyflex_access_schedules BIT','alter table cw_general_validation add column all_keyflex_door_access_schedules BIT',0,'condition is false','',''),
(1194,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_keyflex_door_access_schedules\')','',1212,'2024-03-07 09:48:31','\0','init cw_general_validation.all_keyflex_door_access_schedules = false','','2024-03-07 09:48:39','2024-03-07 09:48:39','','update cw_general_validation set all_keyflex_door_access_schedules = 0 where all_keyflex_door_access_schedules is null','update cw_general_validation set all_keyflex_door_access_schedules = 0 where all_keyflex_door_access_schedules is null',0,'OK','',''),
(1195,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_gantner_person_access_schedules\')','',1213,'2024-03-07 09:48:31','\0','add column cw_general_validation.all_gantner_person_access_schedules','','2024-03-07 09:48:39','2024-03-07 09:48:39','','alter table cw_general_validation add all_gantner_person_access_schedules BIT','alter table cw_general_validation add column all_gantner_person_access_schedules BIT',0,'condition is false','',''),
(1196,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_gantner_person_access_schedules\')','',1214,'2024-03-07 09:48:31','\0','init cw_general_validation.all_gantner_person_access_schedules = false','','2024-03-07 09:48:39','2024-03-07 09:48:39','','update cw_general_validation set all_gantner_person_access_schedules = 0 where all_gantner_person_access_schedules is null','update cw_general_validation set all_gantner_person_access_schedules = 0 where all_gantner_person_access_schedules is null',0,'OK','',''),
(1197,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_gantner_door_access_schedules\')','',1215,'2024-03-07 09:48:31','\0','add column cw_general_validation.all_gantner_door_access_schedules','','2024-03-07 09:48:39','2024-03-07 09:48:39','','alter table cw_general_validation add all_door_gantner_access_schedules BIT','alter table cw_general_validation add column all_gantner_door_access_schedules BIT',0,'condition is false','',''),
(1198,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_gantner_door_access_schedules\')','',1216,'2024-03-07 09:48:31','\0','init cw_general_validation.all_gantner_door_access_schedules = false','','2024-03-07 09:48:39','2024-03-07 09:48:39','','update cw_general_validation set all_gantner_door_access_schedules = 0 where all_gantner_door_access_schedules is null','update cw_general_validation set all_gantner_door_access_schedules = 0 where all_gantner_door_access_schedules is null',0,'OK','',''),
(1199,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_chiplox_person_access_schedules\')','',1217,'2024-03-07 09:48:31','\0','add column cw_general_validation.all_chiplox_person_access_schedules','','2024-03-07 09:48:39','2024-03-07 09:48:39','','alter table cw_general_validation add all_chiplox_person_access_schedules BIT','alter table cw_general_validation add column all_chiplox_person_access_schedules BIT',0,'condition is false','',''),
(1200,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_chiplox_person_access_schedules\')','',1218,'2024-03-07 09:48:31','\0','init cw_general_validation.all_chiplox_person_access_schedules = false','','2024-03-07 09:48:39','2024-03-07 09:48:39','','update cw_general_validation set all_chiplox_person_access_schedules = 0 where all_chiplox_person_access_schedules is null','update cw_general_validation set all_chiplox_person_access_schedules = 0 where all_chiplox_person_access_schedules is null',0,'OK','',''),
(1201,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_chiplox_door_access_schedules\')','',1219,'2024-03-07 09:48:31','\0','add column cw_general_validation.all_chiplox_door_access_schedules','','2024-03-07 09:48:39','2024-03-07 09:48:39','','alter table cw_general_validation add all_door_chiplox_access_schedules BIT','alter table cw_general_validation add column all_chiplox_door_access_schedules BIT',0,'condition is false','',''),
(1202,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_chiplox_door_access_schedules\')','',1220,'2024-03-07 09:48:31','\0','init cw_general_validation.all_chiplox_door_access_schedules = false','','2024-03-07 09:48:39','2024-03-07 09:48:39','','update cw_general_validation set all_chiplox_door_access_schedules = 0 where all_chiplox_door_access_schedules is null','update cw_general_validation set all_chiplox_door_access_schedules = 0 where all_chiplox_door_access_schedules is null',0,'OK','',''),
(1203,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_seccor_person_access_schedules\')','',1221,'2024-03-07 09:48:31','\0','add column cw_general_validation.all_seccor_person_access_schedules','','2024-03-07 09:48:39','2024-03-07 09:48:39','','alter table cw_general_validation add all_seccor_person_access_schedules BIT','alter table cw_general_validation add column all_seccor_person_access_schedules BIT',0,'condition is false','',''),
(1204,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_seccor_person_access_schedules\')','',1222,'2024-03-07 09:48:31','\0','init cw_general_validation.all_seccor_person_access_schedules = false','','2024-03-07 09:48:39','2024-03-07 09:48:39','','update cw_general_validation set all_seccor_person_access_schedules = 0 where all_seccor_person_access_schedules is null','update cw_general_validation set all_seccor_person_access_schedules = 0 where all_seccor_person_access_schedules is null',0,'OK','',''),
(1205,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_seccor_door_access_schedules\')','',1223,'2024-03-07 09:48:31','\0','add column cw_general_validation.all_seccor_door_access_schedules','','2024-03-07 09:48:40','2024-03-07 09:48:40','','alter table cw_general_validation add all_door_seccor_access_schedules BIT','alter table cw_general_validation add column all_seccor_door_access_schedules BIT',0,'condition is false','',''),
(1206,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_seccor_door_access_schedules\')','',1224,'2024-03-07 09:48:31','\0','init cw_general_validation.all_seccor_door_access_schedules = false','','2024-03-07 09:48:40','2024-03-07 09:48:40','','update cw_general_validation set all_seccor_door_access_schedules = 0 where all_seccor_door_access_schedules is null','update cw_general_validation set all_seccor_door_access_schedules = 0 where all_seccor_door_access_schedules is null',0,'OK','',''),
(1207,1,'','',1225,'2024-03-07 09:48:31','\0','init allPersonAccessSchedules and allDoorAccessSchedules','','2024-03-07 09:48:40','2024-03-07 09:48:40','','','',0,'OK','','import at.clockwork.common.domain.*\nimport at.clockwork.common.generalValidation.domain.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def generalValidationWriteService = Holders.grailsApplication.mainContext.getBean \'generalValidationWriteService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        GeneralValidation.findAllWhere(deleted:false).each { GeneralValidation itGeneralValidation ->\n\n            if (\n                itGeneralValidation.allTerminals ||\n                GeneralValidation2TerminalWhitelist.findAllWhere( generalValidation : itGeneralValidation ).size() > 0 ||\n                GeneralValidation2TerminalCategoryWhitelist.findAllWhere( generalValidation : itGeneralValidation ).size() > 0 ||\n                GeneralValidation2TerminalCategoryBlacklist.findAllWhere( generalValidation : itGeneralValidation ).size() > 0\n            ) {\n\n                itGeneralValidation.allDatafoxPersonAccessSchedules = true\n                itGeneralValidation.allDatafoxDoorAccessSchedules = true\n\n                itGeneralValidation.allKeyflexPersonAccessSchedules = true\n                itGeneralValidation.allKeyflexDoorAccessSchedules = true\n\n                itGeneralValidation.allGantnerPersonAccessSchedules = true\n                itGeneralValidation.allGantnerDoorAccessSchedules = true\n\n                itGeneralValidation.allChiploxPersonAccessSchedules = true\n                itGeneralValidation.allChiploxDoorAccessSchedules = true\n\n                itGeneralValidation.allSeccorPersonAccessSchedules = true\n                itGeneralValidation.allSeccorDoorAccessSchedules = true\n\n                generalValidationWriteService.save(itGeneralValidation)\n\n            }\n\n        }\n\n		true\n\n	}\n}'),
(1208,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_model_2_detail\', \'max_minimum_attendance_time\')','',1226,'2024-03-07 09:48:31','\0','add column cw_time_model_2_detail.max_minimum_attendance_time','','2024-03-07 09:48:40','2024-03-07 09:48:40','','alter table cw_time_model_2_detail add max_minimum_attendance_time INTEGER','alter table cw_time_model_2_detail add column max_minimum_attendance_time INTEGER',0,'condition is false','',''),
(1209,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_model_2_detail\', \'max_minimum_attendance_time\')','',1227,'2024-03-07 09:48:31','\0','init cw_time_model_2_detail.max_minimum_attendance_time = 0','','2024-03-07 09:48:40','2024-03-07 09:48:40','','update cw_time_model_2_detail set max_minimum_attendance_time = 0 where max_minimum_attendance_time is null','update cw_time_model_2_detail set max_minimum_attendance_time = 0 where max_minimum_attendance_time is null',0,'OK','',''),
(1210,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_date_time_model_2_detail\', \'max_minimum_attendance_time\')','',1228,'2024-03-07 09:48:31','\0','add column cw_person_date_time_model_2_detail.max_minimum_attendance_time','','2024-03-07 09:48:40','2024-03-07 09:48:40','','alter table cw_person_date_time_model_2_detail add max_minimum_attendance_time INTEGER','alter table cw_person_date_time_model_2_detail add column max_minimum_attendance_time INTEGER',0,'condition is false','',''),
(1211,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_date_time_model_2_detail\', \'max_minimum_attendance_time\')','',1229,'2024-03-07 09:48:31','\0','init cw_person_date_time_model_2_detail.max_minimum_attendance_time = 0','','2024-03-07 09:48:40','2024-03-07 09:48:40','','update cw_person_date_time_model_2_detail set max_minimum_attendance_time = 0 where max_minimum_attendance_time is null','update cw_person_date_time_model_2_detail set max_minimum_attendance_time = 0 where max_minimum_attendance_time is null',0,'OK','',''),
(1212,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_model_2_pause_time_2_variant\', \'max_minimum_attendance_time\')','',1230,'2024-03-07 09:48:31','\0','add column cw_time_model_2_pause_time_2_variant.max_minimum_attendance_time','','2024-03-07 09:48:40','2024-03-07 09:48:40','','alter table cw_time_model_2_pause_time_2_variant add max_minimum_attendance_time INTEGER','alter table cw_time_model_2_pause_time_2_variant add column max_minimum_attendance_time INTEGER',0,'condition is false','',''),
(1213,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_model_2_pause_time_2_variant\', \'max_minimum_attendance_time\')','',1231,'2024-03-07 09:48:31','\0','init cw_time_model_2_pause_time_2_variant.max_minimum_attendance_time = 0','','2024-03-07 09:48:40','2024-03-07 09:48:40','','update cw_time_model_2_pause_time_2_variant set max_minimum_attendance_time = 0 where max_minimum_attendance_time is null','update cw_time_model_2_pause_time_2_variant set max_minimum_attendance_time = 0 where max_minimum_attendance_time is null',0,'OK','',''),
(1214,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_companies\')','',-1198,'2024-06-08 09:37:27','\0','init cw_general_validation.all_companies = false','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set all_companies = 0 where all_companies is null','update cw_general_validation set all_companies = 0 where all_companies is null',0,'OK','',''),
(1215,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_time_time_types\')','',-1197,'2024-06-08 09:37:27','\0','init cw_general_validation.all_time_time_types = false','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set all_time_time_types = 0 where all_time_time_types is null','update cw_general_validation set all_time_time_types = 0 where all_time_time_types is null',0,'OK','',''),
(1216,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_time_time_models\')','',-1196,'2024-06-08 09:37:27','\0','init cw_general_validation.all_time_time_models = false','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set all_time_time_models = 0 where all_time_time_models is null','update cw_general_validation set all_time_time_models = 0 where all_time_time_models is null',0,'OK','',''),
(1217,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_time_time_plans\')','',-1195,'2024-06-08 09:37:27','\0','init cw_general_validation.all_time_time_plans = false','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set all_time_time_plans = 0 where all_time_time_plans is null','update cw_general_validation set all_time_time_plans = 0 where all_time_time_plans is null',0,'OK','',''),
(1218,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_companies\')','',-1194,'2024-06-08 09:37:27','\0','init cw_general_validation.all_companies = false','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set all_companies = 0 where all_companies is null','update cw_general_validation set all_companies = 0 where all_companies is null',0,'OK','',''),
(1219,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_companies\')','',-1193,'2024-06-08 09:37:27','\0','init cw_general_validation.all_companies = false','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set all_companies = 0 where all_companies is null','update cw_general_validation set all_companies = 0 where all_companies is null',0,'OK','',''),
(1220,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_time_time_models\')','',-1192,'2024-06-08 09:37:27','\0','init cw_general_validation.all_time_time_models = false','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set all_time_time_models = 0 where all_time_time_models is null','update cw_general_validation set all_time_time_models = 0 where all_time_time_models is null',0,'OK','',''),
(1221,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_time_time_plans\')','',-1191,'2024-06-08 09:37:27','\0','init cw_general_validation.all_time_time_plans = false','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set all_time_time_plans = 0 where all_time_time_plans is null','update cw_general_validation set all_time_time_plans = 0 where all_time_time_plans is null',0,'OK','',''),
(1222,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_time_time_types\')','',-1199,'2024-06-08 09:37:27','\0','init cw_general_validation.all_time_time_types = false','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set all_time_time_types = 0 where all_time_time_types is null','update cw_general_validation set all_time_time_types = 0 where all_time_time_types is null',0,'OK','',''),
(1223,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_users\')','',-1190,'2024-06-08 09:37:27','\0','init cw_general_validation.all_users = false','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set all_users = 0 where all_users is null','update cw_general_validation set all_users = 0 where all_users is null',0,'OK','',''),
(1224,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_workflow_types\')','',-1189,'2024-06-08 09:37:28','\0','init cw_general_validation.all_workflow_types = false','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set all_workflow_types = 0 where all_workflow_types is null','update cw_general_validation set all_workflow_types = 0 where all_workflow_types is null',0,'OK','',''),
(1225,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_system_configuration\', \'class\')','',-1295,'2024-06-08 09:37:28','\0','init systemConfiguration.class','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_system_configuration set class=\'at.clockwork.system.domain.SystemConfiguration\' where class is null or class = \'\'','update cw_system_configuration set class=\'at.clockwork.system.domain.SystemConfiguration\' where class is null or class = \'\'',0,'OK','',''),
(1226,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'priority_for_system_configurations\')','',-1188,'2024-06-08 09:37:28','\0','init GeneralValidation.priorityForSystemConfigurations','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set priority_for_system_configurations = 0 where priority_for_system_configurations is null','update cw_general_validation set priority_for_system_configurations = 0 where priority_for_system_configurations is null',0,'OK','',''),
(1227,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_system_configuration\', \'rewritable_in_general_validation\')','',-1299,'2024-06-08 09:37:28','\0','init SystemConfiguration.rewritableInGeneralValidation','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_system_configuration set rewritable_in_general_validation = 0 where rewritable_in_general_validation is null','update cw_system_configuration set rewritable_in_general_validation = 0 where rewritable_in_general_validation is null',0,'OK','',''),
(1228,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_system_configuration\', \'class\')','',-1296,'2024-06-08 09:37:29','\0','add column systemConfiguration.class','','2024-06-08 09:37:35','2024-06-08 09:37:35','','alter table cw_system_configuration add class varchar(255) NULL','alter table cw_system_configuration add class varchar(255)',0,'condition is false','',''),
(1229,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_ressources\')','',-1187,'2024-06-08 09:37:30','\0','add column cw_general_validation.all_ressources','','2024-06-08 09:37:35','2024-06-08 09:37:35','','alter table cw_general_validation add all_ressources BIT','alter table cw_general_validation add column all_ressources BIT',0,'condition is false','',''),
(1230,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_ressources\')','',-1186,'2024-06-08 09:37:30','\0','init cw_general_validation.all_ressources = false','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set all_ressources = 0 where all_ressources is null','update cw_general_validation set all_ressources = 0 where all_ressources is null',0,'OK','',''),
(1231,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_work_combinations\')','',-1185,'2024-06-08 09:37:30','\0','add column cw_general_validation.all_work_combinations','','2024-06-08 09:37:35','2024-06-08 09:37:35','','alter table cw_general_validation add all_work_combinations BIT','alter table cw_general_validation add column all_work_combinations BIT',0,'condition is false','',''),
(1232,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_work_combinations\')','',-1184,'2024-06-08 09:37:30','\0','init cw_general_validation.all_work_combinations = false','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set all_work_combinations = 0 where all_work_combinations is null','update cw_general_validation set all_work_combinations = 0 where all_work_combinations is null',0,'OK','',''),
(1233,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_system_configuration\', \'double_value\')','',-1298,'2024-06-08 09:37:31','\0','add column cw_system_configuration.double_value','','2024-06-08 09:37:35','2024-06-08 09:37:35','','alter table cw_system_configuration add double_value FLOAT(53) NULL','alter table cw_system_configuration add double_value DOUBLE',0,'condition is false','',''),
(1234,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_system_configuration\', \'double_value\')','',-1297,'2024-06-08 09:37:31','\0','init cw_system_configuration.double_value = 0','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_system_configuration set double_value = 0 where double_value is null','update cw_system_configuration set double_value = 0 where double_value is null',0,'OK','',''),
(1235,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_event_types\')','',-1183,'2024-06-08 09:37:33','\0','add column cw_general_validation.all_event_types','','2024-06-08 09:37:35','2024-06-08 09:37:35','','alter table cw_general_validation add all_event_types BIT','alter table cw_general_validation add column all_event_types BIT',0,'condition is false','',''),
(1236,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_event_types\')','',-1182,'2024-06-08 09:37:33','\0','init cw_general_validation.all_event_types = false','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set all_event_types = 0 where all_event_types is null','update cw_general_validation set all_event_types = 0 where all_event_types is null',0,'OK','',''),
(1237,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_datafox_person_access_schedules\')','',-1181,'2024-06-08 09:37:34','\0','add column cw_general_validation.all_datafox_person_access_schedules','','2024-06-08 09:37:35','2024-06-08 09:37:35','','alter table cw_general_validation add all_datafox_person_access_schedules BIT','alter table cw_general_validation add column all_datafox_person_access_schedules BIT',0,'condition is false','',''),
(1238,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_datafox_person_access_schedules\')','',-1180,'2024-06-08 09:37:34','\0','init cw_general_validation.all_datafox_person_access_schedules = false','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set all_datafox_person_access_schedules = 0 where all_datafox_person_access_schedules is null','update cw_general_validation set all_datafox_person_access_schedules = 0 where all_datafox_person_access_schedules is null',0,'OK','',''),
(1239,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_datafox_door_access_schedules\')','',-1179,'2024-06-08 09:37:34','\0','add column cw_general_validation.all_datafox_door_access_schedules','','2024-06-08 09:37:35','2024-06-08 09:37:35','','alter table cw_general_validation add all_door_datafox_access_schedules BIT','alter table cw_general_validation add column all_datafox_door_access_schedules BIT',0,'condition is false','',''),
(1240,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_datafox_door_access_schedules\')','',-1178,'2024-06-08 09:37:34','\0','init cw_general_validation.all_datafox_door_access_schedules = false','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set all_datafox_door_access_schedules = 0 where all_datafox_door_access_schedules is null','update cw_general_validation set all_datafox_door_access_schedules = 0 where all_datafox_door_access_schedules is null',0,'OK','',''),
(1241,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_keyflex_person_access_schedules\')','',-1177,'2024-06-08 09:37:34','\0','add column cw_general_validation.all_keyflex_person_access_schedules','','2024-06-08 09:37:35','2024-06-08 09:37:35','','alter table cw_general_validation add all_keyflex_person_access_schedules BIT','alter table cw_general_validation add column all_keyflex_person_access_schedules BIT',0,'condition is false','',''),
(1242,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_keyflex_person_access_schedules\')','',-1176,'2024-06-08 09:37:34','\0','init cw_general_validation.all_keyflex_person_access_schedules = false','','2024-06-08 09:37:35','2024-06-08 09:37:35','','update cw_general_validation set all_keyflex_person_access_schedules = 0 where all_keyflex_person_access_schedules is null','update cw_general_validation set all_keyflex_person_access_schedules = 0 where all_keyflex_person_access_schedules is null',0,'OK','',''),
(1243,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_keyflex_door_access_schedules\')','',-1175,'2024-06-08 09:37:34','\0','add column cw_general_validation.all_keyflex_door_access_schedules','','2024-06-08 09:37:35','2024-06-08 09:37:35','','alter table cw_general_validation add all_door_keyflex_access_schedules BIT','alter table cw_general_validation add column all_keyflex_door_access_schedules BIT',0,'condition is false','',''),
(1244,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_keyflex_door_access_schedules\')','',-1174,'2024-06-08 09:37:34','\0','init cw_general_validation.all_keyflex_door_access_schedules = false','','2024-06-08 09:37:36','2024-06-08 09:37:36','','update cw_general_validation set all_keyflex_door_access_schedules = 0 where all_keyflex_door_access_schedules is null','update cw_general_validation set all_keyflex_door_access_schedules = 0 where all_keyflex_door_access_schedules is null',0,'OK','',''),
(1245,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_gantner_person_access_schedules\')','',-1173,'2024-06-08 09:37:34','\0','add column cw_general_validation.all_gantner_person_access_schedules','','2024-06-08 09:37:36','2024-06-08 09:37:36','','alter table cw_general_validation add all_gantner_person_access_schedules BIT','alter table cw_general_validation add column all_gantner_person_access_schedules BIT',0,'condition is false','',''),
(1246,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_gantner_person_access_schedules\')','',-1172,'2024-06-08 09:37:34','\0','init cw_general_validation.all_gantner_person_access_schedules = false','','2024-06-08 09:37:36','2024-06-08 09:37:36','','update cw_general_validation set all_gantner_person_access_schedules = 0 where all_gantner_person_access_schedules is null','update cw_general_validation set all_gantner_person_access_schedules = 0 where all_gantner_person_access_schedules is null',0,'OK','',''),
(1247,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_gantner_door_access_schedules\')','',-1171,'2024-06-08 09:37:34','\0','add column cw_general_validation.all_gantner_door_access_schedules','','2024-06-08 09:37:36','2024-06-08 09:37:36','','alter table cw_general_validation add all_door_gantner_access_schedules BIT','alter table cw_general_validation add column all_gantner_door_access_schedules BIT',0,'condition is false','',''),
(1248,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_gantner_door_access_schedules\')','',-1170,'2024-06-08 09:37:34','\0','init cw_general_validation.all_gantner_door_access_schedules = false','','2024-06-08 09:37:36','2024-06-08 09:37:36','','update cw_general_validation set all_gantner_door_access_schedules = 0 where all_gantner_door_access_schedules is null','update cw_general_validation set all_gantner_door_access_schedules = 0 where all_gantner_door_access_schedules is null',0,'OK','',''),
(1249,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_chiplox_person_access_schedules\')','',-1169,'2024-06-08 09:37:34','\0','add column cw_general_validation.all_chiplox_person_access_schedules','','2024-06-08 09:37:36','2024-06-08 09:37:36','','alter table cw_general_validation add all_chiplox_person_access_schedules BIT','alter table cw_general_validation add column all_chiplox_person_access_schedules BIT',0,'condition is false','',''),
(1250,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_chiplox_person_access_schedules\')','',-1168,'2024-06-08 09:37:34','\0','init cw_general_validation.all_chiplox_person_access_schedules = false','','2024-06-08 09:37:36','2024-06-08 09:37:36','','update cw_general_validation set all_chiplox_person_access_schedules = 0 where all_chiplox_person_access_schedules is null','update cw_general_validation set all_chiplox_person_access_schedules = 0 where all_chiplox_person_access_schedules is null',0,'OK','',''),
(1251,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_chiplox_door_access_schedules\')','',-1167,'2024-06-08 09:37:34','\0','add column cw_general_validation.all_chiplox_door_access_schedules','','2024-06-08 09:37:36','2024-06-08 09:37:36','','alter table cw_general_validation add all_door_chiplox_access_schedules BIT','alter table cw_general_validation add column all_chiplox_door_access_schedules BIT',0,'condition is false','',''),
(1252,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_chiplox_door_access_schedules\')','',-1166,'2024-06-08 09:37:34','\0','init cw_general_validation.all_chiplox_door_access_schedules = false','','2024-06-08 09:37:36','2024-06-08 09:37:36','','update cw_general_validation set all_chiplox_door_access_schedules = 0 where all_chiplox_door_access_schedules is null','update cw_general_validation set all_chiplox_door_access_schedules = 0 where all_chiplox_door_access_schedules is null',0,'OK','',''),
(1253,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_seccor_person_access_schedules\')','',-1165,'2024-06-08 09:37:34','\0','add column cw_general_validation.all_seccor_person_access_schedules','','2024-06-08 09:37:36','2024-06-08 09:37:36','','alter table cw_general_validation add all_seccor_person_access_schedules BIT','alter table cw_general_validation add column all_seccor_person_access_schedules BIT',0,'condition is false','',''),
(1254,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_seccor_person_access_schedules\')','',-1164,'2024-06-08 09:37:34','\0','init cw_general_validation.all_seccor_person_access_schedules = false','','2024-06-08 09:37:36','2024-06-08 09:37:36','','update cw_general_validation set all_seccor_person_access_schedules = 0 where all_seccor_person_access_schedules is null','update cw_general_validation set all_seccor_person_access_schedules = 0 where all_seccor_person_access_schedules is null',0,'OK','',''),
(1255,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_seccor_door_access_schedules\')','',-1163,'2024-06-08 09:37:34','\0','add column cw_general_validation.all_seccor_door_access_schedules','','2024-06-08 09:37:36','2024-06-08 09:37:36','','alter table cw_general_validation add all_door_seccor_access_schedules BIT','alter table cw_general_validation add column all_seccor_door_access_schedules BIT',0,'condition is false','',''),
(1256,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_general_validation\', \'all_seccor_door_access_schedules\')','',-1162,'2024-06-08 09:37:34','\0','init cw_general_validation.all_seccor_door_access_schedules = false','','2024-06-08 09:37:36','2024-06-08 09:37:36','','update cw_general_validation set all_seccor_door_access_schedules = 0 where all_seccor_door_access_schedules is null','update cw_general_validation set all_seccor_door_access_schedules = 0 where all_seccor_door_access_schedules is null',0,'OK','',''),
(1257,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_tmc\', \'web_socket\')','',1232,'2024-07-14 18:31:22','\0','add column cw_terminal_tmc.web_socket','','2024-07-14 18:31:23','2024-07-14 18:31:23','','alter table cw_terminal_tmc add web_socket BIT','alter table cw_terminal_tmc add column web_socket BIT',0,'condition is false','',''),
(1258,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_tmc\', \'web_socket\')','',1233,'2024-07-14 18:31:22','\0','init cw_terminal_tmc.web_socket = 0','','2024-07-14 18:31:23','2024-07-14 18:31:23','','update cw_terminal_tmc set web_socket = 0 where web_socket is null','update cw_terminal_tmc set web_socket = 0 where web_socket is null',0,'OK','',''),
(1259,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_information_type\', \'email_subject_text\')','',1234,'2024-07-14 18:31:22','\0','set cw_information_type.email_subject_text to varchar(255) NULL','','2024-07-14 18:31:23','2024-07-14 18:31:23','','alter table cw_information_type alter column email_subject_text varchar(255) null','alter table cw_information_type modify email_subject_text varchar(255) null',0,'OK','',''),
(1260,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_information_type\', \'email_object_text\')','',1235,'2024-07-14 18:31:22','\0','set cw_information_type.email_object_text to varchar(255) NULL','','2024-07-14 18:31:23','2024-07-14 18:31:23','','alter table cw_information_type alter column email_object_text varchar(255) null','alter table cw_information_type modify email_object_text varchar(255) null',0,'OK','',''),
(1261,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_information_type\', \'sms_text\')','',1236,'2024-07-14 18:31:22','\0','set cw_information_type.sms_text to varchar(255) NULL','','2024-07-14 18:31:23','2024-07-14 18:31:23','','alter table cw_information_type alter column sms_text varchar(255) null','alter table cw_information_type modify sms_text varchar(255) null',0,'OK','',''),
(1262,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_information_type\', \'message_clockwork_mobile\')','',1237,'2024-07-14 18:31:22','\0','set cw_information_type.message_clockwork_mobile to varchar(255) NULL','','2024-07-14 18:31:23','2024-07-14 18:31:23','','alter table cw_information_type alter column message_clockwork_mobile varchar(255) null','alter table cw_information_type modify message_clockwork_mobile varchar(255) null',0,'OK','',''),
(1263,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_information_type\', \'terminal_text\')','',1238,'2024-07-14 18:31:22','\0','set cw_information_type.terminal_text to varchar(255) NULL','','2024-07-14 18:31:23','2024-07-14 18:31:23','','alter table cw_information_type alter column terminal_text varchar(255) null','alter table cw_information_type modify terminal_text varchar(255) null',0,'OK','',''),
(1264,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_information_type\', \'acknowledge_text\')','',1239,'2024-07-14 18:31:22','\0','set cw_information_type.acknowledge_text to varchar(255) NULL','','2024-07-14 18:31:23','2024-07-14 18:31:23','','alter table cw_information_type alter column acknowledge_text varchar(255) null','alter table cw_information_type modify acknowledge_text varchar(255) null',0,'OK','',''),
(1265,1,'','',1240,'2024-07-14 18:31:22','\0','search ToolsService in Scriptcode','','2024-07-14 18:31:24','2024-07-14 18:31:24','','','',0,'OK','','import grails.util.Holders\n\nclass UpdateScriptService {\n\n	def scriptNotTransactionalService = Holders.grailsApplication.mainContext.getBean \'scriptNotTransactionalService\'\n	def informationTransactionalService = Holders.grailsApplication.mainContext.getBean \'informationTransactionalService\'\n\n	def run(def connection, def dataSourceFields) {\n\n		scriptNotTransactionalService.searchTextWithinScriptCode(\"ToolsService\").each { Map map ->\n			informationTransactionalService.add( map.text ?: \"text\", map.date ?: (new Date()), map.comment )\n\n		}\n\n		true\n\n	}\n\n}'),
(1266,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_user\', \'programmatically_login\')','',1241,'2024-07-14 18:31:22','\0','add column cw_user.programmatically_login','','2024-07-14 18:31:24','2024-07-14 18:31:24','','alter table cw_user add programmatically_login BIT','alter table cw_user add column programmatically_login BIT',0,'condition is false','',''),
(1267,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_user\', \'programmatically_login\')','',1242,'2024-07-14 18:31:22','\0','init cw_user.programmatically_login = 0','','2024-07-14 18:31:24','2024-07-14 18:31:24','','update cw_user set programmatically_login = 0 where programmatically_login is null','update cw_user set programmatically_login = 0 where programmatically_login is null',0,'OK','',''),
(1268,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal\', \'anonymous\')','',1243,'2024-07-14 18:31:22','\0','add column cw_terminal.anonymous','','2024-07-14 18:31:24','2024-07-14 18:31:24','','alter table cw_terminal add anonymous BIT','alter table cw_terminal add column anonymous BIT',0,'condition is false','',''),
(1269,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal\', \'anonymous\')','',1244,'2024-07-14 18:31:22','\0','init cw_terminal.anonymous = 0','','2024-07-14 18:31:24','2024-07-14 18:31:24','','update cw_terminal set anonymous = 0 where anonymous is null','update cw_terminal set anonymous = 0 where anonymous is null',0,'OK','',''),
(1270,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'no_calculation_before_working_time\')','',1245,'2024-07-27 23:58:00','\0','add column cw_absence.no_calculation_before_working_time','','2024-07-27 23:58:01','2024-07-27 23:58:01','','alter table cw_absence add no_calculation_before_working_time BIT','alter table cw_absence add column no_calculation_before_working_time BIT',0,'condition is false','',''),
(1271,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'no_calculation_before_working_time\')','',1246,'2024-07-27 23:58:00','\0','init cw_absence.no_calculation_before_working_time = 0','','2024-07-27 23:58:01','2024-07-27 23:58:01','','update cw_absence set no_calculation_before_working_time = 0 where no_calculation_before_working_time is null','update cw_absence set no_calculation_before_working_time = 0 where no_calculation_before_working_time is null',0,'OK','',''),
(1272,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'no_calculation_after_working_time\')','',1247,'2024-07-27 23:58:00','\0','add column cw_absence.no_calculation_after_working_time','','2024-07-27 23:58:01','2024-07-27 23:58:01','','alter table cw_absence add no_calculation_after_working_time BIT','alter table cw_absence add column no_calculation_after_working_time BIT',0,'condition is false','',''),
(1273,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'no_calculation_after_working_time\')','',1248,'2024-07-27 23:58:00','\0','init cw_absence.no_calculation_after_working_time = 0','','2024-07-27 23:58:01','2024-07-27 23:58:01','','update cw_absence set no_calculation_after_working_time = 0 where no_calculation_after_working_time is null','update cw_absence set no_calculation_after_working_time = 0 where no_calculation_after_working_time is null',0,'OK','',''),
(1274,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox\', \'booking_response_with_balance\')','',1249,'2024-09-10 15:28:23','\0','add column cw_terminal_datafox.booking_response_with_balance','','2024-09-10 15:28:24','2024-09-10 15:28:24','','alter table cw_terminal_datafox add booking_response_with_balance BIT','alter table cw_terminal_datafox add column booking_response_with_balance BIT',0,'condition is false','',''),
(1275,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_datafox\', \'booking_response_with_balance\')','',1250,'2024-09-10 15:28:23','\0','init cw_terminal_datafox.booking_response_with_balance = 0','','2024-09-10 15:28:24','2024-09-10 15:28:24','','update cw_terminal_datafox set booking_response_with_balance = 0 where booking_response_with_balance is null','update cw_terminal_datafox set booking_response_with_balance = 0 where booking_response_with_balance is null',0,'OK','',''),
(1276,2,'','',9001,'2024-09-10 15:28:23','\0','search ToolsService in Scriptcode','','2024-09-10 15:28:24','2025-03-19 11:55:31','','','',0,'OK','','import grails.util.Holders\n\nclass UpdateScriptService {\n\n    /*\n        at.clockwork.common.service.ToolsService wurde zu at.clockwork.common.service.GrailsToolsService\n        ------------------------------------------------------------------------------------------------\n\n        1) ToolsService eventuell aendern auf GrailsToolsService\n        2) import at.clockwork.common.service.GrailsToolsService\n\n    */\n\n	def scriptNotTransactionalService = Holders.grailsApplication.mainContext.getBean \'scriptNotTransactionalService\'\n	def informationTransactionalService = Holders.grailsApplication.mainContext.getBean \'informationTransactionalService\'\n\n	def run(def connection, def dataSourceFields) {\n\n		scriptNotTransactionalService.searchTextWithinScriptCode(\"ToolsService\").each { Map map ->\n\n			informationTransactionalService.add( map.text ?: \"text\", map.date ?: (new Date()), map.comment )\n\n		}\n\n		true\n\n	}\n\n}'),
(1277,1,'','',9002,'2024-09-10 15:28:23','\0','Verwaltung von verschiedenen Saldendefinitionen','','2024-09-10 15:28:29','2024-09-10 15:28:29','','','',0,'OK','','import at.clockwork.time.domain.*\nimport at.clockwork.terminal.domain.*\nimport at.clockwork.common.person.domain.*\n\nimport at.clockwork.singleton.SystemConfigurations\nimport at.clockwork.transfer.gwtTransfer.client.enumeration.*\nimport at.clockwork.generated.service.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def balanceDefinitionWriteService = Holders.grailsApplication.mainContext.getBean \'balanceDefinitionWriteService\'\n	def balanceDefinition2DetailWriteService = Holders.grailsApplication.mainContext.getBean \'balanceDefinition2DetailWriteService\'\n	def terminalWriteService = Holders.grailsApplication.mainContext.getBean \'terminalWriteService\'\n	def person2BalanceWriteService = Holders.grailsApplication.mainContext.getBean \'person2BalanceWriteService\'\n	def systemConfigurationService = Holders.grailsApplication.mainContext.getBean \'systemConfigurationService\'\n	def initSystemConfigurationService = Holders.grailsApplication.mainContext.getBean \'initSystemConfigurationService\'\n\n    SystemConfigurations systemConfigurations = SystemConfigurations.getInstance()\n\n	def run(def connection, def dataSourceFields) {\n\n        // damit die SystemConfiguration 400 vorhanden ist\n        initSystemConfigurationService.setupSystemConfiguration()\n\n        BalanceDefinition balanceDefinition = new BalanceDefinition()\n\n        balanceDefinition.name = \"1\"\n        balanceDefinition.description = \"allgemein\"\n\n        balanceDefinition.balancePer_de = systemConfigurations.getItem(401, \"strValue\")\n        balanceDefinition.balancePer_en = systemConfigurations.getItem(401, \"strValue\")\n\n        balanceDefinitionWriteService.save(balanceDefinition)\n        systemConfigurationService.updateByCwID((int) 400, (int) balanceDefinition.id)\n\n        saveDetail(balanceDefinition, 1, systemConfigurations.getItem(402, \"strValue\"), systemConfigurations.getItem(422, \"strValue\"), systemConfigurations.getItem(442, \"strValue\"))\n        saveDetail(balanceDefinition, 2, systemConfigurations.getItem(403, \"strValue\"), systemConfigurations.getItem(423, \"strValue\"), systemConfigurations.getItem(443, \"strValue\"))\n        saveDetail(balanceDefinition, 3, systemConfigurations.getItem(404, \"strValue\"), systemConfigurations.getItem(424, \"strValue\"), systemConfigurations.getItem(444, \"strValue\"))\n        saveDetail(balanceDefinition, 4, systemConfigurations.getItem(405, \"strValue\"), systemConfigurations.getItem(425, \"strValue\"), systemConfigurations.getItem(445, \"strValue\"))\n        saveDetail(balanceDefinition, 5, systemConfigurations.getItem(406, \"strValue\"), systemConfigurations.getItem(426, \"strValue\"), systemConfigurations.getItem(446, \"strValue\"))\n        saveDetail(balanceDefinition, 6, systemConfigurations.getItem(407, \"strValue\"), systemConfigurations.getItem(427, \"strValue\"), systemConfigurations.getItem(447, \"strValue\"))\n        saveDetail(balanceDefinition, 7, systemConfigurations.getItem(408, \"strValue\"), systemConfigurations.getItem(428, \"strValue\"), systemConfigurations.getItem(448, \"strValue\"))\n        saveDetail(balanceDefinition, 8, systemConfigurations.getItem(409, \"strValue\"), systemConfigurations.getItem(429, \"strValue\"), systemConfigurations.getItem(449, \"strValue\"))\n        saveDetail(balanceDefinition, 9, systemConfigurations.getItem(410, \"strValue\"), systemConfigurations.getItem(430, \"strValue\"), systemConfigurations.getItem(450, \"strValue\"))\n        saveDetail(balanceDefinition, 10, systemConfigurations.getItem(411, \"strValue\"), systemConfigurations.getItem(431, \"strValue\"), systemConfigurations.getItem(451, \"strValue\"))\n\n        Terminal.findAll().each {\n            it.balanceDefinition = balanceDefinition\n            terminalWriteService.save(it)\n        }\n\n        Person2Balance.findAll().each {\n            it.balanceDefinition = balanceDefinition\n            person2BalanceWriteService.save(it)\n        }\n\n		true\n\n	}\n\n	void saveDetail(BalanceDefinition balanceDefinition, int position, String description, String calculation, String timeFormatEnumString) {\n\n	    if (!balanceDefinition || balanceDefinition.hasErrors())\n	        return\n	    if (position == 0)\n	        return\n	    if (!description || !calculation || !timeFormatEnumString)\n	        return\n\n	    TimeFormatEnum timeFormatEnum\n        try {\n            timeFormatEnum = TimeFormatEnum.valueOf(timeFormatEnumString)\n        } catch (e) {\n            timeFormatEnum = TimeFormatEnum.HHMM\n        }\n\n        BalanceDefinition2Detail balanceDefinition2Detail = new BalanceDefinition2Detail()\n\n        balanceDefinition2Detail.balanceDefinition = balanceDefinition\n        balanceDefinition2Detail.position = position\n        balanceDefinition2Detail.description_de = description\n        balanceDefinition2Detail.description_en = description\n        balanceDefinition2Detail.calculation = calculation\n        balanceDefinition2Detail.timeFormatEnum = timeFormatEnum\n\n        balanceDefinition2DetailWriteService.save(balanceDefinition2Detail)\n\n	}\n\n\n}'),
(1278,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_user\', \'update_counter\')','',1251,'2024-11-24 13:28:28','\0','add column cw_user.update_counter','','2024-11-24 13:28:29','2024-11-24 13:28:29','','alter table cw_user add update_counter INTEGER NULL DEFAULT(0)','alter table cw_user add column update_counter INTEGER NOT NULL DEFAULT 0',0,'condition is false','',''),
(1279,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_user\', \'update_counter\')','',1252,'2024-11-24 13:28:28','\0','init column cw_user.update_counter','','2024-11-24 13:28:29','2024-11-24 13:28:29','','update cw_user set update_counter = 0 where update_counter is null','update cw_user set update_counter = 0 where update_counter is null',0,'condition is false','',''),
(1280,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_time_time_model\', \'start_time\')','',1253,'2024-11-24 13:28:28','\0','add column cw_person_2_time_time_model.start_time','','2024-11-24 13:28:29','2024-11-24 13:28:29','','alter table cw_person_2_time_time_model add start_time INTEGER','alter table cw_person_2_time_time_model add column start_time INTEGER',0,'condition is false','',''),
(1281,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_time_time_model\', \'start_time\')','',1254,'2024-11-24 13:28:28','\0','init cw_person_2_time_time_model.start_time = 0','','2024-11-24 13:28:29','2024-11-24 13:28:29','','update cw_person_2_time_time_model set start_time = 0 where start_time is null','update cw_person_2_time_time_model set start_time = 0 where start_time is null',0,'OK','',''),
(1282,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_time_time_model\', \'end_time\')','',1255,'2024-11-24 13:28:28','\0','add column cw_person_2_time_time_model.end_time','','2024-11-24 13:28:29','2024-11-24 13:28:29','','alter table cw_person_2_time_time_model add end_time INTEGER','alter table cw_person_2_time_time_model add column end_time INTEGER',0,'condition is false','',''),
(1283,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_time_time_model\', \'end_time\')','',1256,'2024-11-24 13:28:28','\0','init cw_person_2_time_time_model.end_time = 0','','2024-11-24 13:28:29','2024-11-24 13:28:29','','update cw_person_2_time_time_model set end_time = 0 where end_time is null','update cw_person_2_time_time_model set end_time = 0 where end_time is null',0,'OK','',''),
(1284,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_gantner_person_day_access_schedule_2_detail\', \'identification_enum\')','',1257,'2024-11-24 13:28:28','\0','add column cw_gantner_person_day_access_schedule_2_detail.identification_enum','','2024-11-24 13:28:29','2024-11-24 13:28:29','','alter table cw_gantner_person_day_access_schedule_2_detail add identification_enum varchar(255) NULL','alter table cw_gantner_person_day_access_schedule_2_detail add column identification_enum  varchar(255)',0,'condition is false','',''),
(1285,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_gantner_person_day_access_schedule_2_detail\', \'identification_enum\')','',1258,'2024-11-24 13:28:28','\0','init cw_gantner_person_day_access_schedule_2_detail.identification_enum','','2024-11-24 13:28:29','2024-11-24 13:28:29','','update cw_gantner_person_day_access_schedule_2_detail set identification_enum = \'NO\' where identification_enum is null or identification_enum = \'\'','update cw_gantner_person_day_access_schedule_2_detail set identification_enum = \'NO\' where identification_enum is null or identification_enum = \'\'',0,'OK','',''),
(1286,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_gantner_person_day_access_schedule_2_detail\', \'verification_enum\')','',1259,'2024-11-24 13:28:28','\0','add column cw_gantner_person_day_access_schedule_2_detail.verification_enum','','2024-11-24 13:28:30','2024-11-24 13:28:30','','alter table cw_gantner_person_day_access_schedule_2_detail add verification_enum varchar(255) NULL','alter table cw_gantner_person_day_access_schedule_2_detail add column verification_enum  varchar(255)',0,'condition is false','',''),
(1287,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_gantner_person_day_access_schedule_2_detail\', \'verification_enum\')','',1260,'2024-11-24 13:28:28','\0','init cw_gantner_person_day_access_schedule_2_detail.verification_enum','','2024-11-24 13:28:30','2024-11-24 13:28:30','','update cw_gantner_person_day_access_schedule_2_detail set verification_enum = \'NO\' where verification_enum is null or verification_enum = \'\'','update cw_gantner_person_day_access_schedule_2_detail set verification_enum = \'NO\' where verification_enum is null or verification_enum = \'\'',0,'OK','',''),
(1288,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_gantner_person_day_access_schedule_2_detail\', \'relay_plan_enum\')','',1261,'2024-11-24 13:28:28','\0','add column cw_gantner_person_day_access_schedule_2_detail.relay_plan_enum','','2024-11-24 13:28:30','2024-11-24 13:28:30','','alter table cw_gantner_person_day_access_schedule_2_detail add relay_plan_enum varchar(255) NULL','alter table cw_gantner_person_day_access_schedule_2_detail add column relay_plan_enum  varchar(255)',0,'condition is false','',''),
(1289,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_gantner_person_day_access_schedule_2_detail\', \'relay_plan_enum\')','',1262,'2024-11-24 13:28:28','\0','init cw_gantner_person_day_access_schedule_2_detail.relay_plan_enum','','2024-11-24 13:28:30','2024-11-24 13:28:30','','update cw_gantner_person_day_access_schedule_2_detail set relay_plan_enum = \'NORMAL_RELAY_PLAN\' where relay_plan_enum is null or relay_plan_enum = \'\'','update cw_gantner_person_day_access_schedule_2_detail set relay_plan_enum = \'NORMAL_RELAY_PLAN\' where relay_plan_enum is null or relay_plan_enum = \'\'',0,'OK','',''),
(1290,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_gantner_door_day_access_schedule_2_detail\', \'relay_plan_enum\')','',1263,'2024-11-24 13:28:28','\0','add column cw_gantner_door_day_access_schedule_2_detail.relay_plan_enum','','2024-11-24 13:28:30','2024-11-24 13:28:30','','alter table cw_gantner_door_day_access_schedule_2_detail add relay_plan_enum varchar(255) NULL','alter table cw_gantner_door_day_access_schedule_2_detail add column relay_plan_enum  varchar(255)',0,'condition is false','',''),
(1291,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_gantner_door_day_access_schedule_2_detail\', \'relay_plan_enum\')','',1264,'2024-11-24 13:28:28','\0','init cw_gantner_door_day_access_schedule_2_detail.relay_plan_enum','','2024-11-24 13:28:30','2024-11-24 13:28:30','','update cw_gantner_door_day_access_schedule_2_detail set relay_plan_enum = \'NORMAL_RELAY_PLAN\' where relay_plan_enum is null or relay_plan_enum = \'\'','update cw_gantner_door_day_access_schedule_2_detail set relay_plan_enum = \'NORMAL_RELAY_PLAN\' where relay_plan_enum is null or relay_plan_enum = \'\'',0,'OK','',''),
(1292,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_gantner_door_day_access_schedule_2_detail\', \'general_open_mode_enum\')','',1265,'2024-11-24 13:28:28','\0','add column cw_gantner_door_day_access_schedule_2_detail.general_open_mode_enum','','2024-11-24 13:28:30','2024-11-24 13:28:30','','alter table cw_gantner_door_day_access_schedule_2_detail add general_open_mode_enum varchar(255) NULL','alter table cw_gantner_door_day_access_schedule_2_detail add column general_open_mode_enum  varchar(255)',0,'condition is false','',''),
(1293,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_gantner_door_day_access_schedule_2_detail\', \'general_open_mode_enum\')','',1266,'2024-11-24 13:28:28','\0','init cw_gantner_door_day_access_schedule_2_detail.general_open_mode_enum','','2024-11-24 13:28:30','2024-11-24 13:28:30','','update cw_gantner_door_day_access_schedule_2_detail set general_open_mode_enum = \'NO\' where general_open_mode_enum is null or general_open_mode_enum = \'\'','update cw_gantner_door_day_access_schedule_2_detail set general_open_mode_enum = \'NO\' where general_open_mode_enum is null or general_open_mode_enum = \'\'',0,'OK','',''),
(1294,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_gantner_door_day_access_schedule_2_detail\', \'suppress_alarm_mode_enum\')','',1267,'2024-11-24 13:28:28','\0','add column cw_gantner_door_day_access_schedule_2_detail.suppress_alarm_mode_enum','','2024-11-24 13:28:30','2024-11-24 13:28:30','','alter table cw_gantner_door_day_access_schedule_2_detail add suppress_alarm_mode_enum varchar(255) NULL','alter table cw_gantner_door_day_access_schedule_2_detail add column suppress_alarm_mode_enum  varchar(255)',0,'condition is false','',''),
(1295,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_gantner_door_day_access_schedule_2_detail\', \'suppress_alarm_mode_enum\')','',1268,'2024-11-24 13:28:28','\0','init cw_gantner_door_day_access_schedule_2_detail.suppress_alarm_mode_enum','','2024-11-24 13:28:31','2024-11-24 13:28:31','','update cw_gantner_door_day_access_schedule_2_detail set suppress_alarm_mode_enum = \'NO\' where suppress_alarm_mode_enum is null or suppress_alarm_mode_enum = \'\'','update cw_gantner_door_day_access_schedule_2_detail set suppress_alarm_mode_enum = \'NO\' where suppress_alarm_mode_enum is null or suppress_alarm_mode_enum = \'\'',0,'OK','',''),
(1296,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_user\', \'update_counter\')','',1269,'2024-11-24 13:28:28','\0','init column cw_user.update_counter','','2024-11-24 13:28:31','2024-11-24 13:28:31','','update cw_user set update_counter = 0 where update_counter is null','update cw_user set update_counter = 0 where update_counter is null',0,'OK','',''),
(1297,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'absence_value_like_enum\') &&\n			at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'value_like_pause\')','',5001,'2024-11-24 13:28:28','\0','init absenceValueLikeEnum','','2024-11-24 13:28:31','2024-11-24 13:28:31','','','',0,'OK','','import at.clockwork.transfer.gwtTransfer.client.enumeration.AbsenceValueLikeEnum\nimport at.clockwork.time.domain.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def absenceWriteService = Holders.grailsApplication.mainContext.getBean \'absenceWriteService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        Absence.findAll().each { absence ->\n\n            if (absence.absenceValueLikeEnum == null) {\n\n                if (absence.valueLikePause == true)\n                    absence.absenceValueLikeEnum = AbsenceValueLikeEnum.PAUSE\n                else\n                    absence.absenceValueLikeEnum = AbsenceValueLikeEnum.PRESENCE\n\n                absenceWriteService.save(absence)\n\n    		}\n\n        }\n\n		true\n	}\n}'),
(1298,1,'','',5002,'2024-11-24 13:28:28','\0','init enums of gantnerPersonDayAccessSchedule2Detail','','2024-11-24 13:28:32','2024-11-24 13:28:32','','','',0,'OK','','import at.clockwork.access.gantner.domain.*\nimport at.clockwork.transfer.gwtTransfer.client.enumeration.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def gantnerPersonDayAccessSchedule2DetailWriteService = Holders.grailsApplication.mainContext.getBean \'gantnerPersonDayAccessSchedule2DetailWriteService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        GantnerPersonDayAccessSchedule2Detail.findAll().each { gantnerPersonDayAccessSchedule2Detail ->\n\n            gantnerPersonDayAccessSchedule2Detail.identificationEnum = GantnerTimeSpanIdentificationEnum.CARD\n\n            if (gantnerPersonDayAccessSchedule2Detail.usePinCode)\n                gantnerPersonDayAccessSchedule2Detail.verificationEnum = GantnerTimeSpanVerificationEnum.PIN_CODE\n            else\n                gantnerPersonDayAccessSchedule2Detail.verificationEnum = GantnerTimeSpanVerificationEnum.NO\n\n            if (gantnerPersonDayAccessSchedule2Detail.specialRelayPlan)\n                gantnerPersonDayAccessSchedule2Detail.relayPlanEnum = GantnerTimeSpanRelayPlanEnum.SPECIAL_RELAY_PLAN\n            else\n                gantnerPersonDayAccessSchedule2Detail.relayPlanEnum = GantnerTimeSpanRelayPlanEnum.NORMAL_RELAY_PLAN\n\n            gantnerPersonDayAccessSchedule2DetailWriteService.save(gantnerPersonDayAccessSchedule2Detail)\n\n        }\n\n		true\n	}\n}'),
(1299,1,'','',5003,'2024-11-24 13:28:28','\0','init enums of gantnerDoorDayAccessSchedule2Detail','','2024-11-24 13:28:32','2024-11-24 13:28:32','','','',0,'OK','','import at.clockwork.access.gantner.domain.*\nimport at.clockwork.transfer.gwtTransfer.client.enumeration.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def gantnerDoorDayAccessSchedule2DetailWriteService = Holders.grailsApplication.mainContext.getBean \'gantnerDoorDayAccessSchedule2DetailWriteService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        GantnerDoorDayAccessSchedule2Detail.findAll().each { gantnerDoorDayAccessSchedule2Detail ->\n\n            if (gantnerDoorDayAccessSchedule2Detail.checkOnlyCompanyIdentification)\n                gantnerDoorDayAccessSchedule2Detail.generalOpenModeEnum = GantnerTimeSpanGeneralOpenModeEnum.ACCESS_WITH_VALID_FID\n            else if (gantnerDoorDayAccessSchedule2Detail.activeFromFirstAccess)\n                gantnerDoorDayAccessSchedule2Detail.generalOpenModeEnum = GantnerTimeSpanGeneralOpenModeEnum.GENERAL_OPEN_AFTER_VALID_ACCESS\n            else if (gantnerDoorDayAccessSchedule2Detail.office)\n                gantnerDoorDayAccessSchedule2Detail.generalOpenModeEnum = GantnerTimeSpanGeneralOpenModeEnum.OFFICE_FUNCTION\n            else if (gantnerDoorDayAccessSchedule2Detail.unlock)\n                gantnerDoorDayAccessSchedule2Detail.generalOpenModeEnum = GantnerTimeSpanGeneralOpenModeEnum.GENERAL_OPEN\n            else\n                gantnerDoorDayAccessSchedule2Detail.generalOpenModeEnum = GantnerTimeSpanGeneralOpenModeEnum.NO\n\n            if (gantnerDoorDayAccessSchedule2Detail.specialRelayPlan)\n                gantnerDoorDayAccessSchedule2Detail.relayPlanEnum = GantnerTimeSpanRelayPlanEnum.SPECIAL_RELAY_PLAN\n            else\n                gantnerDoorDayAccessSchedule2Detail.relayPlanEnum = GantnerTimeSpanRelayPlanEnum.NORMAL_RELAY_PLAN\n\n            if (gantnerDoorDayAccessSchedule2Detail.suppressTooLongOpenAlarm)\n                gantnerDoorDayAccessSchedule2Detail.suppressAlarmModeEnum = GantnerTimeSpanSuppressAlarmModeEnum.BREAK_IN_ALARM\n            else if (gantnerDoorDayAccessSchedule2Detail.suppressTooLongOpenAlarm)\n                gantnerDoorDayAccessSchedule2Detail.suppressAlarmModeEnum = GantnerTimeSpanSuppressAlarmModeEnum.DOOR_TOO_LONG_OPEN\n            else\n                gantnerDoorDayAccessSchedule2Detail.suppressAlarmModeEnum = GantnerTimeSpanSuppressAlarmModeEnum.NO\n\n            gantnerDoorDayAccessSchedule2DetailWriteService.save(gantnerDoorDayAccessSchedule2Detail)\n\n        }\n\n		true\n	}\n}'),
(1300,1,'','',9003,'2024-12-07 20:47:15','\0','PersonTimeReport: showTitle = false, showColumnHeader = false, showSummary = false','','2024-12-07 20:47:15','2024-12-07 20:47:15','','','',0,'OK','','import at.clockwork.security.domain.*\n\nimport at.clockwork.singleton.SystemConfigurations\nimport at.clockwork.transfer.gwtTransfer.client.enumeration.*\nimport at.clockwork.generated.service.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def reportRoleWriteService = Holders.grailsApplication.mainContext.getBean \'reportRoleWriteService\'\n	def individualReportRoleWriteService = Holders.grailsApplication.mainContext.getBean \'individualReportRoleWriteService\'\n\n    SystemConfigurations systemConfigurations = SystemConfigurations.getInstance()\n\n	def run(def connection, def dataSourceFields) {\n\n        List reportList = [\n            ReportRole.PersonTime001,\n            ReportRole.PersonTime001Landscape,\n            ReportRole.PersonTime002,\n            ReportRole.PersonTime002Landscape,\n            ReportRole.PersonTime003,\n            ReportRole.PersonTime003Landscape,\n            ReportRole.PersonTime004Landscape,\n            ReportRole.PersonTime005Landscape,\n            ReportRole.PersonTime006,\n            ReportRole.PersonTime007,\n            ReportRole.PersonTime011,\n            ReportRole.PersonTime011Landscape,\n            ReportRole.PersonTime012,\n            ReportRole.PersonTime012Landscape\n        ]\n\n        ReportRole.findAll().each { ReportRole itReportRole ->\n\n            if ( reportList.any{ it == itReportRole.cwID } ) {\n\n                itReportRole.showTitle = false\n                itReportRole.showColumnHeader = false\n                itReportRole.showSummary = false\n\n                reportRoleWriteService.save( itReportRole )\n\n            }\n\n        }\n\n        IndividualReportRole.findAll().each { IndividualReportRole itIndividualReportRole ->\n\n            if ( reportList.any{ it == itIndividualReportRole.cwID } ) {\n\n                itIndividualReportRole.showTitle = false\n                itIndividualReportRole.showColumnHeader = false\n                itIndividualReportRole.showSummary = false\n\n                individualReportRoleWriteService.save( itIndividualReportRole )\n\n            }\n\n        }\n\n		true\n\n	}\n\n}'),
(1301,1,'','',9004,'2024-12-07 20:47:15','\0','EventReport: showDetail = true','','2024-12-07 20:47:15','2024-12-07 20:47:15','','','',0,'OK','','import at.clockwork.security.domain.*\n\nimport at.clockwork.singleton.SystemConfigurations\nimport at.clockwork.transfer.gwtTransfer.client.enumeration.*\nimport at.clockwork.generated.service.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def reportRoleWriteService = Holders.grailsApplication.mainContext.getBean \'reportRoleWriteService\'\n	def individualReportRoleWriteService = Holders.grailsApplication.mainContext.getBean \'individualReportRoleWriteService\'\n\n    SystemConfigurations systemConfigurations = SystemConfigurations.getInstance()\n\n	def run(def connection, def dataSourceFields) {\n\n        List reportList = [\n            ReportRole.Event001,\n            ReportRole.Event002\n        ]\n\n        ReportRole.findAll().each { ReportRole itReportRole ->\n\n            if ( reportList.any{ it == itReportRole.cwID } ) {\n\n                itReportRole.showDetail = true\n\n                reportRoleWriteService.save( itReportRole )\n\n            }\n\n        }\n\n        IndividualReportRole.findAll().each { IndividualReportRole itIndividualReportRole ->\n\n            if ( reportList.any{ it == itIndividualReportRole.cwID } ) {\n\n                itIndividualReportRole.showDetail = true\n\n                individualReportRoleWriteService.save( itIndividualReportRole )\n\n            }\n\n        }\n\n		true\n\n	}\n\n}'),
(1302,2,'','',9005,'2024-12-07 20:47:15','\0','OccurringTimeTimeTypesReport: showing of day, period, startTotal and endTotal','','2024-12-07 20:47:15','2025-03-19 11:55:31','','','',0,'OK','','import at.clockwork.security.domain.*\n\nimport at.clockwork.singleton.SystemConfigurations\nimport at.clockwork.transfer.gwtTransfer.client.enumeration.*\nimport at.clockwork.generated.service.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def reportRoleWriteService = Holders.grailsApplication.mainContext.getBean \'reportRoleWriteService\'\n	def individualReportRoleWriteService = Holders.grailsApplication.mainContext.getBean \'individualReportRoleWriteService\'\n\n    SystemConfigurations systemConfigurations = SystemConfigurations.getInstance()\n\n	def run(def connection, def dataSourceFields) {\n\n        List occuringTimeTimeTypes001List = [\n            ReportRole.SumOfTimeTimeTypeData001,\n            ReportRole.SumNotZeroOfTimeTimeTypeData001,\n            ReportRole.SumAndTotalOfTimeTimeTypeData001,\n            ReportRole.TotalAndSumAndTotalOfTimeTimeTypeData001,\n            ReportRole.SumOfTimeTimeTypeData101,\n            ReportRole.SumNotZeroOfTimeTimeTypeData101,\n            ReportRole.SumAndTotalOfTimeTimeTypeData101,\n            ReportRole.TotalAndSumAndTotalOfTimeTimeTypeData101,\n            ReportRole.SumOfTimeTimeTypeData201,\n        ]\n\n        List occuringTimeTimeTypes002List = [\n            ReportRole.TimeTimeTypeOccurrence001,\n            ReportRole.DataOfTimeTimeTypeData001,\n            ReportRole.DataNotZeroOfTimeTimeTypeData001,\n            ReportRole.TimeTimeTypeOccurrence101,\n            ReportRole.DataOfTimeTimeTypeData101,\n            ReportRole.DataNotZeroOfTimeTimeTypeData101,\n        ]\n\n        List  occuringTimeTimeTypes001LandscapeList = [\n            ReportRole.SumOfTimeTimeTypeData001Landscape,\n            ReportRole.SumNotZeroOfTimeTimeTypeData001Landscape,\n            ReportRole.SumAndTotalOfTimeTimeTypeData001Landscape,\n            ReportRole.TotalAndSumAndTotalOfTimeTimeTypeData001Landscape,\n            ReportRole.SumOfTimeTimeTypeData101Landscape,\n            ReportRole.SumNotZeroOfTimeTimeTypeData101Landscape,\n            ReportRole.SumAndTotalOfTimeTimeTypeData101Landscape,\n            ReportRole.TotalAndSumAndTotalOfTimeTimeTypeData101Landscape,\n            ReportRole.SumOfTimeTimeTypeData201Landscape,\n        ]\n\n        List  occuringTimeTimeTypes002LandscapeList = [\n            ReportRole.TimeTimeTypeOccurrence001Landscape,\n            ReportRole.DataOfTimeTimeTypeData001Landscape,\n            ReportRole.DataNotZeroOfTimeTimeTypeData001Landscape,\n            ReportRole.TimeTimeTypeOccurrence101Landscape,\n            ReportRole.DataOfTimeTimeTypeData101Landscape,\n            ReportRole.DataNotZeroOfTimeTimeTypeData101Landscape,\n        ]\n\n        ReportRole.findAll().each { ReportRole itReportRole ->\n\n            if ( occuringTimeTimeTypes001List.any{ it == itReportRole.cwID } ) {\n\n                itReportRole.filename = \"timeTimeTypeOccurrence001\"\n                reportRoleWriteService.save( itReportRole )\n\n            } else if ( occuringTimeTimeTypes001LandscapeList.any{ it == itReportRole.cwID } ) {\n\n                itReportRole.filename = \"timeTimeTypeOccurrence001Landscape\"\n                reportRoleWriteService.save( itReportRole )\n\n            } else if ( occuringTimeTimeTypes002List.any{ it == itReportRole.cwID } ) {\n\n                itReportRole.filename = \"timeTimeTypeOccurrence002\"\n                reportRoleWriteService.save( itReportRole )\n\n            } else if ( occuringTimeTimeTypes002LandscapeList.any{ it == itReportRole.cwID } ) {\n\n                itReportRole.filename = \"timeTimeTypeOccurrence002Landscape\"\n                reportRoleWriteService.save( itReportRole )\n\n            }\n\n        }\n\n		true\n\n	}\n\n}'),
(1303,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_index\', \'drop_value\')','',1270,'2025-03-19 11:55:31','\0','add column cw_index.drop','','2025-03-19 11:55:31','2025-03-19 11:55:31','','alter table cw_index add drop_value BIT','alter table cw_index add column drop_value BIT',0,'condition is false','',''),
(1304,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_index\', \'drop_value\')','',1271,'2025-03-19 11:55:31','\0','init cw_index.drop_value = 0','','2025-03-19 11:55:32','2025-03-19 11:55:32','','update cw_index set drop_value = 0 where drop_value is null','update cw_index set drop_value = 0 where drop_value is null',0,'OK','',''),
(1305,1,'','',1272,'2025-03-19 11:55:31','\0','clean systemConfiguration','','2025-03-19 11:55:32','2025-03-19 11:55:32','','','',0,'OK','','import at.clockwork.system.service.SystemConfigurationService\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n	def systemConfigurationService = Holders.grailsApplication.mainContext.getBean \'systemConfigurationService\'\n\n	def run(def connection, def dataSourceFields) {\n\n		systemConfigurationService.deleteByCwID(161)\n		systemConfigurationService.deleteByCwID(162)\n		systemConfigurationService.deleteByCwID(163)\n		systemConfigurationService.deleteByCwID(164)\n\n		true\n	}\n}'),
(1306,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'coming_after_going_within_permitted_going_time\')','',1273,'2025-03-19 11:55:31','\0','add column cw_absence.coming_after_going_within_permitted_going_time','','2025-03-19 11:55:32','2025-03-19 11:55:32','','alter table cw_absence add coming_after_going_within_permitted_going_time BIT','alter table cw_absence add column coming_after_going_within_permitted_going_time BIT',0,'condition is false','',''),
(1307,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_absence\', \'coming_after_going_within_permitted_going_time\')','',1274,'2025-03-19 11:55:31','\0','init cw_absence.coming_after_going_within_permitted_going_time = 0','','2025-03-19 11:55:32','2025-03-19 11:55:32','','update cw_absence set coming_after_going_within_permitted_going_time = 0 where coming_after_going_within_permitted_going_time is null','update cw_absence set coming_after_going_within_permitted_going_time = 0 where coming_after_going_within_permitted_going_time is null',0,'OK','',''),
(1308,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_model\', \'use_automatic_going_booking\')','',1275,'2025-03-19 11:55:31','\0','add column cw_time_time_model.use_automatic_going_booking','','2025-03-19 11:55:32','2025-03-19 11:55:32','','alter table cw_time_time_model add use_automatic_going_booking BIT','alter table cw_time_time_model add column use_automatic_going_booking BIT',0,'condition is false','',''),
(1309,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_time_time_model\', \'use_automatic_going_booking\')','',1276,'2025-03-19 11:55:31','\0','init cw_time_time_model.use_automatic_going_booking = 0','','2025-03-19 11:55:32','2025-03-19 11:55:32','','update cw_time_time_model set use_automatic_going_booking = 0 where use_automatic_going_booking is null','update cw_time_time_model set use_automatic_going_booking = 0 where use_automatic_going_booking is null',0,'OK','',''),
(1310,1,'','',1277,'2025-03-19 11:55:31','\0','update systemConfiguration.cwID 4402','','2025-03-19 11:55:32','2025-03-19 11:55:32','','','',0,'OK','','import grails.util.Holders\n\nclass UpdateScriptService {\n\n	def systemConfigurationService = Holders.grailsApplication.mainContext.getBean \'systemConfigurationService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        systemConfigurationService.updateByCwID((int) 4402, (String) \"12em\")\n\n		true\n	}\n}'),
(1311,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_day_setting\', \'deactivate_all_roundings\')','',1278,'2025-03-19 11:55:31','\0','add column cw_person_2_day_setting.deactivate_all_roundings','','2025-03-19 11:55:32','2025-03-19 11:55:32','','alter table cw_person_2_day_setting add deactivate_all_roundings BIT','alter table cw_person_2_day_setting add column deactivate_all_roundings BIT',0,'condition is false','',''),
(1312,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_day_setting\', \'deactivate_all_roundings\')','',1279,'2025-03-19 11:55:31','\0','init cw_person_2_day_setting.deactivate_all_roundings = 0','','2025-03-19 11:55:32','2025-03-19 11:55:32','','update cw_person_2_day_setting set deactivate_all_roundings = 0 where deactivate_all_roundings is null','update cw_person_2_day_setting set deactivate_all_roundings = 0 where deactivate_all_roundings is null',0,'OK','',''),
(1313,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_day_setting\', \'deactivate_all_too_soons\')','',1280,'2025-03-19 11:55:31','\0','add column cw_person_2_day_setting.deactivate_all_too_soons','','2025-03-19 11:55:32','2025-03-19 11:55:32','','alter table cw_person_2_day_setting add deactivate_all_too_soons BIT','alter table cw_person_2_day_setting add column deactivate_all_too_soons BIT',0,'condition is false','',''),
(1314,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_day_setting\', \'deactivate_all_too_soons\')','',1281,'2025-03-19 11:55:31','\0','init cw_person_2_day_setting.deactivate_all_too_soons = 0','','2025-03-19 11:55:32','2025-03-19 11:55:32','','update cw_person_2_day_setting set deactivate_all_too_soons = 0 where deactivate_all_too_soons is null','update cw_person_2_day_setting set deactivate_all_too_soons = 0 where deactivate_all_too_soons is null',0,'OK','',''),
(1315,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_day_setting\', \'deactivate_all_too_lates\')','',1282,'2025-03-19 11:55:31','\0','add column cw_person_2_day_setting.deactivate_all_too_lates','','2025-03-19 11:55:32','2025-03-19 11:55:32','','alter table cw_person_2_day_setting add deactivate_all_too_lates BIT','alter table cw_person_2_day_setting add column deactivate_all_too_lates BIT',0,'condition is false','',''),
(1316,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_day_setting\', \'deactivate_all_too_lates\')','',1283,'2025-03-19 11:55:31','\0','init cw_person_2_day_setting.deactivate_all_too_lates = 0','','2025-03-19 11:55:32','2025-03-19 11:55:32','','update cw_person_2_day_setting set deactivate_all_too_lates = 0 where deactivate_all_too_lates is null','update cw_person_2_day_setting set deactivate_all_too_lates = 0 where deactivate_all_too_lates is null',0,'OK','',''),
(1317,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_day_setting\', \'deactivate_all_pauses\')','',1284,'2025-03-19 11:55:31','\0','add column cw_person_2_day_setting.deactivate_all_pauses','','2025-03-19 11:55:32','2025-03-19 11:55:32','','alter table cw_person_2_day_setting add deactivate_all_pauses BIT','alter table cw_person_2_day_setting add column deactivate_all_pauses BIT',0,'condition is false','',''),
(1318,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person_2_day_setting\', \'deactivate_all_pauses\')','',1285,'2025-03-19 11:55:31','\0','init cw_person_2_day_setting.deactivate_all_pauses = 0','','2025-03-19 11:55:32','2025-03-19 11:55:32','','update cw_person_2_day_setting set deactivate_all_pauses = 0 where deactivate_all_pauses is null','update cw_person_2_day_setting set deactivate_all_pauses = 0 where deactivate_all_pauses is null',0,'OK','',''),
(1319,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_gantner\', \'command2\')','',1286,'2025-03-19 11:55:31','\0','set cw_terminal_gantner.command2 nullable','','2025-03-19 11:55:32','2025-03-19 11:55:32','','alter table cw_terminal_gantner alter column command2 varchar(255) null','alter table cw_terminal_gantner modify command2 varchar(255) null',0,'OK','',''),
(1320,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_gantner\', \'command6\')','',1287,'2025-03-19 11:55:31','\0','set cw_terminal_gantner.command6 nullable','','2025-03-19 11:55:32','2025-03-19 11:55:32','','alter table cw_terminal_gantner alter column command6 varchar(255) null','alter table cw_terminal_gantner modify command6 varchar(255) null',0,'OK','',''),
(1321,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_gantner\', \'command7\')','',1288,'2025-03-19 11:55:31','\0','set cw_terminal_gantner.command7 nullable','','2025-03-19 11:55:32','2025-03-19 11:55:32','','alter table cw_terminal_gantner alter column command7 varchar(255) null','alter table cw_terminal_gantner modify command7 varchar(255) null',0,'OK','',''),
(1322,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_terminal_gantner\', \'command85\')','',1289,'2025-03-19 11:55:31','\0','set cw_terminal_gantner.command85 nullable','','2025-03-19 11:55:32','2025-03-19 11:55:32','','alter table cw_terminal_gantner alter column command85 varchar(255) null','alter table cw_terminal_gantner modify command85 varchar(255) null',0,'OK','',''),
(1323,1,'','',9006,'2025-03-19 11:55:31','\0','search hasMany-definitions in Scriptcode','','2025-03-19 11:55:35','2025-03-19 11:55:35','','','',0,'OK','','import grails.util.Holders\n\nclass UpdateScriptService {\n\n    /*\n        z.B. Domainklasse AbsencePlanning wurde geaendert\n        -------------------------------------------------\n        folgendes Statement wurde aus der Domainklasse Absenceplanning geloescht\n            static hasMany = [absencePlanningDetails: AbsencePlanningDetail]\n        somit ist folgender Code nicht mehr gueltig: absencePlanning.absencePlanningDetails\n\n        1) absencePlanning.absencePlanningDetails aendern auf\n           absencePlanning.absencePlanningDetails -> AbsencePlanningDetail.findAllWhere( absencePlanning: absencePlanning, deleted: false )\n        2) import at.clockwork.time.domain.AbsencePlanning\n           import at.clockwork.time.domain.AbsencePlanningDetail\n\n    */\n\n	def scriptNotTransactionalService = Holders.grailsApplication.mainContext.getBean \'scriptNotTransactionalService\'\n	def informationTransactionalService = Holders.grailsApplication.mainContext.getBean \'informationTransactionalService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        [\n            \"absencePlanningDetails\",\n            \"timeSpecificationDetails\",\n            \"areas\",\n            \"favorites\",\n            \"doorStateDefinitionDetails\",\n            \"doorStateVisualisationDetails\",\n            \"doorStates\",\n            \"negatedDoorStates\",\n            \"additionalInfos\",\n            \"negatedAdditionalInfos\",\n            \"blacklistAreaCategories\",\n            \"whitelistAreaCategories\",\n            \"whitelistAreas\",\n            \"groupDefinitionDetails\",\n            \"sortDefinitionDetails\"\n//            \"timeTimeTypeDefinitionDetails\"\n        ].each { String itSearchedText ->\n\n            scriptNotTransactionalService.searchTextWithinScriptCode(itSearchedText).each { Map map ->\n\n                informationTransactionalService.add( map.text ?: \"text\", map.date ?: (new Date()), \"hasMany: \" + (map.comment ?: \"\") )\n\n            }\n\n		}\n\n		true\n\n	}\n\n}'),
(1324,1,'','',9007,'2025-03-19 11:55:31','\0','search VALIDATE_TIME_ATTENDANCE in HookScripts','','2025-03-19 11:55:35','2025-03-19 11:55:35','','','',0,'OK','','import at.clockwork.system.domain.*\nimport at.clockwork.transfer.gwtTransfer.client.enumeration.*\n\nimport grails.util.Holders\n\nclass UpdateScriptService {\n\n    /*\n        HookScript VALIDATE_TIME_ATTENDANCE_* wurde geaendert\n        -----------------------------------------------------\n\n        VALIDATE_TIME_ATTENDANCE_1\n        Aufruf vom HookScript:\n        persons = scriptService.executeScript( hookScript, persons, startDate, endDate )\n\n        VALIDATE_TIME_ATTENDANCE_99\n        Aufruf vom HookScript:\n        errors = scriptService.executeScript( hookScript, errors, persons, startDate, endDate )\n\n    */\n\n	def scriptNotTransactionalService = Holders.grailsApplication.mainContext.getBean \'scriptNotTransactionalService\'\n	def informationTransactionalService = Holders.grailsApplication.mainContext.getBean \'informationTransactionalService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        List hookTypeEnums = [\n            HookTypeEnum.VALIDATE_TIME_ATTENDANCE_1,\n            HookTypeEnum.VALIDATE_TIME_ATTENDANCE_99\n        ]\n\n        HookScript.findAllWhere(deleted:false).each { HookScript itHookScript ->\n\n            if ( hookTypeEnums.any{ it == itHookScript.hookTypeEnum } ) {\n                informationTransactionalService.add( \"name=${itHookScript.name}, desc=${itHookScript.description}, enum=${itHookScript.hookTypeEnum}\", new Date(), \"VALIDATE_TIME_ATTENDANCE: startTimeStamp / endTimeStamp\" )\n            }\n\n		}\n\n		true\n\n	}\n\n}'),
(1325,1,'','',9008,'2025-03-19 11:55:31','\0','kundenspezifische jrxml-Dateien updaten','','2025-03-19 11:55:35','2025-03-19 11:55:35','','','',0,'OK','','import at.clockwork.security.domain.*\nimport grails.util.Holders\n\nclass Update9008Service {\n\n	def reportService = Holders.grailsApplication.mainContext.getBean \'reportService\'\n	def informationTransactionalService = Holders.grailsApplication.mainContext.getBean \'informationTransactionalService\'\n\n	def run(def connection, def dataSourceFields) {\n\n        ReportRole.findAllWhere( deleted : false ).each { ReportRole itReportRole ->\n\n            if (itReportRole.filename) {\n                if (itReportRole.filename.indexOf(\"/\") >= 0 || itReportRole.filename.indexOf(\"\\\\\") >= 0) {\n\n                    if (new File(itReportRole.filename).exists()) {\n\n                        if (!reportService.updateJrxml(itReportRole.filename, true))\n                            informationTransactionalService.add( \"name=${itReportRole.filename}\", new Date(), \"reportService.updateJrxml()\" )\n\n                    } else if (new File(itReportRole.filename+\".jrxml\").exists()){\n\n                        if (!reportService.updateJrxml(itReportRole.filename+\".jrxml\", true))\n                            informationTransactionalService.add( \"name=${itReportRole.filename+\".jrxml\"}\", new Date(), \"reportService.updateJrxml()\" )\n\n                    } else {\n\n                        informationTransactionalService.add( \"name=${itReportRole.filename}\", new Date(), \"reportService.updateJrxml()\" )\n\n                    }\n\n                }\n            }\n\n            if (itReportRole.alternativeFilename) {\n                if (itReportRole.alternativeFilename.indexOf(\"/\") >= 0 || itReportRole.alternativeFilename.indexOf(\"\\\\\") >= 0) {\n\n                    if (new File(itReportRole.alternativeFilename).exists()) {\n\n                        if (!reportService.updateJrxml(itReportRole.alternativeFilename, true))\n                            informationTransactionalService.add( \"name=${itReportRole.alternativeFilename}\", new Date(), \"reportService.updateJrxml()\" )\n\n                    } else if (new File(itReportRole.alternativeFilename+\".jrxml\").exists()) {\n\n                        if (!reportService.updateJrxml(itReportRole.alternativeFilename+\".jrxml\", true))\n                            informationTransactionalService.add( \"name=${itReportRole.alternativeFilename+\".jrxml\"}\", new Date(), \"reportService.updateJrxml()\" )\n\n                    } else {\n\n                        informationTransactionalService.add( \"name=${itReportRole.alternativeFilename}\", new Date(), \"reportService.updateJrxml()\" )\n\n                    }\n\n                }\n            }\n\n		}\n\n		true\n\n	}\n\n}'),
(1326,1,'!at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person\', \'gat_master_authorisation\')','',1290,'2025-03-24 00:42:05','\0','add column cw_person.gat_master_authorisation','','2025-03-24 00:42:05','2025-03-24 00:42:05','','alter table cw_person add gat_master_authorisation BIT','alter table cw_person add column gat_master_authorisation BIT',0,'condition is false','',''),
(1327,1,'at.clockwork.system.service.DataSourceService.existsFieldInDatabaseTable(connection, \'cw_person\', \'gat_master_authorisation\')','',1291,'2025-03-24 00:42:05','\0','init cw_person.gat_master_authorisation = 0','','2025-03-24 00:42:05','2025-03-24 00:42:05','','update cw_person set gat_master_authorisation = 0 where gat_master_authorisation is null','update cw_person set gat_master_authorisation = 0 where gat_master_authorisation is null',0,'OK','','');

--
