diff -r ff583332703a -r 1d46277c610a debian/patches/db-update --- a/debian/patches/db-update Wed Sep 21 23:29:19 2011 +0200 +++ b/debian/patches/db-update Thu Sep 22 16:08:04 2011 +0200 @@ -35,3 +35,11295 @@ -$ZEND_PROJECT_PATH/zf.sh database update root L1ttleB1rd >&2 +$ZEND_PROJECT_PATH/zf.sh database update "${1-root}" "${2-L1ttleB1rd}" >&2 +--- a/Database/2011-06-30_1163.sql ++++ b/Database/2011-06-30_1163.sql +@@ -42,7 +42,7 @@ + + DELIMITER ;; + drop procedure if exists proc_delete_carrier;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_delete_carrier (IN carrierCryptIDValue VARCHAR(255)) ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_delete_carrier (IN carrierCryptIDValue VARCHAR(255)) + NOT DETERMINISTIC + CONTAINS SQL + SQL SECURITY DEFINER +@@ -198,7 +198,7 @@ + END delete_carrier;; + + drop procedure if exists proc_delete_institute;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_delete_institute (IN instituteIDValue TEXT) ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_delete_institute (IN instituteIDValue TEXT) + NOT DETERMINISTIC + CONTAINS SQL + SQL SECURITY DEFINER +@@ -483,7 +483,7 @@ + END delete_institute;; + + drop function if exists setBlobDatetimeValue;; +-CREATE DEFINER=`root`@`localhost` FUNCTION setBlobDatetimeValue (valueid BIGINT(20), ++CREATE DEFINER=CURRENT_USER FUNCTION setBlobDatetimeValue (valueid BIGINT(20), + setValue DATETIME, + validDate DATE, + createDatetime DATETIME) +@@ -533,7 +533,7 @@ + END blob_datetime;; + + drop function if exists setBlobDateValue;; +-CREATE DEFINER=`root`@`localhost` FUNCTION setBlobDateValue (valueid BIGINT(20), ++CREATE DEFINER=CURRENT_USER FUNCTION setBlobDateValue (valueid BIGINT(20), + setValue DATE, + validDate DATE, + createDatetime DATETIME) +@@ -582,7 +582,7 @@ + END blob_int;; + + drop function if exists setBlobIntValue;; +-CREATE DEFINER=`root`@`localhost` FUNCTION setBlobIntValue (valueid BIGINT(20), ++CREATE DEFINER=CURRENT_USER FUNCTION setBlobIntValue (valueid BIGINT(20), + setValue INTEGER(11), + validDate DATE, + createDatetime DATETIME) +@@ -632,7 +632,7 @@ + END blob_int;; + + drop function if exists setBlobStringValue;; +-CREATE DEFINER=`root`@`localhost` FUNCTION setBlobStringValue (valueid BIGINT(20), ++CREATE DEFINER=CURRENT_USER FUNCTION setBlobStringValue (valueid BIGINT(20), + setValue VARCHAR(255), + validDate DATE, + createDatetime DATETIME) +@@ -682,7 +682,7 @@ + END blob_string;; + + drop function if exists setBlobTextValue;; +-CREATE DEFINER=`root`@`localhost` FUNCTION setBlobTextValue (valueid BIGINT(20), ++CREATE DEFINER=CURRENT_USER FUNCTION setBlobTextValue (valueid BIGINT(20), + setValue TEXT, + validDate DATE, + createDatetime DATETIME) +@@ -732,7 +732,7 @@ + END blob_string;; + + drop function if exists setBooleanValue;; +-CREATE DEFINER=`root`@`localhost` FUNCTION setBooleanValue (valueid BIGINT(20), ++CREATE DEFINER=CURRENT_USER FUNCTION setBooleanValue (valueid BIGINT(20), + setValue TINYINT(1), + validDate DATE, + createDatetime DATETIME) +@@ -781,7 +781,7 @@ + END;; + + drop function if exists setDatetimeValue;; +-CREATE DEFINER=`root`@`localhost` FUNCTION setDatetimeValue (valueid BIGINT(20), ++CREATE DEFINER=CURRENT_USER FUNCTION setDatetimeValue (valueid BIGINT(20), + setValue DATETIME, + validDate DATE, + createDatetime DATETIME) +@@ -830,7 +830,7 @@ + END;; + + drop function if exists setDateValue;; +-CREATE DEFINER=`root`@`localhost` FUNCTION setDateValue (valueid BIGINT(20), ++CREATE DEFINER=CURRENT_USER FUNCTION setDateValue (valueid BIGINT(20), + setValue DATE, + validDate DATE, + createDatetime DATETIME) +@@ -880,7 +880,7 @@ + END;; + + drop function if exists setIntValue;; +-CREATE DEFINER=`root`@`localhost` FUNCTION setIntValue (valueid BIGINT(20), ++CREATE DEFINER=CURRENT_USER FUNCTION setIntValue (valueid BIGINT(20), + setValue INTEGER(11), + validDate DATE, + createDatetime DATETIME) +@@ -930,7 +930,7 @@ + END;; + + drop function if exists setStringValue;; +-CREATE DEFINER=`root`@`localhost` FUNCTION setStringValue (valueid BIGINT(20), ++CREATE DEFINER=CURRENT_USER FUNCTION setStringValue (valueid BIGINT(20), + setValue VARCHAR(255), + validDate DATE, + createDatetime DATETIME) +--- a/Database/2011-06-30_1168.sql ++++ b/Database/2011-06-30_1168.sql +@@ -3,7 +3,7 @@ + + DELIMITER ;; + drop procedure if exists proc_get_changes_info_to_contract_by_printedDatetime;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_get_changes_info_to_contract_by_printedDatetime (IN contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_get_changes_info_to_contract_by_printedDatetime (IN contractIDValue INTEGER(11), + IN printedDatetime DATETIME, + IN printedDatetimeLast DATETIME) + NOT DETERMINISTIC +@@ -4154,7 +4154,7 @@ + END;; + + drop function if exists func_get_changes_to_contract_by_overview;; +-CREATE DEFINER=`root`@`localhost` FUNCTION func_get_changes_to_contract_by_overview (contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER FUNCTION func_get_changes_to_contract_by_overview (contractIDValue INTEGER(11), + printedDatetimeValue DATETIME, + contractInCarrierIDValue INTEGER(11)) + RETURNS text CHARSET utf8 +--- a/Database/2011-06-30_1186.sql ++++ b/Database/2011-06-30_1186.sql +@@ -2,7 +2,7 @@ + set foreign_key_checks=0; + + drop view if exists view_personal_key_list; +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` VIEW view_personal_key_list ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER VIEW view_personal_key_list + AS + select `contract`.`contractID` AS `contract_contractID`,`child`.`childID` AS `child_childID`,`getBlobStringValue`(`person_data`.`lastName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_lastName`,`getBlobStringValue`(`person_data`.`firstName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_firstName`,`institute`.`instituteID` AS `institute_instituteID`,`institute_group`.`instituteTypeID` AS `contract_instituteTypeID`,`institute_type`.`orderPosition` AS `institute_type_orderPosition`,`institute_type`.`orderPosition2` AS `institute_type_orderPosition2`,`institute_group`.`groupName` AS `institute_group_groupName`,`institute`.`name` AS `institute_name`,`institute`.`instituteKind` AS `institute_instituteKind`,`carrier`.`name` AS `carrier_name`,`institute`.`carrierID` AS `institute_carrierID`,`care_time`.`description` AS `care_time_description`,`func_get_care_time_description_short`(`care_time`.`description`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1)) AS `care_time_descriptionShort`,`contract`.`status` AS `contract_status`,`contract_has_place`.`placeID` AS `contract_has_place_placeID`,`getContractStartDate`(`contract`.`contractID`,NULL) AS `contract_startDate`,`getContractEndDate`(`contract`.`contractID`,NULL) AS `contract_endDate`,`getBooleanValue`(`contract`.`isIntegrated`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_isIntegrated`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) AS `contract_additionalPaymentType`,`getOrderPositionToInstituteTypeID`(`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1)) AS `contract_additionalPaymentTypeOrderPosition`,`getDecValue`(`fev`.`basicValue`,NULL,NULL) AS `fevBasicValue`,`getDecValue`(`fev`.`overValue`,NULL,NULL) AS `fevOverValue`,`getDecValue`(`fev`.`integratedValue`,NULL,NULL) AS `fevIntegratedValue`,`getDecValue`(`fev`.`additionalValue`,NULL,NULL) AS `fevAdditionalValue`,`getFulltimeEquivalentValueSum`(1,`getBooleanValue`(`contract`.`isIntegrated`,`view_params`.`validFrom`,`view_params`.`lastPrinted`),`getDecValue`(`fev`.`basicValue`,NULL,NULL),`getDecValue`(`fev`.`overValue`,NULL,NULL),`getDecValue`(`fev`.`integratedValue`,NULL,NULL),`getDecValue`(`fev`.`additionalValue`,NULL,NULL),`care_time`.`hoursAfternoon`,`care_time`.`hoursDay`,`care_time`.`hoursMorning`) AS `fevSum`,`isOverCare`(`care_time`.`hoursAfternoon`,`care_time`.`hoursDay`,`care_time`.`hoursMorning`) AS `isOverCare` from (((((((((((`child` join `view_params`) join `person_data`) join `place`) join `care_time`) join `contract_has_place`) join `institute_group`) join `institute_type`) join `institute`) join `carrier`) join `contract`) left join `fulltime_equivalent_value` `fev` on((`fev`.`careTimeID` = `care_time`.`careTimeID`))) where ((`child`.`status` <> 'deleted') and (`contract`.`childID` = `child`.`childID`) and (`child`.`personDataID` = `person_data`.`personDataID`) and (`institute`.`carrierID` = `carrier`.`carrierID`) and (`institute`.`instituteID` = `institute_group`.`instituteID`) and (`institute_group`.`groupID` = `place`.`groupID`) and (`institute_group`.`instituteTypeID` = `institute_type`.`instituteTypeID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`contract_has_place`.`ID` = `func_get_actual_contract_has_place_ID`(`contract`.`contractID`,`view_params`.`validFrom`)) and (`contract`.`contractID` = `contract_has_place`.`contractID`) and (`view_params`.`con_ID` = `contract`.`contractID`) and (`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) = `care_time`.`careTimeID`)); + DELIMITER ;; +--- a/Database/2011-06-30_627.sql ++++ b/Database/2011-06-30_627.sql +@@ -30,7 +30,7 @@ + + DELIMITER ;; + drop procedure if exists proc_delete_contract;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_delete_contract (IN contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_delete_contract (IN contractIDValue INTEGER(11), + IN cryptContractIDValue VARCHAR(255)) + NOT DETERMINISTIC + CONTAINS SQL +@@ -144,7 +144,7 @@ + END delete_contract;; + + drop procedure if exists proc_get_history_entries_for_id;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_get_history_entries_for_id (IN cryptHistoryIDValue TEXT) ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_get_history_entries_for_id (IN cryptHistoryIDValue TEXT) + NOT DETERMINISTIC + CONTAINS SQL + SQL SECURITY DEFINER +@@ -386,7 +386,7 @@ + END get_history_entries_for_id;; + + Drop PROCEDURE IF EXISTS `proc_copy_to_new_contract_finance_data`;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_copy_to_new_contract_finance_data () ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_copy_to_new_contract_finance_data () + NOT DETERMINISTIC + CONTAINS SQL + SQL SECURITY DEFINER +--- a/Database/2011-06-30_910_909.sql ++++ b/Database/2011-06-30_910_909.sql +@@ -3,7 +3,7 @@ + + DELIMITER ;; + drop procedure if exists proc_print_new_ending_contracts;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_print_new_ending_contracts (IN monthStart DATE, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_print_new_ending_contracts (IN monthStart DATE, + IN monthEnd DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11)) +@@ -110,7 +110,7 @@ + END procNewEnd;; + + drop function if exists func_get_print_all_changes;; +-CREATE DEFINER=`root`@`localhost` FUNCTION func_get_print_all_changes (contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER FUNCTION func_get_print_all_changes (contractIDValue INTEGER(11), + childIDValue INTEGER(11), + custody1IDValue INTEGER(11), + validFromStartDateValue DATE, +--- a/Database/2011-06-30_allg_db_update.sql ++++ b/Database/2011-06-30_allg_db_update.sql +@@ -6,13 +6,13 @@ + alter table `child` add constraint `child_fk6` foreign key(`personDataID`) references `person_data`(`personDataID`); + drop view if exists view_personal_key_list; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` VIEW view_personal_key_list ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER VIEW view_personal_key_list + AS + select `contract`.`contractID` AS `contract_contractID`,`child`.`childID` AS `child_childID`,`getBlobStringValue`(`person_data`.`lastName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_lastName`,`getBlobStringValue`(`person_data`.`firstName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_firstName`,`institute`.`instituteID` AS `institute_instituteID`,`institute_group`.`instituteTypeID` AS `contract_instituteTypeID`,`institute_type`.`orderPosition` AS `institute_type_orderPosition`,`institute_type`.`orderPosition2` AS `institute_type_orderPosition2`,`institute_group`.`groupName` AS `institute_group_groupName`,`institute`.`name` AS `institute_name`,`institute`.`instituteKind` AS `institute_instituteKind`,`carrier`.`name` AS `carrier_name`,`institute`.`carrierID` AS `institute_carrierID`,`care_time`.`description` AS `care_time_description`,`func_get_care_time_description_short`(`care_time`.`description`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1)) AS `care_time_descriptionShort`,`contract`.`status` AS `contract_status`,`contract_has_place`.`placeID` AS `contract_has_place_placeID`,`getContractStartDate`(`contract`.`contractID`,NULL) AS `contract_startDate`,`getContractEndDate`(`contract`.`contractID`,NULL) AS `contract_endDate`,`getBooleanValue`(`contract`.`isIntegrated`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_isIntegrated`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) AS `contract_additionalPaymentType`,`getOrderPositionToInstituteTypeID`(`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1)) AS `contract_additionalPaymentTypeOrderPosition`,`getDecValue`(`fev`.`basicValue`,NULL,NULL) AS `fevBasicValue`,`getDecValue`(`fev`.`overValue`,NULL,NULL) AS `fevOverValue`,`getDecValue`(`fev`.`integratedValue`,NULL,NULL) AS `fevIntegratedValue`,`getDecValue`(`fev`.`additionalValue`,NULL,NULL) AS `fevAdditionalValue`,`getFulltimeEquivalentValueSum`(1,`getBooleanValue`(`contract`.`isIntegrated`,`view_params`.`validFrom`,`view_params`.`lastPrinted`),`getDecValue`(`fev`.`basicValue`,NULL,NULL),`getDecValue`(`fev`.`overValue`,NULL,NULL),`getDecValue`(`fev`.`integratedValue`,NULL,NULL),`getDecValue`(`fev`.`additionalValue`,NULL,NULL),`care_time`.`hoursAfternoon`,`care_time`.`hoursDay`,`care_time`.`hoursMorning`) AS `fevSum`,`isOverCare`(`care_time`.`hoursAfternoon`,`care_time`.`hoursDay`,`care_time`.`hoursMorning`) AS `isOverCare` from (((((((((((`child` join `view_params`) join `person_data`) join `place`) join `care_time`) join `contract_has_place`) join `institute_group`) join `institute_type`) join `institute`) join `carrier`) join `contract`) left join `fulltime_equivalent_value` `fev` on((`fev`.`careTimeID` = `care_time`.`careTimeID`))) where ((`child`.`status` <> 'deleted') and (`contract`.`childID` = `child`.`childID`) and (`child`.`personDataID` = `person_data`.`personDataID`) and (`institute`.`carrierID` = `carrier`.`carrierID`) and (`institute`.`instituteID` = `institute_group`.`instituteID`) and (`institute_group`.`groupID` = `place`.`groupID`) and (`institute_group`.`instituteTypeID` = `institute_type`.`instituteTypeID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`contract_has_place`.`ID` = `func_get_actual_contract_has_place_ID`(`contract`.`contractID`,`view_params`.`validFrom`)) and (`contract`.`contractID` = `contract_has_place`.`contractID`) and (`view_params`.`con_ID` = `contract`.`contractID`) and (`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) = `care_time`.`careTimeID`)); + DELIMITER ;; + + drop procedure if exists proc_statistic_institute_has_child_per_age_and_township;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_statistic_institute_has_child_per_age_and_township (IN dayValue DATE, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_statistic_institute_has_child_per_age_and_township (IN dayValue DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), + IN instituteTypeValue INTEGER(11)) +@@ -652,7 +652,7 @@ + + + drop function if exists func_get_print_all_changes;; +-CREATE DEFINER=`root`@`localhost` FUNCTION func_get_print_all_changes (contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER FUNCTION func_get_print_all_changes (contractIDValue INTEGER(11), + childIDValue INTEGER(11), + custody1IDValue INTEGER(11), + validFromStartDateValue DATE, +--- a/Database/2011-07-31_1235-2.sql ++++ b/Database/2011-07-31_1235-2.sql +@@ -4,7 +4,7 @@ + + DELIMITER ;; + drop function if exists func_get_print_all_changes;; +-CREATE DEFINER=`root`@`localhost` FUNCTION func_get_print_all_changes (contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER FUNCTION func_get_print_all_changes (contractIDValue INTEGER(11), + childIDValue INTEGER(11), + custody1IDValue INTEGER(11), + validFromStartDateValue DATE, +--- a/Database/2011-07-31_607.sql ++++ b/Database/2011-07-31_607.sql +@@ -6,7 +6,7 @@ + + DELIMITER ;; + drop procedure if exists proc_insert_emergency_person;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_insert_emergency_person (IN emergencyPersonIDValue TEXT, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_insert_emergency_person (IN emergencyPersonIDValue TEXT, + IN firstNameValue VARCHAR(255), + IN lastNameValue VARCHAR(255), + IN workNameValue TEXT, +--- a/Database/2011-07-31_951-2.sql ++++ b/Database/2011-07-31_951-2.sql +@@ -11,7 +11,7 @@ + + DELIMITER ;; + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `certificate_before_ins_tr_new` BEFORE INSERT ON `certificate` ++CREATE DEFINER=CURRENT_USER TRIGGER `certificate_before_ins_tr_new` BEFORE INSERT ON `certificate` + FOR EACH ROW + BEGIN + +--- a/Database/2011-07-31_951.sql ++++ b/Database/2011-07-31_951.sql +@@ -13,7 +13,7 @@ + + DELIMITER ;; + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `certificate_before_ins_tr_new` BEFORE INSERT ON `certificate` ++CREATE DEFINER=CURRENT_USER TRIGGER `certificate_before_ins_tr_new` BEFORE INSERT ON `certificate` + FOR EACH ROW + BEGIN + +@@ -30,7 +30,7 @@ + END;; + + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `certificate_before_upd_tr_new` BEFORE UPDATE ON `certificate` ++CREATE DEFINER=CURRENT_USER TRIGGER `certificate_before_upd_tr_new` BEFORE UPDATE ON `certificate` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +--- a/Database/2011-07-31_988.sql ++++ b/Database/2011-07-31_988.sql +@@ -3,7 +3,7 @@ + + DELIMITER ;; + drop procedure if exists proc_multicreated_person;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_multicreated_person (IN typeValue ENUM('child','custody'), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_multicreated_person (IN typeValue ENUM('child','custody'), + IN limitBlocksValue INTEGER(11), + IN limitPerPageValue INTEGER(11)) + NOT DETERMINISTIC +--- a/Database/2011-08-31_1117-3.sql ++++ b/Database/2011-08-31_1117-3.sql +@@ -3,7 +3,7 @@ + + DELIMITER ;; + drop procedure if exists proc_calculation_feeundependent_payables;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_calculation_feeundependent_payables (IN clientIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_calculation_feeundependent_payables (IN clientIDValue INTEGER(11), + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), + IN monthValue INTEGER, +--- a/Database/2011-08-31_1117.sql ++++ b/Database/2011-08-31_1117.sql +@@ -38,7 +38,7 @@ + + DELIMITER ;; + drop procedure if exists proc_calculation_feeundependent_payables;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_calculation_feeundependent_payables (IN clientIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_calculation_feeundependent_payables (IN clientIDValue INTEGER(11), + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), + IN monthValue INTEGER, +@@ -534,7 +534,7 @@ + + + drop function if exists getIntValue;; +-CREATE DEFINER=`root`@`localhost` FUNCTION getIntValue (my_id BIGINT(20), ++CREATE DEFINER=CURRENT_USER FUNCTION getIntValue (my_id BIGINT(20), + validTo DATE, + lookTo DATETIME, + isGlobalFavoriteLookTo TINYINT(1)) +@@ -588,7 +588,7 @@ + RETURN my_val; + END;; + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `calculation_feeundependent_reduction_values_before_ins_tr` BEFORE INSERT ON `calculation_feeundependent_reduction_values` ++CREATE DEFINER=CURRENT_USER TRIGGER `calculation_feeundependent_reduction_values_before_ins_tr` BEFORE INSERT ON `calculation_feeundependent_reduction_values` + FOR EACH ROW + BEGIN + +--- a/Database/2011-08-31_1233-2.sql ++++ b/Database/2011-08-31_1233-2.sql +@@ -3,7 +3,7 @@ + + DELIMITER ;; + drop function if exists func_get_print_all_changes;; +-CREATE DEFINER=`root`@`localhost` FUNCTION func_get_print_all_changes (contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER FUNCTION func_get_print_all_changes (contractIDValue INTEGER(11), + childIDValue INTEGER(11), + custody1IDValue INTEGER(11), + validFromStartDateValue DATE, +--- a/Database/2011-08-31_1233.sql ++++ b/Database/2011-08-31_1233.sql +@@ -3,7 +3,7 @@ + + DELIMITER ;; + drop procedure if exists proc_print_all_changes;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_print_all_changes (IN carrierIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_print_all_changes (IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), + IN validFromStartDateValue DATE, + IN validFromEndDateValue DATE, +@@ -119,7 +119,7 @@ + END print_all_changes;; + + drop procedure if exists proc_print_new_ending_contracts;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_print_new_ending_contracts (IN monthStart DATE, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_print_new_ending_contracts (IN monthStart DATE, + IN monthEnd DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11)) +@@ -226,7 +226,7 @@ + END procNewEnd;; + + drop function if exists func_get_print_all_changes;; +-CREATE DEFINER=`root`@`localhost` FUNCTION func_get_print_all_changes (contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER FUNCTION func_get_print_all_changes (contractIDValue INTEGER(11), + childIDValue INTEGER(11), + custody1IDValue INTEGER(11), + validFromStartDateValue DATE, +--- a/Database/2011-08-31_1235.sql ++++ b/Database/2011-08-31_1235.sql +@@ -3,7 +3,7 @@ + + DELIMITER ;; + drop procedure if exists proc_print_all_changes;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_print_all_changes (IN carrierIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_print_all_changes (IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), + IN validFromStartDateValue DATE, + IN validFromEndDateValue DATE, +@@ -110,7 +110,7 @@ + END print_all_changes;; + + drop function if exists func_get_print_all_changes;; +-CREATE DEFINER=`root`@`localhost` FUNCTION func_get_print_all_changes (contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER FUNCTION func_get_print_all_changes (contractIDValue INTEGER(11), + childIDValue INTEGER(11), + custody1IDValue INTEGER(11), + validFromStartDateValue DATE, +--- a/Database/2011-08-31_1298.sql ++++ b/Database/2011-08-31_1298.sql +@@ -3,7 +3,7 @@ + + DELIMITER ;; + drop procedure if exists proc_print_all_changes;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_print_all_changes (IN carrierIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_print_all_changes (IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), + IN validFromStartDateValue DATE, + IN validFromEndDateValue DATE, +--- a/Database/2011-08-31_1336.sql ++++ b/Database/2011-08-31_1336.sql +@@ -11,7 +11,7 @@ + DROP TRIGGER IF EXISTS `database_updates_before_ins_tr`; + DELIMITER ;; + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `database_updates_before_ins_tr` BEFORE INSERT ON `database_updates` ++CREATE DEFINER=CURRENT_USER TRIGGER `database_updates_before_ins_tr` BEFORE INSERT ON `database_updates` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +--- a/Database/2011-08-31_432.sql ++++ b/Database/2011-08-31_432.sql +@@ -9,7 +9,7 @@ + DROP procedure IF EXISTS `proc_insert_child`; + + DELIMITER $$ +-CREATE DEFINER=`root`@`localhost` PROCEDURE `proc_insert_child`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_child`( + IN childIDValue TEXT, + IN hashValue TEXT, + IN streetValue VARCHAR(255), +@@ -285,11 +285,11 @@ + DELIMITER ; + + +-CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_child` AS select `child`.`childID` AS `child_childID`,`child`.`zcode` AS `child_zcode`,`child`.`isBorn` AS `child_isBorn`,`func_count_sibling`(`child`.`childID`) AS `count_sibling`,`getBlobStringValue`(`child`.`hash`,NULL,NULL) AS `child_hash`,`getBlobStringValue`(`child`.`instituteName`,NULL,now()) AS `child_instituteName`,`child`.`instituteName` AS `child_instituteNameHistoryID`,`getBooleanValue`(`child`.`isInOtherInstitute`,NULL,now()) AS `child_isInOtherInstitute`,`child`.`isInOtherInstitute` AS `child_isInOtherInstituteHistoryID`,`getDateValue`(`child`.`careStartDate`,NULL,NULL) AS `child_careStartDate`,`child`.`careStartDate` AS `child_careStartDateHistoryID`,`getDateValue`(`child`.`expectedCareEndDate`,NULL,NULL) AS `child_expectedCareEndDate`,`child`.`expectedCareEndDate` AS `child_expectedCareEndDateHistoryID`,`child`.`createDatetime` AS `child_createDatetime`,`child`.`updateDatetime` AS `child_updateDatetime`,`child`.`status` AS `child_status`,`child`.`hashValuesCorrect` AS `child_hashValuesCorrect`,`getBlobIntValue`(`child`.`countChildNumber`,NULL,NULL) AS `child_countChildNumber`,`child`.`countChildNumber` AS `child_countChildNumberHistoryID`,`child_trusted`.`childTrustedID` AS `child_trusted_childTrustedID`,`child_trusted`.`trustedByUserID` AS `child_trusted_trustedByUserID`,`child_trusted`.`createDatetime` AS `child_trusted_createDatetime`,`getXmlValue`(`child_trusted`.`commentText`) AS `child_trusted_commentText`,`pd`.`personDataID` AS `person_data_personDataID`,`getDateValue`(`pd`.`birthday`,NULL,NULL) AS `person_data_birthday`,`pd`.`birthday` AS `person_data_birthdayHistoryID`,`pd`.`birthName` AS `person_data_birthNameHistoryID`,`pd`.`gender` AS `person_data_genderHistoryID`,`pd`.`birthCity` AS `person_data_birthCityHistoryID`,`pd`.`lastName` AS `person_data_lastNameHistoryID`,`pd`.`firstName` AS `person_data_firstNameHistoryID`,`getBlobStringValue`(`pd`.`birthName`,NULL,NULL) AS `person_data_birthName`,`getStringValue`(`pd`.`gender`,NULL,NULL) AS `person_data_gender`,`getBlobStringValue`(`pd`.`title`,NULL,NULL) AS `person_data_title`,`getBlobStringValue`(`pd`.`birthCity`,NULL,NULL) AS `person_data_birthCity`,`getBlobStringValue`(`pd`.`lastName`,NULL,NULL) AS `person_data_lastName`,`getBlobStringValue`(`pd`.`firstName`,NULL,NULL) AS `person_data_firstName`,`getBlobStringValue`(`child_in_carrier`.`pkz`,NULL,NULL) AS `person_data_pkz`,`child_in_carrier`.`pkz` AS `person_data_pkzHistoryID`,`getBlobTextValue`(`pd`.`commentText`,NULL,NULL) AS `person_data_commentText`,`pd`.`commentText` AS `person_data_commentTextHistoryID`,`getStringValue`(`child_in_carrier`.`commentText`,NULL,NULL) AS `child_in_carrier_commentText`,`child_in_carrier`.`commentText` AS `child_in_carrier_commentTextHistoryID`,`a`.`addressID` AS `address_addressID`,`getBlobStringValue`(`a`.`street`,NULL,NULL) AS `address_street`,`getBlobStringValue`(`a`.`streetNo`,NULL,NULL) AS `address_streetNo`,`getBlobStringValue`(`a`.`zip`,NULL,NULL) AS `address_zip`,`getBlobStringValue`(`a`.`city`,NULL,NULL) AS `address_city`,`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL) AS `address_partOfCity`,`getBlobStringValue`(`a`.`state`,NULL,NULL) AS `address_state`,`getBlobStringValue`(`a`.`country`,NULL,NULL) AS `address_country`,`getBlobTextValue`(`a`.`commentText`,NULL,NULL) AS `address_commentText`,`a`.`street` AS `address_streetHistoryID`,`a`.`streetNo` AS `address_streetNoHistoryID`,`a`.`zip` AS `address_zipHistoryID`,`a`.`city` AS `address_cityHistoryID`,`a`.`partOfCity` AS `address_partOfCityHistoryID`,`a`.`state` AS `address_stateHistoryID`,`a`.`country` AS `address_countryHistoryID`,`child_tc_data`.`childTcDataID` AS `child_tc_data_childTcDataID`,`getBlobStringValue`(`child_tc_data`.`healthInsurance`,NULL,NULL) AS `child_tc_data_healthInsurance`,`getBlobStringValue`(`child_tc_data`.`healthInsuranceNo`,NULL,NULL) AS `child_tc_data_healthInsuranceNo`,`getBlobStringValue`(`child_tc_data`.`healthInsuranceInfo`,NULL,NULL) AS `child_tc_data_healthInsuranceInfo`,`getBlobTextValue`(`child_tc_data`.`illness`,NULL,NULL) AS `child_tc_data_illness`,`getBlobTextValue`(`child_tc_data`.`commentText`,NULL,NULL) AS `child_tc_data_commentText`,`child_tc_data`.`createDatetime` AS `child_tc_data_createDatetime`,`child_tc_data`.`updateDatetime` AS `child_tc_data_updateDatetime`,`doctor`.`doctorID` AS `doctor_doctorID`,`getXmlValue`(`doctor`.`name`) AS `doctor_name`,`getXmlValue`(`doctor`.`commentText`) AS `doctor_commentText` from ((`person_data` `pd` join ((((`child` left join `child_in_carrier` on(((`child_in_carrier`.`childID` = `child`.`childID`) and (`child_in_carrier`.`carrierID` = `func_get_user_carrierID`())))) left join `child_tc_data` on((`child`.`childID` = `child_tc_data`.`childID`))) left join `child_trusted` on((`child_trusted`.`childID` = `child`.`childID`))) left join (`child_has_doctor` join `doctor`) on(((`child_has_doctor`.`childID` = `child`.`childID`) and (`child_has_doctor`.`doctorID` = `doctor`.`doctorID`))))) left join (`person_data_has_address` join `address` `a`) on(((`pd`.`personDataID` = `person_data_has_address`.`personDataID`) and (`person_data_has_address`.`isFavorite` = 1) and (`person_data_has_address`.`addressID` = `a`.`addressID`)))) where ((`child`.`personDataID` = `pd`.`personDataID`) and (`child`.`status` <> 'deleted')); ++CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_child` AS select `child`.`childID` AS `child_childID`,`child`.`zcode` AS `child_zcode`,`child`.`isBorn` AS `child_isBorn`,`func_count_sibling`(`child`.`childID`) AS `count_sibling`,`getBlobStringValue`(`child`.`hash`,NULL,NULL) AS `child_hash`,`getBlobStringValue`(`child`.`instituteName`,NULL,now()) AS `child_instituteName`,`child`.`instituteName` AS `child_instituteNameHistoryID`,`getBooleanValue`(`child`.`isInOtherInstitute`,NULL,now()) AS `child_isInOtherInstitute`,`child`.`isInOtherInstitute` AS `child_isInOtherInstituteHistoryID`,`getDateValue`(`child`.`careStartDate`,NULL,NULL) AS `child_careStartDate`,`child`.`careStartDate` AS `child_careStartDateHistoryID`,`getDateValue`(`child`.`expectedCareEndDate`,NULL,NULL) AS `child_expectedCareEndDate`,`child`.`expectedCareEndDate` AS `child_expectedCareEndDateHistoryID`,`child`.`createDatetime` AS `child_createDatetime`,`child`.`updateDatetime` AS `child_updateDatetime`,`child`.`status` AS `child_status`,`child`.`hashValuesCorrect` AS `child_hashValuesCorrect`,`getBlobIntValue`(`child`.`countChildNumber`,NULL,NULL) AS `child_countChildNumber`,`child`.`countChildNumber` AS `child_countChildNumberHistoryID`,`child_trusted`.`childTrustedID` AS `child_trusted_childTrustedID`,`child_trusted`.`trustedByUserID` AS `child_trusted_trustedByUserID`,`child_trusted`.`createDatetime` AS `child_trusted_createDatetime`,`getXmlValue`(`child_trusted`.`commentText`) AS `child_trusted_commentText`,`pd`.`personDataID` AS `person_data_personDataID`,`getDateValue`(`pd`.`birthday`,NULL,NULL) AS `person_data_birthday`,`pd`.`birthday` AS `person_data_birthdayHistoryID`,`pd`.`birthName` AS `person_data_birthNameHistoryID`,`pd`.`gender` AS `person_data_genderHistoryID`,`pd`.`birthCity` AS `person_data_birthCityHistoryID`,`pd`.`lastName` AS `person_data_lastNameHistoryID`,`pd`.`firstName` AS `person_data_firstNameHistoryID`,`getBlobStringValue`(`pd`.`birthName`,NULL,NULL) AS `person_data_birthName`,`getStringValue`(`pd`.`gender`,NULL,NULL) AS `person_data_gender`,`getBlobStringValue`(`pd`.`title`,NULL,NULL) AS `person_data_title`,`getBlobStringValue`(`pd`.`birthCity`,NULL,NULL) AS `person_data_birthCity`,`getBlobStringValue`(`pd`.`lastName`,NULL,NULL) AS `person_data_lastName`,`getBlobStringValue`(`pd`.`firstName`,NULL,NULL) AS `person_data_firstName`,`getBlobStringValue`(`child_in_carrier`.`pkz`,NULL,NULL) AS `person_data_pkz`,`child_in_carrier`.`pkz` AS `person_data_pkzHistoryID`,`getBlobTextValue`(`pd`.`commentText`,NULL,NULL) AS `person_data_commentText`,`pd`.`commentText` AS `person_data_commentTextHistoryID`,`getStringValue`(`child_in_carrier`.`commentText`,NULL,NULL) AS `child_in_carrier_commentText`,`child_in_carrier`.`commentText` AS `child_in_carrier_commentTextHistoryID`,`a`.`addressID` AS `address_addressID`,`getBlobStringValue`(`a`.`street`,NULL,NULL) AS `address_street`,`getBlobStringValue`(`a`.`streetNo`,NULL,NULL) AS `address_streetNo`,`getBlobStringValue`(`a`.`zip`,NULL,NULL) AS `address_zip`,`getBlobStringValue`(`a`.`city`,NULL,NULL) AS `address_city`,`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL) AS `address_partOfCity`,`getBlobStringValue`(`a`.`state`,NULL,NULL) AS `address_state`,`getBlobStringValue`(`a`.`country`,NULL,NULL) AS `address_country`,`getBlobTextValue`(`a`.`commentText`,NULL,NULL) AS `address_commentText`,`a`.`street` AS `address_streetHistoryID`,`a`.`streetNo` AS `address_streetNoHistoryID`,`a`.`zip` AS `address_zipHistoryID`,`a`.`city` AS `address_cityHistoryID`,`a`.`partOfCity` AS `address_partOfCityHistoryID`,`a`.`state` AS `address_stateHistoryID`,`a`.`country` AS `address_countryHistoryID`,`child_tc_data`.`childTcDataID` AS `child_tc_data_childTcDataID`,`getBlobStringValue`(`child_tc_data`.`healthInsurance`,NULL,NULL) AS `child_tc_data_healthInsurance`,`getBlobStringValue`(`child_tc_data`.`healthInsuranceNo`,NULL,NULL) AS `child_tc_data_healthInsuranceNo`,`getBlobStringValue`(`child_tc_data`.`healthInsuranceInfo`,NULL,NULL) AS `child_tc_data_healthInsuranceInfo`,`getBlobTextValue`(`child_tc_data`.`illness`,NULL,NULL) AS `child_tc_data_illness`,`getBlobTextValue`(`child_tc_data`.`commentText`,NULL,NULL) AS `child_tc_data_commentText`,`child_tc_data`.`createDatetime` AS `child_tc_data_createDatetime`,`child_tc_data`.`updateDatetime` AS `child_tc_data_updateDatetime`,`doctor`.`doctorID` AS `doctor_doctorID`,`getXmlValue`(`doctor`.`name`) AS `doctor_name`,`getXmlValue`(`doctor`.`commentText`) AS `doctor_commentText` from ((`person_data` `pd` join ((((`child` left join `child_in_carrier` on(((`child_in_carrier`.`childID` = `child`.`childID`) and (`child_in_carrier`.`carrierID` = `func_get_user_carrierID`())))) left join `child_tc_data` on((`child`.`childID` = `child_tc_data`.`childID`))) left join `child_trusted` on((`child_trusted`.`childID` = `child`.`childID`))) left join (`child_has_doctor` join `doctor`) on(((`child_has_doctor`.`childID` = `child`.`childID`) and (`child_has_doctor`.`doctorID` = `doctor`.`doctorID`))))) left join (`person_data_has_address` join `address` `a`) on(((`pd`.`personDataID` = `person_data_has_address`.`personDataID`) and (`person_data_has_address`.`isFavorite` = 1) and (`person_data_has_address`.`addressID` = `a`.`addressID`)))) where ((`child`.`personDataID` = `pd`.`personDataID`) and (`child`.`status` <> 'deleted')); + + +-CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_prereservationlist_entry` AS select `prereservationlist_entry`.`prereservationlistEntryID` AS `prereservationlist_entry_prereservationlistEntryID`,`institutepre`.`instituteID` AS `institute_instituteID`,`institutepre`.`name` AS `institute_name`,`institutepre`.`instituteKind` AS `institute_instituteKind`,`institutepre`.`carrierID` AS `institute_carrierID`,`prereservationlist_entry`.`childID` AS `prereservationlist_entry_childID`,`getBlobStringValue`(`person_data`.`lastName`,NULL,NULL) AS `person_data_lastName`,`getBlobStringValue`(`person_data`.`firstName`,NULL,NULL) AS `person_data_firstName`,`getBlobStringValue`(`child_in_carrier`.`pkz`,NULL,NULL) AS `person_data_pkz`,`getDateValue`(`person_data`.`birthday`,NULL,NULL) AS `person_data_birthday`,`getBlobStringValue`(`person_data`.`birthName`,NULL,NULL) AS `person_data_birthName`,`getStringValue`(`person_data`.`gender`,NULL,NULL) AS `person_data_gender`,`getBlobStringValue`(`person_data`.`title`,NULL,NULL) AS `person_data_title`,`getBlobStringValue`(`person_data`.`birthCity`,NULL,NULL) AS `person_data_birthCity`,`getBlobTextValue`(`person_data`.`commentText`,NULL,NULL) AS `person_data_commentText`,`person_data`.`commentText` AS `person_data_commentTextHistoryID`,`getStringValue`(`child_in_carrier`.`commentText`,NULL,NULL) AS `child_in_carrier_commentText`,`child_in_carrier`.`commentText` AS `child_in_carrier_commentTextHistoryID`,`func_count_sibling`(`child`.`childID`) AS `count_sibling`,`getBlobStringValue`(`child`.`hash`,NULL,NULL) AS `child_hash`,`child`.`isBorn` AS `child_isBorn`,`child`.`status` AS `child_status`,`child`.`createDatetime` AS `child_createDatetime`,`child`.`updateDatetime` AS `child_updateDatetime`,`func_get_siblings_by_child`(`child`.`childID`) AS `sibling_informations`,`prereservationlist_entry`.`careStartDate` AS `prereservationlist_entry_careStartDate`,`prereservationlist_entry`.`careEndDate` AS `prereservationlist_entry_careEndDate`,`func_get_care_timeIDs_by_prereservation`(`prereservationlist_entry`.`prereservationlistEntryID`) AS `careTimeIDs`,`prereservationlist_entry`.`createDatetime` AS `prereservationlist_entry_createDatetime`,`prereservationlist_entry`.`isInstituteFavorite` AS `prereservationlist_entry_isInstituteFavorite`,`prereservationlist_entry`.`setByPortalUserID` AS `prereservationlist_entry_setByPortalUserID`,`prereservationlist_entry`.`reserveEmailData` AS `prereservationlist_entry_reserveEmailData`,`prereservationlist_entry_is_set_by_user`.`userID` AS `prereservationlist_entry_is_set_by_user_userID`,`prereservationlist_entry`.`potCustodyContractPartner` AS `prereservationlist_entry_potCustodyContractPartner`,`prereservationlist_entry`.`potCustodyOptContractPartner` AS `prereservationlist_entry_potCustodyOptContractPartner`,`func_get_custodies_by_child`(`prereservationlist_entry`.`childID`) AS `custody_informations`,`prereservationlist_entry`.`favoritePosition` AS `prereservationlist_entry_favoritePosition`,`prereservationlist_entry`.`isIntegrated` AS `prereservationlist_entry_isIntegrated`,`prereservationlist_entry`.`plannedHouseMovingDate` AS `prereservationlist_entry_plannedHouseMovingDate`,`prereservationlist_entry_has_place`.`placeFromDate` AS `prereservationlist_entry_has_place_placeFromDate`,`prereservationlist_entry_has_place`.`placeUntilDate` AS `prereservationlist_entry_has_place_placeUntilDate`,`prereservationlist_entry_has_place`.`nr` AS `prereservationlist_entry_has_place_nr`,`prereservationlist_entry`.`realStartDate` AS `prereservationlist_entry_realStartDate`,`prereservationlist_entry`.`realEndDate` AS `prereservationlist_entry_realEndDate`,`prereservationlist_entry`.`realStartDateUnconfirmed` AS `prereservationlist_entry_realStartDateUnconfirmed`,`prereservationlist_entry`.`realEndDateUnconfirmed` AS `prereservationlist_entry_realEndDateUnconfirmed`,`prereservationlist_entry`.`reserveEmailLinkClicked` AS `prereservationlist_entry_reserveEmailLinkClicked`,`prereservationlist_entry`.`status` AS `prereservationlist_entry_status`,`func_get_prereservation_status_color`(`prereservationlist_entry`.`status`,`prereservationlist_entry`.`prereservationRejectionReason`,`prereservationlist_entry`.`reservationRemoveReason`,`prereservationlist_entry`.`potCustodyContractPartner`,`prereservationlist_entry`.`potCustodyOptContractPartner`) AS `prereservationlist_entry_statusColor`,`prereservationlist_entry`.`updateDatetime` AS `prereservationlist_entry_updateDatetime`,`prereservationlist_entry`.`prereservationEndDate` AS `prereservationlist_entry_prereservationEndDate`,`prereservationlist_entry`.`reservationEndDate` AS `prereservationlist_entry_reservationEndDate`,`prereservationlist_entry`.`prereservationRejectionReason` AS `prereservationlist_entry_prereservationRejectionReason`,`prereservationlist_entry`.`prereservationRejectionData` AS `prereservationlist_entry_prereservationRejectionData`,`prereservationlist_entry`.`reservationConfirmData` AS `prereservationlist_entry_reservationConfirmData`,`prereservationlist_entry`.`lastUpdateByUserID` AS `prereservationlist_entry_lastUpdateByUserID`,`getXmlValue`(`prereservationlist_entry`.`commentText`) AS `prereservationlist_entry_commentText`,`getXmlValue`(`prereservationlist_entry`.`rejectionMessage`) AS `prereservationlist_entry_rejectionMessage`,`getXmlValue`(`prereservationlist_entry`.`rejectionType`) AS `prereservationlist_entry_rejectionType`,`getXmlValue`(`prereservationlist_entry`.`instituteCommentText`) AS `prereservationlist_entry_instituteCommentText`,`getXmlValue`(`prereservationlist_entry`.`siblingsInInstituteData`) AS `prereservationlist_entry_siblingsInInstituteData`,`child_tc_data`.`childTcDataID` AS `child_tc_data_childTcDataID`,`getBlobStringValue`(`child_tc_data`.`healthInsurance`,NULL,NULL) AS `child_tc_data_healthInsurance`,`getBlobStringValue`(`child_tc_data`.`healthInsuranceInfo`,NULL,NULL) AS `child_tc_data_healthInsuranceInfo`,`getBlobTextValue`(`child_tc_data`.`illness`,NULL,NULL) AS `child_tc_data_illness`,`getBlobTextValue`(`child_tc_data`.`commentText`,NULL,NULL) AS `child_tc_data_commentText`,`child_tc_data`.`createDatetime` AS `child_tc_data_createDatetime`,`child_tc_data`.`updateDatetime` AS `child_tc_data_updateDatetime`,`institute_type`.`instituteTypeID` AS `institute_type_instituteTypeID`,`institute_type`.`orderPosition` AS `institute_type_orderPosition`,`institute_type`.`instituteType` AS `institute_type_instituteType`,`func_has_child_contract`(`prereservationlist_entry`.`childID`,`institute_type`.`instituteTypeID`,`institutepre`.`carrierID`) AS `child_has_contract`,`func_count_prereservations_to_child`(`prereservationlist_entry`.`childID`,`institute_type`.`instituteTypeID`,0) AS `count_all_free_prereservations_to_child`,`func_count_prereservations_to_child`(`prereservationlist_entry`.`childID`,`institute_type`.`instituteTypeID`,1) AS `count_rejected_prereservations_to_child`,`place`.`placeID` AS `place_reservationPlaceID`,`place`.`placeName` AS `place_reservationPlaceName`,`institute_group`.`groupID` AS `institute_group_reservationGroupID`,`institute_group`.`groupName` AS `institute_group_reservationGroupName`,`reit`.`instituteTypeID` AS `institute_type_reservationInstituteTypeID`,`reit`.`orderPosition` AS `institute_type_reservationOrderPosition`,`reit`.`instituteType` AS `institute_type_reservationInstituteType`,`prereservationlist_entry`.`reservationRemoveData` AS `prereservationlist_entry_reservationRemoveData`,`prereservationlist_entry`.`reservationRemoveReason` AS `prereservationlist_entry_reservationRemoveReason`,`prereservationlist_entry`.`editReserveEmailData` AS `prereservationlist_entry_editReserveEmailData`,`prereservationlist_entry`.`reservationEditConfirmData` AS `prereservationlist_entry_reservationEditConfirmData`,`child_trusted`.`childTrustedID` AS `child_trusted_childTrustedID`,`child_trusted`.`trustedByUserID` AS `child_trusted_trustedByUserID`,`getXmlValue`(`child_trusted`.`commentText`) AS `child_trusted_commentText`,`child_trusted`.`createDatetime` AS `child_trusted_createDatetime`,`portal_prereservation_is_tc_prereservation`.`portalPreservationListID` AS `has_portal_portalPrereservationListEntryID`,`func_is_address_in_institute_own_township`(`institutepre`.`instituteID`,`getBlobStringValue`(`a`.`zip`,NULL,NULL),`getBlobStringValue`(`a`.`city`,NULL,NULL),`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL)) AS `is_child_address_in_institute_own_township` from ((((((((((`prereservationlist_entry` left join `portal_prereservation_is_tc_prereservation` on((`prereservationlist_entry`.`prereservationlistEntryID` = `portal_prereservation_is_tc_prereservation`.`prereservationlistEntryID`))) left join (((`prereservationlist_entry_has_place` join `place`) join `institute_group`) join `institute_type` `reit`) on(((`place`.`placeID` = `prereservationlist_entry_has_place`.`placeID`) and (`institute_group`.`groupID` = `place`.`groupID`) and (`reit`.`instituteTypeID` = `institute_group`.`instituteTypeID`) and (`prereservationlist_entry`.`prereservationlistEntryID` = `prereservationlist_entry_has_place`.`prereservationlistEntryID`)))) join `person_data`) join `person_data_has_address`) join `address` `a`) join `prereservationlist_entry_is_set_by_user`) join `institute_has_prereservationlist_entry`) join `institute_type`) join `institute` `institutepre`) join (((`child` left join `child_trusted` on((`child`.`childID` = `child_trusted`.`childID`))) left join `child_in_carrier` on(((`child_in_carrier`.`childID` = `child`.`childID`) and (`child_in_carrier`.`carrierID` = `func_get_user_carrierID`())))) left join `child_tc_data` on((`child_tc_data`.`childID` = `child`.`childID`)))) where ((`prereservationlist_entry`.`childID` = `child`.`childID`) and (`child`.`status` <> 'deleted') and (`child`.`personDataID` = `person_data`.`personDataID`) and (`person_data_has_address`.`personDataID` = `person_data`.`personDataID`) and (`person_data_has_address`.`addressID` = `a`.`addressID`) and (`prereservationlist_entry`.`prereservationlistEntryID` = `prereservationlist_entry_is_set_by_user`.`prereservationlistEntryID`) and (`prereservationlist_entry`.`prereservationlistEntryID` = `institute_has_prereservationlist_entry`.`prereservationlistEntryID`) and (`institute_type`.`instituteTypeID` = `institute_has_prereservationlist_entry`.`instituteTypeID`) and (`institutepre`.`instituteID` = `institute_has_prereservationlist_entry`.`instituteID`)); ++CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_prereservationlist_entry` AS select `prereservationlist_entry`.`prereservationlistEntryID` AS `prereservationlist_entry_prereservationlistEntryID`,`institutepre`.`instituteID` AS `institute_instituteID`,`institutepre`.`name` AS `institute_name`,`institutepre`.`instituteKind` AS `institute_instituteKind`,`institutepre`.`carrierID` AS `institute_carrierID`,`prereservationlist_entry`.`childID` AS `prereservationlist_entry_childID`,`getBlobStringValue`(`person_data`.`lastName`,NULL,NULL) AS `person_data_lastName`,`getBlobStringValue`(`person_data`.`firstName`,NULL,NULL) AS `person_data_firstName`,`getBlobStringValue`(`child_in_carrier`.`pkz`,NULL,NULL) AS `person_data_pkz`,`getDateValue`(`person_data`.`birthday`,NULL,NULL) AS `person_data_birthday`,`getBlobStringValue`(`person_data`.`birthName`,NULL,NULL) AS `person_data_birthName`,`getStringValue`(`person_data`.`gender`,NULL,NULL) AS `person_data_gender`,`getBlobStringValue`(`person_data`.`title`,NULL,NULL) AS `person_data_title`,`getBlobStringValue`(`person_data`.`birthCity`,NULL,NULL) AS `person_data_birthCity`,`getBlobTextValue`(`person_data`.`commentText`,NULL,NULL) AS `person_data_commentText`,`person_data`.`commentText` AS `person_data_commentTextHistoryID`,`getStringValue`(`child_in_carrier`.`commentText`,NULL,NULL) AS `child_in_carrier_commentText`,`child_in_carrier`.`commentText` AS `child_in_carrier_commentTextHistoryID`,`func_count_sibling`(`child`.`childID`) AS `count_sibling`,`getBlobStringValue`(`child`.`hash`,NULL,NULL) AS `child_hash`,`child`.`isBorn` AS `child_isBorn`,`child`.`status` AS `child_status`,`child`.`createDatetime` AS `child_createDatetime`,`child`.`updateDatetime` AS `child_updateDatetime`,`func_get_siblings_by_child`(`child`.`childID`) AS `sibling_informations`,`prereservationlist_entry`.`careStartDate` AS `prereservationlist_entry_careStartDate`,`prereservationlist_entry`.`careEndDate` AS `prereservationlist_entry_careEndDate`,`func_get_care_timeIDs_by_prereservation`(`prereservationlist_entry`.`prereservationlistEntryID`) AS `careTimeIDs`,`prereservationlist_entry`.`createDatetime` AS `prereservationlist_entry_createDatetime`,`prereservationlist_entry`.`isInstituteFavorite` AS `prereservationlist_entry_isInstituteFavorite`,`prereservationlist_entry`.`setByPortalUserID` AS `prereservationlist_entry_setByPortalUserID`,`prereservationlist_entry`.`reserveEmailData` AS `prereservationlist_entry_reserveEmailData`,`prereservationlist_entry_is_set_by_user`.`userID` AS `prereservationlist_entry_is_set_by_user_userID`,`prereservationlist_entry`.`potCustodyContractPartner` AS `prereservationlist_entry_potCustodyContractPartner`,`prereservationlist_entry`.`potCustodyOptContractPartner` AS `prereservationlist_entry_potCustodyOptContractPartner`,`func_get_custodies_by_child`(`prereservationlist_entry`.`childID`) AS `custody_informations`,`prereservationlist_entry`.`favoritePosition` AS `prereservationlist_entry_favoritePosition`,`prereservationlist_entry`.`isIntegrated` AS `prereservationlist_entry_isIntegrated`,`prereservationlist_entry`.`plannedHouseMovingDate` AS `prereservationlist_entry_plannedHouseMovingDate`,`prereservationlist_entry_has_place`.`placeFromDate` AS `prereservationlist_entry_has_place_placeFromDate`,`prereservationlist_entry_has_place`.`placeUntilDate` AS `prereservationlist_entry_has_place_placeUntilDate`,`prereservationlist_entry_has_place`.`nr` AS `prereservationlist_entry_has_place_nr`,`prereservationlist_entry`.`realStartDate` AS `prereservationlist_entry_realStartDate`,`prereservationlist_entry`.`realEndDate` AS `prereservationlist_entry_realEndDate`,`prereservationlist_entry`.`realStartDateUnconfirmed` AS `prereservationlist_entry_realStartDateUnconfirmed`,`prereservationlist_entry`.`realEndDateUnconfirmed` AS `prereservationlist_entry_realEndDateUnconfirmed`,`prereservationlist_entry`.`reserveEmailLinkClicked` AS `prereservationlist_entry_reserveEmailLinkClicked`,`prereservationlist_entry`.`status` AS `prereservationlist_entry_status`,`func_get_prereservation_status_color`(`prereservationlist_entry`.`status`,`prereservationlist_entry`.`prereservationRejectionReason`,`prereservationlist_entry`.`reservationRemoveReason`,`prereservationlist_entry`.`potCustodyContractPartner`,`prereservationlist_entry`.`potCustodyOptContractPartner`) AS `prereservationlist_entry_statusColor`,`prereservationlist_entry`.`updateDatetime` AS `prereservationlist_entry_updateDatetime`,`prereservationlist_entry`.`prereservationEndDate` AS `prereservationlist_entry_prereservationEndDate`,`prereservationlist_entry`.`reservationEndDate` AS `prereservationlist_entry_reservationEndDate`,`prereservationlist_entry`.`prereservationRejectionReason` AS `prereservationlist_entry_prereservationRejectionReason`,`prereservationlist_entry`.`prereservationRejectionData` AS `prereservationlist_entry_prereservationRejectionData`,`prereservationlist_entry`.`reservationConfirmData` AS `prereservationlist_entry_reservationConfirmData`,`prereservationlist_entry`.`lastUpdateByUserID` AS `prereservationlist_entry_lastUpdateByUserID`,`getXmlValue`(`prereservationlist_entry`.`commentText`) AS `prereservationlist_entry_commentText`,`getXmlValue`(`prereservationlist_entry`.`rejectionMessage`) AS `prereservationlist_entry_rejectionMessage`,`getXmlValue`(`prereservationlist_entry`.`rejectionType`) AS `prereservationlist_entry_rejectionType`,`getXmlValue`(`prereservationlist_entry`.`instituteCommentText`) AS `prereservationlist_entry_instituteCommentText`,`getXmlValue`(`prereservationlist_entry`.`siblingsInInstituteData`) AS `prereservationlist_entry_siblingsInInstituteData`,`child_tc_data`.`childTcDataID` AS `child_tc_data_childTcDataID`,`getBlobStringValue`(`child_tc_data`.`healthInsurance`,NULL,NULL) AS `child_tc_data_healthInsurance`,`getBlobStringValue`(`child_tc_data`.`healthInsuranceInfo`,NULL,NULL) AS `child_tc_data_healthInsuranceInfo`,`getBlobTextValue`(`child_tc_data`.`illness`,NULL,NULL) AS `child_tc_data_illness`,`getBlobTextValue`(`child_tc_data`.`commentText`,NULL,NULL) AS `child_tc_data_commentText`,`child_tc_data`.`createDatetime` AS `child_tc_data_createDatetime`,`child_tc_data`.`updateDatetime` AS `child_tc_data_updateDatetime`,`institute_type`.`instituteTypeID` AS `institute_type_instituteTypeID`,`institute_type`.`orderPosition` AS `institute_type_orderPosition`,`institute_type`.`instituteType` AS `institute_type_instituteType`,`func_has_child_contract`(`prereservationlist_entry`.`childID`,`institute_type`.`instituteTypeID`,`institutepre`.`carrierID`) AS `child_has_contract`,`func_count_prereservations_to_child`(`prereservationlist_entry`.`childID`,`institute_type`.`instituteTypeID`,0) AS `count_all_free_prereservations_to_child`,`func_count_prereservations_to_child`(`prereservationlist_entry`.`childID`,`institute_type`.`instituteTypeID`,1) AS `count_rejected_prereservations_to_child`,`place`.`placeID` AS `place_reservationPlaceID`,`place`.`placeName` AS `place_reservationPlaceName`,`institute_group`.`groupID` AS `institute_group_reservationGroupID`,`institute_group`.`groupName` AS `institute_group_reservationGroupName`,`reit`.`instituteTypeID` AS `institute_type_reservationInstituteTypeID`,`reit`.`orderPosition` AS `institute_type_reservationOrderPosition`,`reit`.`instituteType` AS `institute_type_reservationInstituteType`,`prereservationlist_entry`.`reservationRemoveData` AS `prereservationlist_entry_reservationRemoveData`,`prereservationlist_entry`.`reservationRemoveReason` AS `prereservationlist_entry_reservationRemoveReason`,`prereservationlist_entry`.`editReserveEmailData` AS `prereservationlist_entry_editReserveEmailData`,`prereservationlist_entry`.`reservationEditConfirmData` AS `prereservationlist_entry_reservationEditConfirmData`,`child_trusted`.`childTrustedID` AS `child_trusted_childTrustedID`,`child_trusted`.`trustedByUserID` AS `child_trusted_trustedByUserID`,`getXmlValue`(`child_trusted`.`commentText`) AS `child_trusted_commentText`,`child_trusted`.`createDatetime` AS `child_trusted_createDatetime`,`portal_prereservation_is_tc_prereservation`.`portalPreservationListID` AS `has_portal_portalPrereservationListEntryID`,`func_is_address_in_institute_own_township`(`institutepre`.`instituteID`,`getBlobStringValue`(`a`.`zip`,NULL,NULL),`getBlobStringValue`(`a`.`city`,NULL,NULL),`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL)) AS `is_child_address_in_institute_own_township` from ((((((((((`prereservationlist_entry` left join `portal_prereservation_is_tc_prereservation` on((`prereservationlist_entry`.`prereservationlistEntryID` = `portal_prereservation_is_tc_prereservation`.`prereservationlistEntryID`))) left join (((`prereservationlist_entry_has_place` join `place`) join `institute_group`) join `institute_type` `reit`) on(((`place`.`placeID` = `prereservationlist_entry_has_place`.`placeID`) and (`institute_group`.`groupID` = `place`.`groupID`) and (`reit`.`instituteTypeID` = `institute_group`.`instituteTypeID`) and (`prereservationlist_entry`.`prereservationlistEntryID` = `prereservationlist_entry_has_place`.`prereservationlistEntryID`)))) join `person_data`) join `person_data_has_address`) join `address` `a`) join `prereservationlist_entry_is_set_by_user`) join `institute_has_prereservationlist_entry`) join `institute_type`) join `institute` `institutepre`) join (((`child` left join `child_trusted` on((`child`.`childID` = `child_trusted`.`childID`))) left join `child_in_carrier` on(((`child_in_carrier`.`childID` = `child`.`childID`) and (`child_in_carrier`.`carrierID` = `func_get_user_carrierID`())))) left join `child_tc_data` on((`child_tc_data`.`childID` = `child`.`childID`)))) where ((`prereservationlist_entry`.`childID` = `child`.`childID`) and (`child`.`status` <> 'deleted') and (`child`.`personDataID` = `person_data`.`personDataID`) and (`person_data_has_address`.`personDataID` = `person_data`.`personDataID`) and (`person_data_has_address`.`addressID` = `a`.`addressID`) and (`prereservationlist_entry`.`prereservationlistEntryID` = `prereservationlist_entry_is_set_by_user`.`prereservationlistEntryID`) and (`prereservationlist_entry`.`prereservationlistEntryID` = `institute_has_prereservationlist_entry`.`prereservationlistEntryID`) and (`institute_type`.`instituteTypeID` = `institute_has_prereservationlist_entry`.`instituteTypeID`) and (`institutepre`.`instituteID` = `institute_has_prereservationlist_entry`.`instituteID`)); + + +-CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_contract` AS select `view_params`.`validFrom` AS `validFrom`,`view_params`.`lastPrinted` AS `lastPrinted`,`contract`.`contractID` AS `contract_contractID`,`child`.`childID` AS `child_childID`,`getBlobStringValue`(`child`.`hash`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `child_hash`,`getBlobStringValue`(`person_data`.`lastName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_lastName`,`getBlobStringValue`(`person_data`.`firstName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_firstName`,`getDateValue`(`person_data`.`birthday`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_birthday`,`getStringValue`(`person_data`.`gender`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_gender`,`getBlobTextValue`(`person_data`.`commentText`,NULL,NULL) AS `person_data_commentText`,`person_data`.`commentText` AS `person_data_commentTextHistoryID`,`getStringValue`(`child_in_carrier`.`commentText`,NULL,NULL) AS `child_in_carrier_commentText`,`child_in_carrier`.`commentText` AS `child_in_carrier_commentTextHistoryID`,`getBlobStringValue`(`child_in_carrier`.`pkz`,NULL,NULL) AS `person_data_pkz`,`getBlobIntValue`(`child`.`countChildNumber`,NULL,NULL) AS `child_countChildNumber`,`view_params`.`lastPrinted` AS `contract_lastValidPrintedDatetime`,`institute`.`instituteID` AS `contract_instituteID`,`contract`.`createDatetime` AS `contract_createDatetime`,`contract`.`updateDatetime` AS `contract_updateDatetime`,`contract`.`setToFinishedData` AS `contract_setToFinishedData`,`contract`.`careTimeID` AS `contract_careTimeIDHistoryID`,`contract`.`differentCustodyID` AS `contract_differentCustodyID`,`institute`.`instituteID` AS `institute_instituteID`,`institute_group`.`instituteTypeID` AS `contract_instituteTypeID`,`institute_type`.`orderPosition` AS `institute_type_orderPosition`,`institute_type`.`orderPosition2` AS `institute_type_orderPosition2`,`contract`.`createdByUserID` AS `contract_createdByUserID`,`institute_group`.`groupID` AS `contract_groupID`,`contract`.`contractNumber` AS `contract_contractNumber`,`institute_group`.`groupName` AS `institute_group_groupName`,`institute`.`name` AS `institute_name`,`institute`.`instituteKind` AS `institute_instituteKind`,`institute`.`carrierID` AS `institute_carrierID`,`care_time`.`instituteTypeID` AS `care_time_instituteTypeID`,`care_time`.`hoursMorning` AS `care_time_hoursMorning`,`care_time`.`hoursAfternoon` AS `care_time_hoursAfternoon`,`care_time`.`hoursDay` AS `care_time_hoursDay`,`func_get_all_hours_from_care`(`care_time`.`hoursDay`,`care_time`.`hoursAfternoon`,`care_time`.`hoursMorning`) AS `care_time_hoursOverAll`,`care_time`.`startDate` AS `care_time_startDate`,`care_time`.`endDate` AS `care_time_endDate`,`care_time`.`description` AS `care_time_description`,`func_get_care_time_description_short`(`care_time`.`description`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1)) AS `care_time_descriptionShort`,`institute`.`status` AS `institute_status`,`contract`.`status` AS `contract_status`,`hasContractUnconfirmedChanges`(`contract`.`contractID`) AS `hasContractUnconfirmedChanges`,`func_get_siblings_by_child`(`child`.`childID`) AS `siblings_information`,`contract_has_place`.`placeID` AS `contract_has_place_placeID`,`getContractPartner`(`contract`.`contractID`,1,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_has_custody_as_contractpartner_custodyID1`,`getContractPartner`(`contract`.`contractID`,2,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_has_custody_as_contractpartner_custodyID2`,`getContractStartDate`(`contract`.`contractID`,NULL) AS `contract_startDate`,`getContractEndDate`(`contract`.`contractID`,NULL) AS `contract_endDate`,`contract`.`payerID` AS `contract_payerID`,`getBlobStringValue`(`contract`.`pkn`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_pkn`,`getBlobTextValue`(`contract`.`commentText`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_commentText`,`getBooleanValue`(`contract`.`isIntegrated`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_isIntegrated`,`contract`.`isIntegrated` AS `contract_isIntegratedHistoryID`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) AS `contract_additionalPaymentType`,`calcIT`.`orderPosition` AS `calc_institute_type_orderPosition`,`calcIT`.`orderPosition2` AS `calc_institute_type_orderPosition2`,`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) AS `contract_careTimeID`,`getBooleanValue`(`contract`.`childHasPedagogicHelp`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_childHasPedagogicHelp`,`contract`.`isInFamilyGermanMajorLanguage` AS `contract_isInFamilyGermanMajorLanguage`,`contract`.`hasOneCustodyForeignNativity` AS `contract_hasOneCustodyForeignNativity`,`contract`.`startHour` AS `contract_startHour`,`contract`.`endHour` AS `contract_endHour`,`func_is_address_in_institute_own_township`(`institute`.`instituteID`,`getBlobStringValue`(`a`.`zip`,NULL,NULL),`getBlobStringValue`(`a`.`city`,NULL,NULL),`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL)) AS `is_child_address_in_institute_own_township` from (((((((((((((`child` left join `child_in_carrier` on(((`child_in_carrier`.`childID` = `child`.`childID`) and (`child_in_carrier`.`carrierID` = `func_get_user_carrierID`())))) join `contract`) join `view_params`) join `person_data`) join `person_data_has_address`) join `address` `a`) join `place`) join `care_time`) join `contract_has_place`) join `institute_group`) join `institute_type`) join `institute`) left join `institute_type` `calcIT` on((`calcIT`.`instituteTypeID` = `getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1)))) where ((`child`.`status` <> 'deleted') and (`child`.`personDataID` = `person_data`.`personDataID`) and (`person_data`.`personDataID` = `person_data_has_address`.`personDataID`) and (`person_data_has_address`.`addressID` = `a`.`addressID`) and (`institute`.`instituteID` = `institute_group`.`instituteID`) and (`institute_group`.`groupID` = `place`.`groupID`) and (`institute_group`.`instituteTypeID` = `institute_type`.`instituteTypeID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`contract_has_place`.`ID` = `func_get_actual_contract_has_place_ID`(`contract`.`contractID`,`view_params`.`validFrom`)) and (`contract`.`contractID` = `contract_has_place`.`contractID`) and (`view_params`.`con_ID` = `contract`.`contractID`) and (`contract`.`childID` = `child`.`childID`) and (`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) = `care_time`.`careTimeID`)); ++CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_contract` AS select `view_params`.`validFrom` AS `validFrom`,`view_params`.`lastPrinted` AS `lastPrinted`,`contract`.`contractID` AS `contract_contractID`,`child`.`childID` AS `child_childID`,`getBlobStringValue`(`child`.`hash`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `child_hash`,`getBlobStringValue`(`person_data`.`lastName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_lastName`,`getBlobStringValue`(`person_data`.`firstName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_firstName`,`getDateValue`(`person_data`.`birthday`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_birthday`,`getStringValue`(`person_data`.`gender`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_gender`,`getBlobTextValue`(`person_data`.`commentText`,NULL,NULL) AS `person_data_commentText`,`person_data`.`commentText` AS `person_data_commentTextHistoryID`,`getStringValue`(`child_in_carrier`.`commentText`,NULL,NULL) AS `child_in_carrier_commentText`,`child_in_carrier`.`commentText` AS `child_in_carrier_commentTextHistoryID`,`getBlobStringValue`(`child_in_carrier`.`pkz`,NULL,NULL) AS `person_data_pkz`,`getBlobIntValue`(`child`.`countChildNumber`,NULL,NULL) AS `child_countChildNumber`,`view_params`.`lastPrinted` AS `contract_lastValidPrintedDatetime`,`institute`.`instituteID` AS `contract_instituteID`,`contract`.`createDatetime` AS `contract_createDatetime`,`contract`.`updateDatetime` AS `contract_updateDatetime`,`contract`.`setToFinishedData` AS `contract_setToFinishedData`,`contract`.`careTimeID` AS `contract_careTimeIDHistoryID`,`contract`.`differentCustodyID` AS `contract_differentCustodyID`,`institute`.`instituteID` AS `institute_instituteID`,`institute_group`.`instituteTypeID` AS `contract_instituteTypeID`,`institute_type`.`orderPosition` AS `institute_type_orderPosition`,`institute_type`.`orderPosition2` AS `institute_type_orderPosition2`,`contract`.`createdByUserID` AS `contract_createdByUserID`,`institute_group`.`groupID` AS `contract_groupID`,`contract`.`contractNumber` AS `contract_contractNumber`,`institute_group`.`groupName` AS `institute_group_groupName`,`institute`.`name` AS `institute_name`,`institute`.`instituteKind` AS `institute_instituteKind`,`institute`.`carrierID` AS `institute_carrierID`,`care_time`.`instituteTypeID` AS `care_time_instituteTypeID`,`care_time`.`hoursMorning` AS `care_time_hoursMorning`,`care_time`.`hoursAfternoon` AS `care_time_hoursAfternoon`,`care_time`.`hoursDay` AS `care_time_hoursDay`,`func_get_all_hours_from_care`(`care_time`.`hoursDay`,`care_time`.`hoursAfternoon`,`care_time`.`hoursMorning`) AS `care_time_hoursOverAll`,`care_time`.`startDate` AS `care_time_startDate`,`care_time`.`endDate` AS `care_time_endDate`,`care_time`.`description` AS `care_time_description`,`func_get_care_time_description_short`(`care_time`.`description`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1)) AS `care_time_descriptionShort`,`institute`.`status` AS `institute_status`,`contract`.`status` AS `contract_status`,`hasContractUnconfirmedChanges`(`contract`.`contractID`) AS `hasContractUnconfirmedChanges`,`func_get_siblings_by_child`(`child`.`childID`) AS `siblings_information`,`contract_has_place`.`placeID` AS `contract_has_place_placeID`,`getContractPartner`(`contract`.`contractID`,1,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_has_custody_as_contractpartner_custodyID1`,`getContractPartner`(`contract`.`contractID`,2,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_has_custody_as_contractpartner_custodyID2`,`getContractStartDate`(`contract`.`contractID`,NULL) AS `contract_startDate`,`getContractEndDate`(`contract`.`contractID`,NULL) AS `contract_endDate`,`contract`.`payerID` AS `contract_payerID`,`getBlobStringValue`(`contract`.`pkn`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_pkn`,`getBlobTextValue`(`contract`.`commentText`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_commentText`,`getBooleanValue`(`contract`.`isIntegrated`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_isIntegrated`,`contract`.`isIntegrated` AS `contract_isIntegratedHistoryID`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) AS `contract_additionalPaymentType`,`calcIT`.`orderPosition` AS `calc_institute_type_orderPosition`,`calcIT`.`orderPosition2` AS `calc_institute_type_orderPosition2`,`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) AS `contract_careTimeID`,`getBooleanValue`(`contract`.`childHasPedagogicHelp`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_childHasPedagogicHelp`,`contract`.`isInFamilyGermanMajorLanguage` AS `contract_isInFamilyGermanMajorLanguage`,`contract`.`hasOneCustodyForeignNativity` AS `contract_hasOneCustodyForeignNativity`,`contract`.`startHour` AS `contract_startHour`,`contract`.`endHour` AS `contract_endHour`,`func_is_address_in_institute_own_township`(`institute`.`instituteID`,`getBlobStringValue`(`a`.`zip`,NULL,NULL),`getBlobStringValue`(`a`.`city`,NULL,NULL),`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL)) AS `is_child_address_in_institute_own_township` from (((((((((((((`child` left join `child_in_carrier` on(((`child_in_carrier`.`childID` = `child`.`childID`) and (`child_in_carrier`.`carrierID` = `func_get_user_carrierID`())))) join `contract`) join `view_params`) join `person_data`) join `person_data_has_address`) join `address` `a`) join `place`) join `care_time`) join `contract_has_place`) join `institute_group`) join `institute_type`) join `institute`) left join `institute_type` `calcIT` on((`calcIT`.`instituteTypeID` = `getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1)))) where ((`child`.`status` <> 'deleted') and (`child`.`personDataID` = `person_data`.`personDataID`) and (`person_data`.`personDataID` = `person_data_has_address`.`personDataID`) and (`person_data_has_address`.`addressID` = `a`.`addressID`) and (`institute`.`instituteID` = `institute_group`.`instituteID`) and (`institute_group`.`groupID` = `place`.`groupID`) and (`institute_group`.`instituteTypeID` = `institute_type`.`instituteTypeID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`contract_has_place`.`ID` = `func_get_actual_contract_has_place_ID`(`contract`.`contractID`,`view_params`.`validFrom`)) and (`contract`.`contractID` = `contract_has_place`.`contractID`) and (`view_params`.`con_ID` = `contract`.`contractID`) and (`contract`.`childID` = `child`.`childID`) and (`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) = `care_time`.`careTimeID`)); + +--- a/Database/2011-08-31_746.sql ++++ b/Database/2011-08-31_746.sql +@@ -18,7 +18,7 @@ + + DELIMITER ;; + drop procedure if exists proc_insert_institute;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_insert_institute (IN instituteIDValue TEXT, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_insert_institute (IN instituteIDValue TEXT, + IN carrierIDValue INTEGER(11), + IN inCarrierFromDateValue DATE, + IN inCarrierEndDateValue DATE, +--- a/Database/2011-08-31_950.sql ++++ b/Database/2011-08-31_950.sql +@@ -7,14 +7,14 @@ + alter table `personal` add constraint `personal_fk` foreign key(`updateByUserID`) references `user`(`userID`); + + drop view if exists view_user; +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` VIEW view_user ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER VIEW view_user + AS + select `getBlobStringValue`(`pd`.`firstName`,NULL,NULL) AS `person_data_firstName`,`getBlobStringValue`(`pd`.`lastName`,NULL,NULL) AS `person_data_lastName`,`pd`.`personDataID` AS `person_data_personDataID`,`getDateValue`(`pd`.`birthday`,NULL,NULL) AS `person_data_birthday`,`getStringValue`(`pd`.`gender`,NULL,NULL) AS `person_data_gender`,`p`.`personalID` AS `personal_personalID`,`p`.`validFromDate` AS `personal_validFromDate`,`p`.`validUntilDate` AS `personal_validUntilDate`,`p`.`createdByUserID` AS `personal_createdByUserID`,`p`.`updateByUserID` AS `personal_updateByUserID`,`p`.`createDatetime` AS `personal_createDatetime`,`p`.`updateDatetime` AS `personal_updateDatetime`,`p`.`status` AS `personal_status`,`getXmlValue`(`p`.`commentText`) AS `personal_commentText`,`user`.`userID` AS `user_userID`,`user`.`passwd` AS `user_passwd`,`user`.`passwdSalt` AS `user_passwdSalt`,`user`.`lastLoginDatetime` AS `user_lastLoginDatetime`,`user`.`failedLogins` AS `user_failedLogins`,`user`.`lastLoginTryIP` AS `user_lastLoginTryIP`,`user`.`lastLoginTryDatetime` AS `user_lastLoginTryDatetime`,`user`.`passwdValidUntilDate` AS `user_passwdValidUntilDate`,`user`.`lastPasswdRequestValidUntil` AS `user_lastPasswdRequestValidUntil`,`user`.`lastPasswdRequestUrl` AS `user_lastPasswdRequestUrl`,`user`.`createDatetime` AS `user_createDatetime`,`user`.`updateDatetime` AS `user_updateDatetime`,`user`.`loginName` AS `user_loginName`,`user`.`allowLogin` AS `user_allowLogin`,`user`.`lastPasswdChangeDate` AS `user_lastPasswdChangeDate`,`user`.`sign` AS `user_sign`,`user`.`status` AS `user_userStatus`,`user`.`messageType` AS `user_messageType`,`user`.`messageOptions` AS `user_messageOptions` from ((`user` join `personal` `p`) join `person_data` `pd`) where ((`p`.`userID` = `user`.`userID`) and (`p`.`personDataID` = `pd`.`personDataID`)); + + DROP TRIGGER IF EXISTS personal_before_upd_tr_new; + DELIMITER ;; + +- CREATE DEFINER = 'root'@'localhost' TRIGGER `personal_before_upd_tr_new` BEFORE UPDATE ON `personal` ++ CREATE DEFINER=CURRENT_USER TRIGGER `personal_before_upd_tr_new` BEFORE UPDATE ON `personal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +--- a/Database/delete_double_contacts.sql ++++ b/Database/delete_double_contacts.sql +@@ -8,7 +8,7 @@ + DELIMITER ;; + + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `double_contact`() ++CREATE DEFINER=CURRENT_USER PROCEDURE `double_contact`() + NOT DETERMINISTIC + CONTAINS SQL + SQL SECURITY DEFINER +--- a/Database/delete_multi_countchild_history_inital.sql ++++ b/Database/delete_multi_countchild_history_inital.sql +@@ -9,7 +9,7 @@ + DELIMITER ;; + + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_change_initial_ccN`() ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_change_initial_ccN`() + NOT DETERMINISTIC + CONTAINS SQL + SQL SECURITY DEFINER +--- a/Database/find_and_correct_contract_and_place_end_dates.sql ++++ b/Database/find_and_correct_contract_and_place_end_dates.sql +@@ -4,7 +4,7 @@ + + DELIMITER ;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_end_dates`() ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_end_dates`() + NOT DETERMINISTIC + CONTAINS SQL + SQL SECURITY DEFINER +--- a/Database/install_db_2011-06-30.sql ++++ b/Database/install_db_2011-06-30.sql +@@ -136,7 +136,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `address_before_ins_tr` BEFORE INSERT ON `address` ++CREATE DEFINER=CURRENT_USER TRIGGER `address_before_ins_tr` BEFORE INSERT ON `address` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -176,7 +176,7 @@ + + DROP FUNCTION IF EXISTS `encryptValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `encryptValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `encryptValue`( + v TEXT + ) + RETURNS blob +@@ -194,7 +194,7 @@ + + DROP FUNCTION IF EXISTS `createNewXml`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `createNewXml`( ++CREATE DEFINER=CURRENT_USER FUNCTION `createNewXml`( + newValue TEXT + ) + RETURNS blob +@@ -218,7 +218,7 @@ + + DROP FUNCTION IF EXISTS `decryptValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `decryptValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `decryptValue`( + v BLOB + ) + RETURNS blob +@@ -238,7 +238,7 @@ + + DROP FUNCTION IF EXISTS `getXmlValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getXmlValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getXmlValue`( + colName TEXT + ) + RETURNS text CHARSET utf8 +@@ -264,7 +264,7 @@ + + DROP FUNCTION IF EXISTS `setNewXmlValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setNewXmlValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setNewXmlValue`( + newValue TEXT, + colName TEXT + ) +@@ -360,7 +360,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `person_data_before_ins_tr_new` BEFORE INSERT ON `person_data` ++CREATE DEFINER=CURRENT_USER TRIGGER `person_data_before_ins_tr_new` BEFORE INSERT ON `person_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -404,7 +404,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `user_before_ins_tr` BEFORE INSERT ON `user` ++CREATE DEFINER=CURRENT_USER TRIGGER `user_before_ins_tr` BEFORE INSERT ON `user` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -414,7 +414,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `user_before_upd_tr` BEFORE UPDATE ON `user` ++CREATE DEFINER=CURRENT_USER TRIGGER `user_before_upd_tr` BEFORE UPDATE ON `user` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -453,7 +453,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `personal_before_ins_tr_new` BEFORE INSERT ON `personal` ++CREATE DEFINER=CURRENT_USER TRIGGER `personal_before_ins_tr_new` BEFORE INSERT ON `personal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -467,7 +467,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `personal_before_upd_tr_new` BEFORE UPDATE ON `personal` ++CREATE DEFINER=CURRENT_USER TRIGGER `personal_before_upd_tr_new` BEFORE UPDATE ON `personal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -509,7 +509,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `agb_before_ins_tr_new` BEFORE INSERT ON `agb` ++CREATE DEFINER=CURRENT_USER TRIGGER `agb_before_ins_tr_new` BEFORE INSERT ON `agb` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -520,7 +520,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `agb_before_upd_tr_new` BEFORE UPDATE ON `agb` ++CREATE DEFINER=CURRENT_USER TRIGGER `agb_before_upd_tr_new` BEFORE UPDATE ON `agb` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -570,7 +570,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `carrier_before_ins_tr_new` BEFORE INSERT ON `carrier` ++CREATE DEFINER=CURRENT_USER TRIGGER `carrier_before_ins_tr_new` BEFORE INSERT ON `carrier` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -581,7 +581,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `carrier_before_upd_tr_new` BEFORE UPDATE ON `carrier` ++CREATE DEFINER=CURRENT_USER TRIGGER `carrier_before_upd_tr_new` BEFORE UPDATE ON `carrier` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -619,7 +619,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `institute_before_ins_tr_new` BEFORE INSERT ON `institute` ++CREATE DEFINER=CURRENT_USER TRIGGER `institute_before_ins_tr_new` BEFORE INSERT ON `institute` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -630,7 +630,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `institute_before_upd_tr_new` BEFORE UPDATE ON `institute` ++CREATE DEFINER=CURRENT_USER TRIGGER `institute_before_upd_tr_new` BEFORE UPDATE ON `institute` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -745,7 +745,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `care_time_before_ins_tr1` BEFORE INSERT ON `care_time` ++CREATE DEFINER=CURRENT_USER TRIGGER `care_time_before_ins_tr1` BEFORE INSERT ON `care_time` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -756,7 +756,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `care_time_before_upd_tr` BEFORE UPDATE ON `care_time` ++CREATE DEFINER=CURRENT_USER TRIGGER `care_time_before_upd_tr` BEFORE UPDATE ON `care_time` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -986,7 +986,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_before_ins_tr_new` BEFORE INSERT ON `child` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_before_ins_tr_new` BEFORE INSERT ON `child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -997,7 +997,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_before_upd_tr` BEFORE UPDATE ON `child` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_before_upd_tr` BEFORE UPDATE ON `child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1098,7 +1098,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `payer_before_ins_tr_new` BEFORE INSERT ON `payer` ++CREATE DEFINER=CURRENT_USER TRIGGER `payer_before_ins_tr_new` BEFORE INSERT ON `payer` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1108,7 +1108,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `payer_before_upd_tr` BEFORE UPDATE ON `payer` ++CREATE DEFINER=CURRENT_USER TRIGGER `payer_before_upd_tr` BEFORE UPDATE ON `payer` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1178,7 +1178,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contract_before_ins_tr_new` BEFORE INSERT ON `contract` ++CREATE DEFINER=CURRENT_USER TRIGGER `contract_before_ins_tr_new` BEFORE INSERT ON `contract` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1376,7 +1376,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contact_before_ins_tr_new` BEFORE INSERT ON `contact` ++CREATE DEFINER=CURRENT_USER TRIGGER `contact_before_ins_tr_new` BEFORE INSERT ON `contact` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1389,7 +1389,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contact_before_upd_tr_new` BEFORE UPDATE ON `contact` ++CREATE DEFINER=CURRENT_USER TRIGGER `contact_before_upd_tr_new` BEFORE UPDATE ON `contact` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1599,7 +1599,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `certificate_before_ins_tr_new` BEFORE INSERT ON `certificate` ++CREATE DEFINER=CURRENT_USER TRIGGER `certificate_before_ins_tr_new` BEFORE INSERT ON `certificate` + FOR EACH ROW + BEGIN + +@@ -1615,7 +1615,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `certificate_before_upd_tr_new` BEFORE UPDATE ON `certificate` ++CREATE DEFINER=CURRENT_USER TRIGGER `certificate_before_upd_tr_new` BEFORE UPDATE ON `certificate` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1690,7 +1690,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_eat_meal_before_ins_tr_new` BEFORE INSERT ON `child_eat_meal` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_eat_meal_before_ins_tr_new` BEFORE INSERT ON `child_eat_meal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1720,7 +1720,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_has_child_as_sibling_before_ins_tr_new` BEFORE INSERT ON `child_has_child_as_sibling` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_has_child_as_sibling_before_ins_tr_new` BEFORE INSERT ON `child_has_child_as_sibling` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1730,7 +1730,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_has_child_as_sibling_before_upd_tr_new` BEFORE UPDATE ON `child_has_child_as_sibling` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_has_child_as_sibling_before_upd_tr_new` BEFORE UPDATE ON `child_has_child_as_sibling` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1767,7 +1767,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `doctor_before_ins_tr` BEFORE INSERT ON `doctor` ++CREATE DEFINER=CURRENT_USER TRIGGER `doctor_before_ins_tr` BEFORE INSERT ON `doctor` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1781,7 +1781,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `doctor_before_upd_tr` BEFORE UPDATE ON `doctor` ++CREATE DEFINER=CURRENT_USER TRIGGER `doctor_before_upd_tr` BEFORE UPDATE ON `doctor` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1884,7 +1884,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_tc_data_before_ins_tr_new` BEFORE INSERT ON `child_tc_data` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_tc_data_before_ins_tr_new` BEFORE INSERT ON `child_tc_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1920,7 +1920,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_trusted_before_ins_tr_new` BEFORE INSERT ON `child_trusted` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_trusted_before_ins_tr_new` BEFORE INSERT ON `child_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1930,7 +1930,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_trusted_before_upd_tr` BEFORE UPDATE ON `child_trusted` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_trusted_before_upd_tr` BEFORE UPDATE ON `child_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1978,7 +1978,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `partner_firm_before_ins_tr_new` BEFORE INSERT ON `partner_firm` ++CREATE DEFINER=CURRENT_USER TRIGGER `partner_firm_before_ins_tr_new` BEFORE INSERT ON `partner_firm` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2045,7 +2045,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contract_finance_data_before_ins_tr_new` BEFORE INSERT ON `contract_finance_data` ++CREATE DEFINER=CURRENT_USER TRIGGER `contract_finance_data_before_ins_tr_new` BEFORE INSERT ON `contract_finance_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2059,7 +2059,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contract_finance_data_before_upd_tr_new` BEFORE UPDATE ON `contract_finance_data` ++CREATE DEFINER=CURRENT_USER TRIGGER `contract_finance_data_before_upd_tr_new` BEFORE UPDATE ON `contract_finance_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2149,7 +2149,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_before_ins_tr_new` BEFORE INSERT ON `custody` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_before_ins_tr_new` BEFORE INSERT ON `custody` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2271,7 +2271,7 @@ + + DROP FUNCTION IF EXISTS `func_next_id`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_next_id`() ++CREATE DEFINER=CURRENT_USER FUNCTION `func_next_id`() + RETURNS bigint(20) + DETERMINISTIC + CONTAINS SQL +@@ -2288,7 +2288,7 @@ + + DROP FUNCTION IF EXISTS `setBooleanValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBooleanValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBooleanValue`( + valueid BIGINT(20), + setValue TINYINT(1), + validDate DATE, +@@ -2364,7 +2364,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contract_has_custody_as_contractpartner_before_ins_tr` BEFORE INSERT ON `contract_has_custody_as_contractpartner` ++CREATE DEFINER=CURRENT_USER TRIGGER `contract_has_custody_as_contractpartner_before_ins_tr` BEFORE INSERT ON `contract_has_custody_as_contractpartner` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2398,7 +2398,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contract_has_meal_before_ins_tr` BEFORE INSERT ON `contract_has_meal` ++CREATE DEFINER=CURRENT_USER TRIGGER `contract_has_meal_before_ins_tr` BEFORE INSERT ON `contract_has_meal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2449,7 +2449,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `group_before_ins_tr_new` BEFORE INSERT ON `institute_group` ++CREATE DEFINER=CURRENT_USER TRIGGER `group_before_ins_tr_new` BEFORE INSERT ON `institute_group` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2464,7 +2464,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `group_before_upd_tr_new` BEFORE UPDATE ON `institute_group` ++CREATE DEFINER=CURRENT_USER TRIGGER `group_before_upd_tr_new` BEFORE UPDATE ON `institute_group` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2509,7 +2509,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `place_before_ins_tr_new` BEFORE INSERT ON `place` ++CREATE DEFINER=CURRENT_USER TRIGGER `place_before_ins_tr_new` BEFORE INSERT ON `place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2522,7 +2522,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `place_before_upd_tr_new` BEFORE UPDATE ON `place` ++CREATE DEFINER=CURRENT_USER TRIGGER `place_before_upd_tr_new` BEFORE UPDATE ON `place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2639,7 +2639,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_has_child_before_ins_tr_new` BEFORE INSERT ON `custody_has_child` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_has_child_before_ins_tr_new` BEFORE INSERT ON `custody_has_child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2649,7 +2649,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_has_child_before_upd_tr_new` BEFORE UPDATE ON `custody_has_child` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_has_child_before_upd_tr_new` BEFORE UPDATE ON `custody_has_child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2679,7 +2679,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_work_before_ins_tr` BEFORE INSERT ON `custody_work` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_work_before_ins_tr` BEFORE INSERT ON `custody_work` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2695,7 +2695,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_work_before_upd_tr` BEFORE UPDATE ON `custody_work` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_work_before_upd_tr` BEFORE UPDATE ON `custody_work` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2807,7 +2807,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_trusted_before_ins_tr_new` BEFORE INSERT ON `custody_trusted` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_trusted_before_ins_tr_new` BEFORE INSERT ON `custody_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2819,7 +2819,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_trusted_before_upd_tr_new` BEFORE UPDATE ON `custody_trusted` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_trusted_before_upd_tr_new` BEFORE UPDATE ON `custody_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2915,7 +2915,7 @@ + DROP TRIGGER IF EXISTS `database_updates_before_ins_tr`; + + DELIMITER $$ +-CREATE DEFINER = 'root'@'localhost' TRIGGER `database_updates_before_ins_tr` BEFORE INSERT ON `database_updates` ++CREATE DEFINER=CURRENT_USER TRIGGER `database_updates_before_ins_tr` BEFORE INSERT ON `database_updates` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2946,7 +2946,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `disability_before_ins_tr_new` BEFORE INSERT ON `disability` ++CREATE DEFINER=CURRENT_USER TRIGGER `disability_before_ins_tr_new` BEFORE INSERT ON `disability` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2959,7 +2959,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `disability_before_upd_tr_new` BEFORE UPDATE ON `disability` ++CREATE DEFINER=CURRENT_USER TRIGGER `disability_before_upd_tr_new` BEFORE UPDATE ON `disability` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3224,7 +3224,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `emergency_person_before_ins_tr` BEFORE INSERT ON `emergency_person` ++CREATE DEFINER=CURRENT_USER TRIGGER `emergency_person_before_ins_tr` BEFORE INSERT ON `emergency_person` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3239,7 +3239,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `emergency_person_before_upd_tr` BEFORE UPDATE ON `emergency_person` ++CREATE DEFINER=CURRENT_USER TRIGGER `emergency_person_before_upd_tr` BEFORE UPDATE ON `emergency_person` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3455,7 +3455,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `religion_before_ins_tr_new` BEFORE INSERT ON `religion` ++CREATE DEFINER=CURRENT_USER TRIGGER `religion_before_ins_tr_new` BEFORE INSERT ON `religion` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3464,7 +3464,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `religion_before_upd_tr_new` BEFORE UPDATE ON `religion` ++CREATE DEFINER=CURRENT_USER TRIGGER `religion_before_upd_tr_new` BEFORE UPDATE ON `religion` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3696,7 +3696,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `institute_has_care_time_before_ins_tr` BEFORE INSERT ON `institute_has_care_time` ++CREATE DEFINER=CURRENT_USER TRIGGER `institute_has_care_time_before_ins_tr` BEFORE INSERT ON `institute_has_care_time` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3796,7 +3796,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `insttitute_has_institute_type_before_ins_tr_new` BEFORE INSERT ON `institute_has_institute_type` ++CREATE DEFINER=CURRENT_USER TRIGGER `insttitute_has_institute_type_before_ins_tr_new` BEFORE INSERT ON `institute_has_institute_type` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3809,7 +3809,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `insttitute_has_institute_type_before_upd_tr_new` BEFORE UPDATE ON `institute_has_institute_type` ++CREATE DEFINER=CURRENT_USER TRIGGER `insttitute_has_institute_type_before_upd_tr_new` BEFORE UPDATE ON `institute_has_institute_type` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3952,7 +3952,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `prereservationlist_entry_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `prereservationlist_entry_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3968,7 +3968,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `prereservationlist_entry_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `prereservationlist_entry_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4314,7 +4314,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `portal_prereservationlist_entry_before_ins_tr` BEFORE INSERT ON `portal_prereservationlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `portal_prereservationlist_entry_before_ins_tr` BEFORE INSERT ON `portal_prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4331,7 +4331,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `portal_prereservationlist_entry_before_upd_tr` BEFORE UPDATE ON `portal_prereservationlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `portal_prereservationlist_entry_before_upd_tr` BEFORE UPDATE ON `portal_prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4448,7 +4448,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `prereservationlist_entry_has_place_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry_has_place` ++CREATE DEFINER=CURRENT_USER TRIGGER `prereservationlist_entry_has_place_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry_has_place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4458,7 +4458,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `prereservationlist_entry_has_place_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry_has_place` ++CREATE DEFINER=CURRENT_USER TRIGGER `prereservationlist_entry_has_place_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry_has_place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4531,7 +4531,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `presentlist_entry_before_ins_tr_new` BEFORE INSERT ON `presentlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `presentlist_entry_before_ins_tr_new` BEFORE INSERT ON `presentlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4544,7 +4544,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `presentlist_entry_before_upd_tr_new` BEFORE UPDATE ON `presentlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `presentlist_entry_before_upd_tr_new` BEFORE UPDATE ON `presentlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4626,7 +4626,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `saved_contract_before_ins_tr_new` BEFORE INSERT ON `saved_contract` ++CREATE DEFINER=CURRENT_USER TRIGGER `saved_contract_before_ins_tr_new` BEFORE INSERT ON `saved_contract` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4643,7 +4643,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `saved_contract_before_upd_tr_new` BEFORE UPDATE ON `saved_contract` ++CREATE DEFINER=CURRENT_USER TRIGGER `saved_contract_before_upd_tr_new` BEFORE UPDATE ON `saved_contract` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4798,7 +4798,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `statistic_taken_places_before_ins_tr` BEFORE INSERT ON `statistic_taken_places` ++CREATE DEFINER=CURRENT_USER TRIGGER `statistic_taken_places_before_ins_tr` BEFORE INSERT ON `statistic_taken_places` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4809,7 +4809,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `statistic_taken_places_before_upd_tr` BEFORE UPDATE ON `statistic_taken_places` ++CREATE DEFINER=CURRENT_USER TRIGGER `statistic_taken_places_before_upd_tr` BEFORE UPDATE ON `statistic_taken_places` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4840,7 +4840,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `user_has_tc_message_folder_before_ins_tr` BEFORE INSERT ON `user_has_tc_message_folder` ++CREATE DEFINER=CURRENT_USER TRIGGER `user_has_tc_message_folder_before_ins_tr` BEFORE INSERT ON `user_has_tc_message_folder` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4879,7 +4879,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `tc_message_before_ins_tr` BEFORE INSERT ON `tc_message` ++CREATE DEFINER=CURRENT_USER TRIGGER `tc_message_before_ins_tr` BEFORE INSERT ON `tc_message` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4906,7 +4906,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `trustcenter_before_ins_tr_new` BEFORE INSERT ON `trustcenter` ++CREATE DEFINER=CURRENT_USER TRIGGER `trustcenter_before_ins_tr_new` BEFORE INSERT ON `trustcenter` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -5094,7 +5094,7 @@ + + DROP FUNCTION IF EXISTS `func_count_prereservations_to_child`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_count_prereservations_to_child`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_count_prereservations_to_child`( + childIDValue INTEGER(11), + instituteTypeIDValue INTEGER(11), + getOnlyRejectedPrereservations TINYINT(1) +@@ -5182,7 +5182,7 @@ + + DROP FUNCTION IF EXISTS `func_count_sibling`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_count_sibling`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_count_sibling`( + childID INTEGER(11) + ) + RETURNS smallint(4) +@@ -5231,7 +5231,7 @@ + + DROP FUNCTION IF EXISTS `getBlobStringValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBlobStringValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBlobStringValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -5291,7 +5291,7 @@ + + DROP FUNCTION IF EXISTS `func_double_name_person_block_ok`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_double_name_person_block_ok`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_double_name_person_block_ok`( + typeValue ENUM('child','custody'), + lastName VARCHAR(255), + firstName3Chars VARCHAR(3) +@@ -5340,7 +5340,7 @@ + + DROP FUNCTION IF EXISTS `getBeginAndEndDate`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBeginAndEndDate`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBeginAndEndDate`( + my_id INTEGER(11), + lookTo DATETIME + ) +@@ -5368,7 +5368,7 @@ + + DROP FUNCTION IF EXISTS `func_get_actual_contract_has_place_ID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_actual_contract_has_place_ID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_actual_contract_has_place_ID`( + contractIDValue INTEGER(11), + lookToDate DATE + ) +@@ -5424,7 +5424,7 @@ + + DROP FUNCTION IF EXISTS `func_get_all_hours_from_care`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_all_hours_from_care`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_all_hours_from_care`( + hoursValue DECIMAL(3,1), + morningValue DECIMAL(3,1), + afternoonValue DECIMAL(3,1) +@@ -5461,7 +5461,7 @@ + + DROP FUNCTION IF EXISTS `func_get_care_timeIDs_by_prereservation`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_care_timeIDs_by_prereservation`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_care_timeIDs_by_prereservation`( + preresID INTEGER(11) + ) + RETURNS text CHARSET utf8 +@@ -5505,7 +5505,7 @@ + + DROP FUNCTION IF EXISTS `func_get_care_time_description_short`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_care_time_description_short`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_care_time_description_short`( + caretimeDescription VARCHAR(255), + additionalPaymentType INTEGER(11) + ) +@@ -5579,7 +5579,7 @@ + + DROP FUNCTION IF EXISTS `func_get_changes_to_contract_by_overview`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_changes_to_contract_by_overview`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_changes_to_contract_by_overview`( + contractIDValue INTEGER(11), + printedDatetimeValue DATETIME, + contractInCarrierIDValue INTEGER(11) +@@ -7177,7 +7177,7 @@ + + DROP FUNCTION IF EXISTS `getDateValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getDateValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getDateValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -7235,7 +7235,7 @@ + + DROP FUNCTION IF EXISTS `func_get_contracts_institute_name_by_childID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_contracts_institute_name_by_childID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_contracts_institute_name_by_childID`( + childIDValue INTEGER(11) + ) + RETURNS varchar(255) CHARSET utf8 +@@ -7310,7 +7310,7 @@ + + DROP FUNCTION IF EXISTS `func_get_contracts_institute_name_by_custodyID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_contracts_institute_name_by_custodyID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_contracts_institute_name_by_custodyID`( + custodyIDValue INTEGER(11) + ) + RETURNS varchar(255) CHARSET utf8 +@@ -7389,7 +7389,7 @@ + + DROP FUNCTION IF EXISTS `func_get_contract_has_place_ID_at_time`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_contract_has_place_ID_at_time`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_contract_has_place_ID_at_time`( + contractIDValue INTEGER(11), + lookTo DATE + ) +@@ -7428,7 +7428,7 @@ + + DROP FUNCTION IF EXISTS `func_get_contract_instituteID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_contract_instituteID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_contract_instituteID`( + contractValue INTEGER(11) + ) + RETURNS int(11) +@@ -7457,7 +7457,7 @@ + + DROP FUNCTION IF EXISTS `func_get_contract_instituteIDs_from_sibling`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_contract_instituteIDs_from_sibling`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_contract_instituteIDs_from_sibling`( + childIDValue INTEGER(11) + ) + RETURNS varchar(255) CHARSET utf8 +@@ -7508,7 +7508,7 @@ + + DROP FUNCTION IF EXISTS `func_get_count_active_places_in_group`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_count_active_places_in_group`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_count_active_places_in_group`( + groupIDValue INTEGER(11) + ) + RETURNS smallint(4) +@@ -7526,7 +7526,7 @@ + + DROP FUNCTION IF EXISTS `func_get_count_allocations_by_place`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_count_allocations_by_place`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_count_allocations_by_place`( + placeIDValue INTEGER(11) + ) + RETURNS tinyint(4) +@@ -7550,7 +7550,7 @@ + + DROP FUNCTION IF EXISTS `func_get_created_places_in_group`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_created_places_in_group`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_created_places_in_group`( + groupIDValue INTEGER(11) + ) + RETURNS int(11) +@@ -7568,7 +7568,7 @@ + + DROP FUNCTION IF EXISTS `func_get_crypt_id`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_crypt_id`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_crypt_id`( + colName VaRCHAR(255) + ) + RETURNS varchar(255) CHARSET utf8 +@@ -7587,7 +7587,7 @@ + + DROP FUNCTION IF EXISTS `func_get_custodies_by_child`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_custodies_by_child`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_custodies_by_child`( + childIDValue INTEGER(11) + ) + RETURNS text CHARSET utf8 +@@ -7635,7 +7635,7 @@ + + DROP FUNCTION IF EXISTS `getContractEndDate`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getContractEndDate`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getContractEndDate`( + contractIDValue INTEGER(11), + lookTo DATETIME + ) +@@ -7685,7 +7685,7 @@ + + DROP FUNCTION IF EXISTS `getContractStartDate`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getContractStartDate`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getContractStartDate`( + contractIDValue INTEGER(11), + lookTo DATETIME + ) +@@ -7739,7 +7739,7 @@ + + DROP FUNCTION IF EXISTS `getValidFrom`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getValidFrom`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getValidFrom`( + contractIDValue INTEGER(11) + ) + RETURNS date +@@ -7766,7 +7766,7 @@ + + DROP FUNCTION IF EXISTS `func_get_not_printed_contract_to_child`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_not_printed_contract_to_child`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_not_printed_contract_to_child`( + childIDValue INTEGER(11), + inCarrierID INTEGER(11), + inInstituteID INTEGER(11) +@@ -7834,7 +7834,7 @@ + + DROP FUNCTION IF EXISTS `func_get_not_printed_contract_to_custody`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_not_printed_contract_to_custody`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_not_printed_contract_to_custody`( + custodyValue INTEGER(11), + inCarrierID INTEGER(11), + inInstituteID INTEGER(11) +@@ -7905,7 +7905,7 @@ + + DROP FUNCTION IF EXISTS `func_get_prereservations_institute_name_by_childID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_prereservations_institute_name_by_childID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_prereservations_institute_name_by_childID`( + childIDValue INTEGER(11), + isReserved TINYINT(1) + ) +@@ -8024,7 +8024,7 @@ + + DROP FUNCTION IF EXISTS `func_get_prereservations_institute_name_by_custodyID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_prereservations_institute_name_by_custodyID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_prereservations_institute_name_by_custodyID`( + custodyIDValue INTEGER(11), + isReserved TINYINT(1) + ) +@@ -8143,7 +8143,7 @@ + + DROP FUNCTION IF EXISTS `func_get_prereservation_status_color`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_prereservation_status_color`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_prereservation_status_color`( + preStatus VARCHAR(255), + rejectionReason VARCHAR(255), + reservationRemoveReason VARCHAR(255), +@@ -8223,7 +8223,7 @@ + + DROP FUNCTION IF EXISTS `getLastContractPrintedDatetime`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getLastContractPrintedDatetime`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getLastContractPrintedDatetime`( + contractIDValue INTEGER(11), + lookTo DATETIME + ) +@@ -8257,7 +8257,7 @@ + + DROP FUNCTION IF EXISTS `getStringValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getStringValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getStringValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -8315,7 +8315,7 @@ + + DROP FUNCTION IF EXISTS `func_get_print_all_changes`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_print_all_changes`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_print_all_changes`( + contractIDValue INTEGER(11), + childIDValue INTEGER(11), + custody1IDValue INTEGER(11), +@@ -8730,7 +8730,7 @@ + + DROP FUNCTION IF EXISTS `func_get_recipient`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_recipient`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_recipient`( + financeDataValue INTEGER(11) + ) + RETURNS varchar(255) CHARSET utf8 +@@ -8758,7 +8758,7 @@ + + DROP FUNCTION IF EXISTS `func_get_siblings_by_child`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_siblings_by_child`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_siblings_by_child`( + siblingIDValue INTEGER(11) + ) + RETURNS text CHARSET utf8 +@@ -8829,7 +8829,7 @@ + + DROP FUNCTION IF EXISTS `func_get_user_carrierID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_user_carrierID`() ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_user_carrierID`() + RETURNS int(11) + DETERMINISTIC + CONTAINS SQL +@@ -8846,7 +8846,7 @@ + + DROP FUNCTION IF EXISTS `func_get_user_instituteID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_user_instituteID`() ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_user_instituteID`() + RETURNS int(11) + DETERMINISTIC + CONTAINS SQL +@@ -8863,7 +8863,7 @@ + + DROP FUNCTION IF EXISTS `func_has_child_contract`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_has_child_contract`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_has_child_contract`( + childValue INTEGER(11), + instituteTypeIDValue INTEGER(11), + carrierIDValue INTEGER(11) +@@ -8979,7 +8979,7 @@ + + DROP FUNCTION IF EXISTS `func_is_address_in_institute_own_township`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_is_address_in_institute_own_township`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_is_address_in_institute_own_township`( + instituteIDValue INTEGER(11), + zipValue VARCHAR(255), + cityValue VARCHAR(255), +@@ -9019,7 +9019,7 @@ + + DROP FUNCTION IF EXISTS `getBlobDatetimeValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBlobDatetimeValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBlobDatetimeValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9077,7 +9077,7 @@ + + DROP FUNCTION IF EXISTS `getBlobDateValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBlobDateValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBlobDateValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9136,7 +9136,7 @@ + + DROP FUNCTION IF EXISTS `getBlobIntValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBlobIntValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBlobIntValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9195,7 +9195,7 @@ + + DROP FUNCTION IF EXISTS `getBlobTextValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBlobTextValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBlobTextValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9253,7 +9253,7 @@ + + DROP FUNCTION IF EXISTS `getBooleanValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBooleanValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBooleanValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9311,7 +9311,7 @@ + + DROP FUNCTION IF EXISTS `getContractPartner`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getContractPartner`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getContractPartner`( + contractIDValue BIGINT, + numberValue INTEGER(11), + validTo DATE, +@@ -9350,7 +9350,7 @@ + + DROP FUNCTION IF EXISTS `getDatetimeValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getDatetimeValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getDatetimeValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9408,7 +9408,7 @@ + + DROP FUNCTION IF EXISTS `getDecValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getDecValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getDecValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9466,7 +9466,7 @@ + + DROP FUNCTION IF EXISTS `getFulltimeEquivalentValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getFulltimeEquivalentValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getFulltimeEquivalentValue`( + careTimeIDValue INTEGER(11), + fevType ENUM('basic','over','integrated','additional'), + validTo DATE, +@@ -9510,7 +9510,7 @@ + + DROP FUNCTION IF EXISTS `isOverCare`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `isOverCare`( ++CREATE DEFINER=CURRENT_USER FUNCTION `isOverCare`( + hoursAfternoonValue DECIMAL(3,1), + hoursPerDayValue DECIMAL(3,1), + hoursMorningValue DECIMAL(3,1) +@@ -9555,7 +9555,7 @@ + + DROP FUNCTION IF EXISTS `getFulltimeEquivalentValueSum`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getFulltimeEquivalentValueSum`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getFulltimeEquivalentValueSum`( + sumChildsValue FLOAT, + isIntegratedValue TINYINT(1), + fevBasicValue DECIMAL(15,5), +@@ -9607,7 +9607,7 @@ + + DROP FUNCTION IF EXISTS `getIntValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getIntValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getIntValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME, +@@ -9666,7 +9666,7 @@ + + DROP FUNCTION IF EXISTS `getNextGroupName`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getNextGroupName`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getNextGroupName`( + contractIDValue INTEGER(11), + dayValue DATE + ) +@@ -9699,7 +9699,7 @@ + + DROP FUNCTION IF EXISTS `getOrderPositionToInstituteTypeID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getOrderPositionToInstituteTypeID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getOrderPositionToInstituteTypeID`( + instTypeIDValue INTEGER(11) + ) + RETURNS int(11) +@@ -9718,7 +9718,7 @@ + + DROP FUNCTION IF EXISTS `getServiceHoursSumByFev`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getServiceHoursSumByFev`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getServiceHoursSumByFev`( + dateValue DATE, + sumChildsValue FLOAT, + isIntegratedValue TINYINT(1), +@@ -9823,7 +9823,7 @@ + + DROP FUNCTION IF EXISTS `hasContractUnconfirmedChanges`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `hasContractUnconfirmedChanges`( ++CREATE DEFINER=CURRENT_USER FUNCTION `hasContractUnconfirmedChanges`( + contractIDValue INTEGER(11) + ) + RETURNS tinyint(1) +@@ -9851,7 +9851,7 @@ + + DROP FUNCTION IF EXISTS `months_between`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `months_between`( ++CREATE DEFINER=CURRENT_USER FUNCTION `months_between`( + olderDate DATE, + newerDate DATE + ) +@@ -9900,7 +9900,7 @@ + + DROP FUNCTION IF EXISTS `setBlobDatetimeValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBlobDatetimeValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBlobDatetimeValue`( + valueid BIGINT(20), + setValue DATETIME, + validDate DATE, +@@ -9958,7 +9958,7 @@ + + DROP FUNCTION IF EXISTS `setBlobDateValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBlobDateValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBlobDateValue`( + valueid BIGINT(20), + setValue DATE, + validDate DATE, +@@ -10015,7 +10015,7 @@ + + DROP FUNCTION IF EXISTS `setBlobIntValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBlobIntValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBlobIntValue`( + valueid BIGINT(20), + setValue INTEGER(11), + validDate DATE, +@@ -10073,7 +10073,7 @@ + + DROP FUNCTION IF EXISTS `setBlobStringValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBlobStringValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBlobStringValue`( + valueid BIGINT(20), + setValue VARCHAR(255), + validDate DATE, +@@ -10131,7 +10131,7 @@ + + DROP FUNCTION IF EXISTS `setBlobTextValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBlobTextValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBlobTextValue`( + valueid BIGINT(20), + setValue TEXT, + validDate DATE, +@@ -10189,7 +10189,7 @@ + + DROP FUNCTION IF EXISTS `setDatetimeValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setDatetimeValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setDatetimeValue`( + valueid BIGINT(20), + setValue DATETIME, + validDate DATE, +@@ -10246,7 +10246,7 @@ + + DROP FUNCTION IF EXISTS `setDateValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setDateValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setDateValue`( + valueid BIGINT(20), + setValue DATE, + validDate DATE, +@@ -10304,7 +10304,7 @@ + + DROP FUNCTION IF EXISTS `setDecValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setDecValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setDecValue`( + valueid BIGINT(20), + setValue DECIMAL(15,5), + validDate DATE, +@@ -10364,7 +10364,7 @@ + + DROP FUNCTION IF EXISTS `setIntValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setIntValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setIntValue`( + valueid BIGINT(20), + setValue INTEGER(11), + validDate DATE, +@@ -10422,7 +10422,7 @@ + + DROP FUNCTION IF EXISTS `setStringValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setStringValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setStringValue`( + valueid BIGINT(20), + setValue VARCHAR(255), + validDate DATE, +@@ -10484,7 +10484,7 @@ + + DROP PROCEDURE IF EXISTS `proc_calculation_feeundependent_payables`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_calculation_feeundependent_payables`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_calculation_feeundependent_payables`( + IN clientIDValue INTEGER(11), + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), +@@ -10923,7 +10923,7 @@ + + DROP PROCEDURE IF EXISTS `proc_change_contract_end_date`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_change_contract_end_date`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_change_contract_end_date`( + IN cryptContractIDValue VARCHAR(255), + IN endDateValue DATE + ) +@@ -10981,7 +10981,7 @@ + + DROP PROCEDURE IF EXISTS `proc_child_double_occupancy`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_child_double_occupancy`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_child_double_occupancy`( + IN year INTEGER(11) + ) + NOT DETERMINISTIC +@@ -11405,7 +11405,7 @@ + + DROP PROCEDURE IF EXISTS `proc_child_older_max_age`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_child_older_max_age`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_child_older_max_age`( + IN lookDateValue DATE + ) + NOT DETERMINISTIC +@@ -11452,7 +11452,7 @@ + + DROP PROCEDURE IF EXISTS `proc_clear_acl`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_clear_acl`() ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_clear_acl`() + NOT DETERMINISTIC + CONTAINS SQL + SQL SECURITY DEFINER +@@ -11479,7 +11479,7 @@ + + DROP PROCEDURE IF EXISTS `proc_clear_acl_action_deny_by_user`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_clear_acl_action_deny_by_user`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_clear_acl_action_deny_by_user`( + IN userIDValue INTEGER(11) + ) + NOT DETERMINISTIC +@@ -11528,7 +11528,7 @@ + + DROP PROCEDURE IF EXISTS `proc_correct_multicreated_child`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_correct_multicreated_child`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_correct_multicreated_child`( + IN showSelects TINYINT, + IN cryptMasterChild TEXT, + IN cryptSlave1 TEXT, +@@ -11989,7 +11989,7 @@ + + DROP PROCEDURE IF EXISTS `proc_correct_multicreated_custody`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_correct_multicreated_custody`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_correct_multicreated_custody`( + IN showSelects TINYINT(1), + IN cryptMasterCustody TEXT, + IN cryptSlave1 TEXT, +@@ -12376,7 +12376,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_carrier`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_carrier`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_carrier`( + IN carrierCryptIDValue VARCHAR(255) + ) + NOT DETERMINISTIC +@@ -12544,7 +12544,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_contract`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_contract`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_contract`( + IN contractIDValue INTEGER(11), + IN cryptContractIDValue VARCHAR(255) + ) +@@ -12666,7 +12666,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_custody`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_custody`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_custody`( + IN custodyValue INTEGER(11) + ) + NOT DETERMINISTIC +@@ -12844,7 +12844,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_prereservationlist_entry`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_prereservationlist_entry`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_prereservationlist_entry`( + IN prereservationlistEntryIDValue TEXT + ) + NOT DETERMINISTIC +@@ -12922,7 +12922,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_child`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_child`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_child`( + IN childValue INTEGER(11), + IN deleteChild BOOLEAN, + IN deleteContract BOOLEAN, +@@ -13300,7 +13300,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_doctor`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_doctor`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_doctor`( + IN doctorIDValue TEXT + ) + NOT DETERMINISTIC +@@ -13426,7 +13426,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_group`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_group`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_group`( + IN groupCryptIDValue VARCHAR(255) + ) + NOT DETERMINISTIC +@@ -13498,7 +13498,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_institute`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_institute`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_institute`( + IN instituteIDValue TEXT + ) + NOT DETERMINISTIC +@@ -13791,7 +13791,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_user_has_role`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_user_has_role`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_user_has_role`( + IN userIDValue INTEGER(11), + IN roleIDValue INTEGER(11) + ) +@@ -13842,7 +13842,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_all_contract_changes_in_period`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_all_contract_changes_in_period`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_all_contract_changes_in_period`( + IN contractIDValue INTEGER(11), + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), +@@ -16130,7 +16130,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_changes_info_to_contract_by_printedDatetime`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_changes_info_to_contract_by_printedDatetime`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_changes_info_to_contract_by_printedDatetime`( + IN contractIDValue INTEGER(11), + IN printedDatetime DATETIME, + IN printedDatetimeLast DATETIME +@@ -19944,7 +19944,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_child_custody_data_changes_iO_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_child_custody_data_changes_iO_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_child_custody_data_changes_iO_anke`( + IN personType ENUM('child','custody'), + IN personID INTEGER(11), + IN startDate DATE, +@@ -21064,7 +21064,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_child_custody_data_changes_iO_end_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_child_custody_data_changes_iO_end_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_child_custody_data_changes_iO_end_anke`( + IN personType ENUM('child','custody'), + IN personID INTEGER(11), + IN startDate DATE, +@@ -22159,7 +22159,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_child_custody_data_changes_vF_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_child_custody_data_changes_vF_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_child_custody_data_changes_vF_anke`( + IN personType ENUM('child','custody'), + IN personID INTEGER(11), + IN startDate DATE, +@@ -23326,7 +23326,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_contract_data_changes_iO_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_contract_data_changes_iO_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_contract_data_changes_iO_anke`( + IN contractIDValue INTEGER(11), + IN startDate DATE, + IN endDate DATE +@@ -23834,7 +23834,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_contract_data_changes_iO_end_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_contract_data_changes_iO_end_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_contract_data_changes_iO_end_anke`( + IN contractIDValue INTEGER, + IN startDate DATE, + IN endDate DATE +@@ -24368,7 +24368,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_contract_data_changes_vF_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_contract_data_changes_vF_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_contract_data_changes_vF_anke`( + IN contractIDValue INTEGER(11), + IN startDate DATE, + IN endDate DATE +@@ -24918,7 +24918,7 @@ + + DROP VIEW IF EXISTS `view_user`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_user` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_user` AS + select + `getBlobStringValue`(`pd`.`firstName`,NULL,NULL) AS `person_data_firstName`, + `getBlobStringValue`(`pd`.`lastName`,NULL,NULL) AS `person_data_lastName`, +@@ -24965,7 +24965,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_history_entries_for_id`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_history_entries_for_id`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_history_entries_for_id`( + IN cryptHistoryIDValue TEXT + ) + NOT DETERMINISTIC +@@ -25215,7 +25215,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_carrier`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_carrier`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_carrier`( + IN carrierIDValue TEXT, + IN nameValue VARCHAR(255), + IN hasAddressValue TINYINT(1), +@@ -25349,7 +25349,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_child`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_child`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_child`( + IN childIDValue TEXT, + IN hashValue TEXT, + IN streetValue VARCHAR(255), +@@ -25621,7 +25621,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_child_tc_data`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_child_tc_data`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_child_tc_data`( + IN childIDValue TEXT, + IN healthInsuranceValue TEXT, + IN healthInsuranceNoValue TEXT, +@@ -25711,7 +25711,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_contract`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_contract`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_contract`( + IN cryptContractIDValue VARCHAR(255), + IN childIDValue INTEGER(11), + IN payerIDValue INTEGER(11), +@@ -25929,7 +25929,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_contract_has_place`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_contract_has_place`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_contract_has_place`( + IN contractIDValue INTEGER(11), + IN cryptPlaceIDValue VARCHAR(255), + IN validFromDateValue DATE, +@@ -26003,7 +26003,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_custody`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_custody`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_custody`( + IN custodyIDValue TEXT, + IN hashValue TEXT, + IN streetValue VARCHAR(255), +@@ -26189,7 +26189,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_custody_work`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_custody_work`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_custody_work`( + IN custodyIDValue TEXT, + IN workNameValue TEXT, + IN workTypeValue TEXT, +@@ -26376,7 +26376,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_doctor`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_doctor`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_doctor`( + IN doctorIDValue TEXT, + IN childIDValue INTEGER(11), + IN nameValue TEXT, +@@ -26555,7 +26555,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_emergency_person`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_emergency_person`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_emergency_person`( + IN emergencyPersonIDValue TEXT, + IN firstNameValue VARCHAR(255), + IN lastNameValue VARCHAR(255), +@@ -26704,7 +26704,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_fev`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_fev`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_fev`( + IN careTimeIDValue INTEGER(11), + IN basicValue DECIMAL(15,5), + IN overValue DECIMAL(15,5), +@@ -26748,7 +26748,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_group`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_group`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_group`( + IN groupIDValue TEXT, + IN instituteIDValue INTEGER(11), + IN groupNameValue VARCHAR(255), +@@ -26841,7 +26841,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_institute`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_institute`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_institute`( + IN instituteIDValue TEXT, + IN carrierIDValue INTEGER(11), + IN inCarrierFromDateValue DATE, +@@ -27016,7 +27016,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_institute_has_institute_type`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_institute_has_institute_type`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_institute_has_institute_type`( + IN instituteIDValue INTEGER(11), + IN instituteTypeIDValue INTEGER(11), + IN validFromDateValue DATE, +@@ -27151,7 +27151,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_payer`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_payer`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_payer`( + IN payerIDValue INTEGER(11), + IN contributorTypeValue VARCHAR(255), + IN contributorCustodyIDValue INTEGER(11), +@@ -27320,7 +27320,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_prereservationlist_entry`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_prereservationlist_entry`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_prereservationlist_entry`( + IN prereservationlistEntryIDValue TEXT, + IN childIDValue INTEGER(11), + IN setByPortaluserIDValue INTEGER(11), +@@ -27461,7 +27461,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_sibling`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_sibling`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_sibling`( + IN cryptSiblingChildIDValue TEXT, + IN hashValue TEXT, + IN hashValuesCorrectValue TINYINT(1), +@@ -27602,7 +27602,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_user`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_user`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_user`( + IN userIDValue TEXT, + IN loginNameValue VARCHAR(255), + IN passwdValue VARCHAR(255), +@@ -27767,7 +27767,7 @@ + + DROP PROCEDURE IF EXISTS `proc_multicreated_person`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_multicreated_person`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_multicreated_person`( + IN typeValue ENUM('child','custody'), + IN limitBlocksValue INTEGER(11), + IN limitPerPageValue INTEGER(11) +@@ -28070,7 +28070,7 @@ + + DROP PROCEDURE IF EXISTS `proc_print_all_changes`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_print_all_changes`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_print_all_changes`( + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), + IN validFromStartDateValue DATE, +@@ -28162,7 +28162,7 @@ + + DROP PROCEDURE IF EXISTS `proc_print_new_ending_contracts`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_print_new_ending_contracts`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_print_new_ending_contracts`( + IN monthStart DATE, + IN monthEnd DATE, + IN carrierIDValue INTEGER(11), +@@ -28281,7 +28281,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_child_per_age_calc_type_own_ca`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_child_per_age_calc_type_own_ca`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_child_per_age_calc_type_own_ca`( + IN dayValue DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11) +@@ -29682,7 +29682,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_child_per_care_time`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_child_per_care_time`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_child_per_care_time`( + IN monthStart DATE, + IN monthEnd DATE + ) +@@ -29901,7 +29901,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_child_per_care_time2`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_child_per_care_time2`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_child_per_care_time2`( + IN monthStart DATE, + IN monthEnd DATE, + IN mandantIDValue INTEGER(11) +@@ -30134,7 +30134,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_classlevel`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_classlevel`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_classlevel`( + IN dayValue DATE + ) + NOT DETERMINISTIC +@@ -30238,7 +30238,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_contracts_per_month`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_contracts_per_month`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_contracts_per_month`( + IN monthStart DATE, + IN monthEnd DATE, + IN status ENUM('new','start','closed'), +@@ -30378,7 +30378,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_institute_has_child_per_age_and_township`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_institute_has_child_per_age_and_township`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_institute_has_child_per_age_and_township`( + IN dayValue DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), +@@ -31029,7 +31029,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_siblings_outside`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_siblings_outside`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_siblings_outside`( + IN dayValue DATE + ) + NOT DETERMINISTIC +@@ -31216,7 +31216,7 @@ + + DROP PROCEDURE IF EXISTS `proc_update_user_profile`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_update_user_profile`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_update_user_profile`( + IN personalIDValue TEXT, + IN firstNameValue VARCHAR(255), + IN lastNameValue VARCHAR(255), +@@ -31284,7 +31284,7 @@ + + DROP PROCEDURE IF EXISTS `proc_view_place_taken`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_view_place_taken`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_view_place_taken`( + IN groupValue TEXT, + IN beginValue DATE, + IN endValue DATE +@@ -31410,7 +31410,7 @@ + + DROP PROCEDURE IF EXISTS `statistic_tp`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `statistic_tp`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `statistic_tp`( + IN instValue INTEGER(11), + IN typeValue INTEGER(11), + IN dayValue DATE +@@ -32441,7 +32441,7 @@ + + DROP VIEW IF EXISTS `check_contract_and_place_end_dates`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `check_contract_and_place_end_dates` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `check_contract_and_place_end_dates` AS + select + `contract`.`contractID` AS `contract_contractID`, + `getBeginAndEndDate`(`contract`.`startDate`,now()) AS `contract_startDate`, +@@ -32469,7 +32469,7 @@ + + DROP VIEW IF EXISTS `view_acl_rule`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_acl_rule` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_acl_rule` AS + select + `role`.`roleID` AS `role_roleID`, + `role`.`name` AS `role_name`, +@@ -32494,7 +32494,7 @@ + + DROP VIEW IF EXISTS `view_address`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_address` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_address` AS + select + `a`.`addressID` AS `address_addressID`, + `getBlobStringValue`(`a`.`street`,NULL,NULL) AS `address_street`, +@@ -32518,7 +32518,7 @@ + + DROP VIEW IF EXISTS `view_child`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_child` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_child` AS + select + `child`.`childID` AS `child_childID`, + `child`.`zcode` AS `child_zcode`, +@@ -32598,7 +32598,7 @@ + + DROP VIEW IF EXISTS `view_params`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_params` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_params` AS + select + `contract`.`contractID` AS `con_ID`, + `getValidFrom`(`contract`.`contractID`) AS `validFrom`, +@@ -32612,7 +32612,7 @@ + + DROP VIEW IF EXISTS `view_contract`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_contract` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_contract` AS + select + `view_params`.`validFrom` AS `validFrom`, + `view_params`.`lastPrinted` AS `lastPrinted`, +@@ -32688,7 +32688,7 @@ + + DROP VIEW IF EXISTS `view_contract_changes_overview`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_contract_changes_overview` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_contract_changes_overview` AS + select + `contract_printed`.`contractID` AS `contractID`, + `contract_printed`.`printedDatetime` AS `printedDatetime`, +@@ -32707,7 +32707,7 @@ + + DROP VIEW IF EXISTS `view_count_child`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_count_child` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_count_child` AS + select + distinct `contract`.`childID` AS `childID`, + `getBlobIntValue`(`child`.`countChildNumber`,NULL,NULL) AS `childCountNumber`, +@@ -32742,7 +32742,7 @@ + + DROP VIEW IF EXISTS `view_custody`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_custody` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_custody` AS + select + `cus`.`custodyID` AS `custody_custodyID`, + `getBlobStringValue`(`cus`.`hash`,NULL,NULL) AS `custody_hash`, +@@ -32798,7 +32798,7 @@ + + DROP VIEW IF EXISTS `view_emergency_person`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_emergency_person` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_emergency_person` AS + select + `contract`.`childID` AS `child_childID`, + `contract`.`contractID` AS `contract_contractID`, +@@ -32831,7 +32831,7 @@ + + DROP VIEW IF EXISTS `view_group`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_group` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_group` AS + select + `institute_group`.`groupID` AS `institute_group_groupID`, + `institute_group`.`groupName` AS `institute_group_groupName`, +@@ -32864,7 +32864,7 @@ + + DROP VIEW IF EXISTS `view_institute`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_institute` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_institute` AS + select + `institute`.`instituteID` AS `institute_instituteID`, + `institute`.`name` AS `institute_name`, +@@ -32906,7 +32906,7 @@ + + DROP VIEW IF EXISTS `view_personal_key_list`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_personal_key_list` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_personal_key_list` AS + select + `contract`.`contractID` AS `contract_contractID`, + `child`.`childID` AS `child_childID`, +@@ -32947,7 +32947,7 @@ + + DROP VIEW IF EXISTS `view_place`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_place` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_place` AS + select + `place`.`placeID` AS `place_placeID`, + `place`.`placeName` AS `place_placeName`, +@@ -32971,7 +32971,7 @@ + + DROP VIEW IF EXISTS `view_place_taken`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_place_taken` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_place_taken` AS + select + `contract`.`contractID` AS `contract_contractID`, + `child`.`childID` AS `child_childID`, +@@ -33057,7 +33057,7 @@ + + DROP VIEW IF EXISTS `view_portal_prereservationlist_entry`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_portal_prereservationlist_entry` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_portal_prereservationlist_entry` AS + select + `portal_prereservationlist_entry`.`portalPrereservationListID` AS `portal_prereservationlist_entry_portalPrereservationListID`, + `getXmlValue`(`portal_prereservationlist_entry`.`prereservationData`) AS `portal_prereservationlist_entry_prereservationData`, +@@ -33088,7 +33088,7 @@ + + DROP VIEW IF EXISTS `view_prereservationlist_entry`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_prereservationlist_entry` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_prereservationlist_entry` AS + select + `prereservationlist_entry`.`prereservationlistEntryID` AS `prereservationlist_entry_prereservationlistEntryID`, + `institutepre`.`instituteID` AS `institute_instituteID`, +@@ -33189,7 +33189,7 @@ + + DROP VIEW IF EXISTS `view_saved_contract`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_saved_contract` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_saved_contract` AS + select + `saved_contract`.`savedContractID` AS `saved_contract_savedContractID`, + `getXmlValue`(`saved_contract`.`contractData`) AS `saved_contract_contractData`, +--- a/Database/install_db_trustcenter.sql ++++ b/Database/install_db_trustcenter.sql +@@ -123,7 +123,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `address_before_ins_tr` BEFORE INSERT ON `address` ++CREATE DEFINER=CURRENT_USER TRIGGER `address_before_ins_tr` BEFORE INSERT ON `address` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -163,7 +163,7 @@ + + DROP FUNCTION IF EXISTS `encryptValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `encryptValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `encryptValue`( + v TEXT + ) + RETURNS blob +@@ -181,7 +181,7 @@ + + DROP FUNCTION IF EXISTS `createNewXml`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `createNewXml`( ++CREATE DEFINER=CURRENT_USER FUNCTION `createNewXml`( + newValue TEXT + ) + RETURNS blob +@@ -205,7 +205,7 @@ + + DROP FUNCTION IF EXISTS `decryptValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `decryptValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `decryptValue`( + v BLOB + ) + RETURNS blob +@@ -225,7 +225,7 @@ + + DROP FUNCTION IF EXISTS `getXmlValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getXmlValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getXmlValue`( + colName TEXT + ) + RETURNS text CHARSET utf8 +@@ -251,7 +251,7 @@ + + DROP FUNCTION IF EXISTS `setNewXmlValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setNewXmlValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setNewXmlValue`( + newValue TEXT, + colName TEXT + ) +@@ -347,7 +347,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `person_data_before_ins_tr_new` BEFORE INSERT ON `person_data` ++CREATE DEFINER=CURRENT_USER TRIGGER `person_data_before_ins_tr_new` BEFORE INSERT ON `person_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -391,7 +391,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `user_before_ins_tr` BEFORE INSERT ON `user` ++CREATE DEFINER=CURRENT_USER TRIGGER `user_before_ins_tr` BEFORE INSERT ON `user` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -401,7 +401,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `user_before_upd_tr` BEFORE UPDATE ON `user` ++CREATE DEFINER=CURRENT_USER TRIGGER `user_before_upd_tr` BEFORE UPDATE ON `user` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -440,7 +440,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `personal_before_ins_tr_new` BEFORE INSERT ON `personal` ++CREATE DEFINER=CURRENT_USER TRIGGER `personal_before_ins_tr_new` BEFORE INSERT ON `personal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -454,7 +454,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `personal_before_upd_tr_new` BEFORE UPDATE ON `personal` ++CREATE DEFINER=CURRENT_USER TRIGGER `personal_before_upd_tr_new` BEFORE UPDATE ON `personal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -496,7 +496,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `agb_before_ins_tr_new` BEFORE INSERT ON `agb` ++CREATE DEFINER=CURRENT_USER TRIGGER `agb_before_ins_tr_new` BEFORE INSERT ON `agb` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -507,7 +507,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `agb_before_upd_tr_new` BEFORE UPDATE ON `agb` ++CREATE DEFINER=CURRENT_USER TRIGGER `agb_before_upd_tr_new` BEFORE UPDATE ON `agb` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -557,7 +557,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `carrier_before_ins_tr_new` BEFORE INSERT ON `carrier` ++CREATE DEFINER=CURRENT_USER TRIGGER `carrier_before_ins_tr_new` BEFORE INSERT ON `carrier` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -568,7 +568,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `carrier_before_upd_tr_new` BEFORE UPDATE ON `carrier` ++CREATE DEFINER=CURRENT_USER TRIGGER `carrier_before_upd_tr_new` BEFORE UPDATE ON `carrier` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -606,7 +606,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `institute_before_ins_tr_new` BEFORE INSERT ON `institute` ++CREATE DEFINER=CURRENT_USER TRIGGER `institute_before_ins_tr_new` BEFORE INSERT ON `institute` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -617,7 +617,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `institute_before_upd_tr_new` BEFORE UPDATE ON `institute` ++CREATE DEFINER=CURRENT_USER TRIGGER `institute_before_upd_tr_new` BEFORE UPDATE ON `institute` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -732,7 +732,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `care_time_before_ins_tr1` BEFORE INSERT ON `care_time` ++CREATE DEFINER=CURRENT_USER TRIGGER `care_time_before_ins_tr1` BEFORE INSERT ON `care_time` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -743,7 +743,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `care_time_before_upd_tr` BEFORE UPDATE ON `care_time` ++CREATE DEFINER=CURRENT_USER TRIGGER `care_time_before_upd_tr` BEFORE UPDATE ON `care_time` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -973,7 +973,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_before_ins_tr_new` BEFORE INSERT ON `child` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_before_ins_tr_new` BEFORE INSERT ON `child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -984,7 +984,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_before_upd_tr` BEFORE UPDATE ON `child` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_before_upd_tr` BEFORE UPDATE ON `child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1085,7 +1085,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `payer_before_ins_tr_new` BEFORE INSERT ON `payer` ++CREATE DEFINER=CURRENT_USER TRIGGER `payer_before_ins_tr_new` BEFORE INSERT ON `payer` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1095,7 +1095,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `payer_before_upd_tr` BEFORE UPDATE ON `payer` ++CREATE DEFINER=CURRENT_USER TRIGGER `payer_before_upd_tr` BEFORE UPDATE ON `payer` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1165,7 +1165,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contract_before_ins_tr_new` BEFORE INSERT ON `contract` ++CREATE DEFINER=CURRENT_USER TRIGGER `contract_before_ins_tr_new` BEFORE INSERT ON `contract` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1363,7 +1363,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contact_before_ins_tr_new` BEFORE INSERT ON `contact` ++CREATE DEFINER=CURRENT_USER TRIGGER `contact_before_ins_tr_new` BEFORE INSERT ON `contact` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1376,7 +1376,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contact_before_upd_tr_new` BEFORE UPDATE ON `contact` ++CREATE DEFINER=CURRENT_USER TRIGGER `contact_before_upd_tr_new` BEFORE UPDATE ON `contact` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1586,7 +1586,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `certificate_before_ins_tr_new` BEFORE INSERT ON `certificate` ++CREATE DEFINER=CURRENT_USER TRIGGER `certificate_before_ins_tr_new` BEFORE INSERT ON `certificate` + FOR EACH ROW + BEGIN + +@@ -1602,7 +1602,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `certificate_before_upd_tr_new` BEFORE UPDATE ON `certificate` ++CREATE DEFINER=CURRENT_USER TRIGGER `certificate_before_upd_tr_new` BEFORE UPDATE ON `certificate` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1677,7 +1677,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_eat_meal_before_ins_tr_new` BEFORE INSERT ON `child_eat_meal` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_eat_meal_before_ins_tr_new` BEFORE INSERT ON `child_eat_meal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1707,7 +1707,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_has_child_as_sibling_before_ins_tr_new` BEFORE INSERT ON `child_has_child_as_sibling` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_has_child_as_sibling_before_ins_tr_new` BEFORE INSERT ON `child_has_child_as_sibling` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1717,7 +1717,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_has_child_as_sibling_before_upd_tr_new` BEFORE UPDATE ON `child_has_child_as_sibling` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_has_child_as_sibling_before_upd_tr_new` BEFORE UPDATE ON `child_has_child_as_sibling` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1754,7 +1754,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `doctor_before_ins_tr` BEFORE INSERT ON `doctor` ++CREATE DEFINER=CURRENT_USER TRIGGER `doctor_before_ins_tr` BEFORE INSERT ON `doctor` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1768,7 +1768,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `doctor_before_upd_tr` BEFORE UPDATE ON `doctor` ++CREATE DEFINER=CURRENT_USER TRIGGER `doctor_before_upd_tr` BEFORE UPDATE ON `doctor` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1871,7 +1871,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_tc_data_before_ins_tr_new` BEFORE INSERT ON `child_tc_data` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_tc_data_before_ins_tr_new` BEFORE INSERT ON `child_tc_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1907,7 +1907,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_trusted_before_ins_tr_new` BEFORE INSERT ON `child_trusted` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_trusted_before_ins_tr_new` BEFORE INSERT ON `child_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1917,7 +1917,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_trusted_before_upd_tr` BEFORE UPDATE ON `child_trusted` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_trusted_before_upd_tr` BEFORE UPDATE ON `child_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1965,7 +1965,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `partner_firm_before_ins_tr_new` BEFORE INSERT ON `partner_firm` ++CREATE DEFINER=CURRENT_USER TRIGGER `partner_firm_before_ins_tr_new` BEFORE INSERT ON `partner_firm` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2032,7 +2032,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contract_finance_data_before_ins_tr_new` BEFORE INSERT ON `contract_finance_data` ++CREATE DEFINER=CURRENT_USER TRIGGER `contract_finance_data_before_ins_tr_new` BEFORE INSERT ON `contract_finance_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2046,7 +2046,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contract_finance_data_before_upd_tr_new` BEFORE UPDATE ON `contract_finance_data` ++CREATE DEFINER=CURRENT_USER TRIGGER `contract_finance_data_before_upd_tr_new` BEFORE UPDATE ON `contract_finance_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2136,7 +2136,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_before_ins_tr_new` BEFORE INSERT ON `custody` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_before_ins_tr_new` BEFORE INSERT ON `custody` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2258,7 +2258,7 @@ + + DROP FUNCTION IF EXISTS `func_next_id`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_next_id`() ++CREATE DEFINER=CURRENT_USER FUNCTION `func_next_id`() + RETURNS bigint(20) + DETERMINISTIC + CONTAINS SQL +@@ -2275,7 +2275,7 @@ + + DROP FUNCTION IF EXISTS `setBooleanValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBooleanValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBooleanValue`( + valueid BIGINT(20), + setValue TINYINT(1), + validDate DATE, +@@ -2351,7 +2351,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contract_has_custody_as_contractpartner_before_ins_tr` BEFORE INSERT ON `contract_has_custody_as_contractpartner` ++CREATE DEFINER=CURRENT_USER TRIGGER `contract_has_custody_as_contractpartner_before_ins_tr` BEFORE INSERT ON `contract_has_custody_as_contractpartner` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2385,7 +2385,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contract_has_meal_before_ins_tr` BEFORE INSERT ON `contract_has_meal` ++CREATE DEFINER=CURRENT_USER TRIGGER `contract_has_meal_before_ins_tr` BEFORE INSERT ON `contract_has_meal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2436,7 +2436,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `group_before_ins_tr_new` BEFORE INSERT ON `institute_group` ++CREATE DEFINER=CURRENT_USER TRIGGER `group_before_ins_tr_new` BEFORE INSERT ON `institute_group` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2451,7 +2451,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `group_before_upd_tr_new` BEFORE UPDATE ON `institute_group` ++CREATE DEFINER=CURRENT_USER TRIGGER `group_before_upd_tr_new` BEFORE UPDATE ON `institute_group` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2496,7 +2496,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `place_before_ins_tr_new` BEFORE INSERT ON `place` ++CREATE DEFINER=CURRENT_USER TRIGGER `place_before_ins_tr_new` BEFORE INSERT ON `place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2509,7 +2509,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `place_before_upd_tr_new` BEFORE UPDATE ON `place` ++CREATE DEFINER=CURRENT_USER TRIGGER `place_before_upd_tr_new` BEFORE UPDATE ON `place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2626,7 +2626,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_has_child_before_ins_tr_new` BEFORE INSERT ON `custody_has_child` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_has_child_before_ins_tr_new` BEFORE INSERT ON `custody_has_child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2636,7 +2636,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_has_child_before_upd_tr_new` BEFORE UPDATE ON `custody_has_child` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_has_child_before_upd_tr_new` BEFORE UPDATE ON `custody_has_child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2666,7 +2666,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_work_before_ins_tr` BEFORE INSERT ON `custody_work` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_work_before_ins_tr` BEFORE INSERT ON `custody_work` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2682,7 +2682,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_work_before_upd_tr` BEFORE UPDATE ON `custody_work` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_work_before_upd_tr` BEFORE UPDATE ON `custody_work` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2794,7 +2794,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_trusted_before_ins_tr_new` BEFORE INSERT ON `custody_trusted` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_trusted_before_ins_tr_new` BEFORE INSERT ON `custody_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2806,7 +2806,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_trusted_before_upd_tr_new` BEFORE UPDATE ON `custody_trusted` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_trusted_before_upd_tr_new` BEFORE UPDATE ON `custody_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2902,7 +2902,7 @@ + DROP TRIGGER IF EXISTS `database_updates_before_ins_tr`; + + DELIMITER $$ +-CREATE DEFINER = 'root'@'localhost' TRIGGER `database_updates_before_ins_tr` BEFORE INSERT ON `database_updates` ++CREATE DEFINER=CURRENT_USER TRIGGER `database_updates_before_ins_tr` BEFORE INSERT ON `database_updates` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2933,7 +2933,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `disability_before_ins_tr_new` BEFORE INSERT ON `disability` ++CREATE DEFINER=CURRENT_USER TRIGGER `disability_before_ins_tr_new` BEFORE INSERT ON `disability` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2946,7 +2946,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `disability_before_upd_tr_new` BEFORE UPDATE ON `disability` ++CREATE DEFINER=CURRENT_USER TRIGGER `disability_before_upd_tr_new` BEFORE UPDATE ON `disability` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3211,7 +3211,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `emergency_person_before_ins_tr` BEFORE INSERT ON `emergency_person` ++CREATE DEFINER=CURRENT_USER TRIGGER `emergency_person_before_ins_tr` BEFORE INSERT ON `emergency_person` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3226,7 +3226,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `emergency_person_before_upd_tr` BEFORE UPDATE ON `emergency_person` ++CREATE DEFINER=CURRENT_USER TRIGGER `emergency_person_before_upd_tr` BEFORE UPDATE ON `emergency_person` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3442,7 +3442,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `religion_before_ins_tr_new` BEFORE INSERT ON `religion` ++CREATE DEFINER=CURRENT_USER TRIGGER `religion_before_ins_tr_new` BEFORE INSERT ON `religion` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3451,7 +3451,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `religion_before_upd_tr_new` BEFORE UPDATE ON `religion` ++CREATE DEFINER=CURRENT_USER TRIGGER `religion_before_upd_tr_new` BEFORE UPDATE ON `religion` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3683,7 +3683,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `institute_has_care_time_before_ins_tr` BEFORE INSERT ON `institute_has_care_time` ++CREATE DEFINER=CURRENT_USER TRIGGER `institute_has_care_time_before_ins_tr` BEFORE INSERT ON `institute_has_care_time` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3783,7 +3783,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `insttitute_has_institute_type_before_ins_tr_new` BEFORE INSERT ON `institute_has_institute_type` ++CREATE DEFINER=CURRENT_USER TRIGGER `insttitute_has_institute_type_before_ins_tr_new` BEFORE INSERT ON `institute_has_institute_type` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3796,7 +3796,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `insttitute_has_institute_type_before_upd_tr_new` BEFORE UPDATE ON `institute_has_institute_type` ++CREATE DEFINER=CURRENT_USER TRIGGER `insttitute_has_institute_type_before_upd_tr_new` BEFORE UPDATE ON `institute_has_institute_type` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3939,7 +3939,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `prereservationlist_entry_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `prereservationlist_entry_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3955,7 +3955,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `prereservationlist_entry_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `prereservationlist_entry_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4301,7 +4301,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `portal_prereservationlist_entry_before_ins_tr` BEFORE INSERT ON `portal_prereservationlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `portal_prereservationlist_entry_before_ins_tr` BEFORE INSERT ON `portal_prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4318,7 +4318,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `portal_prereservationlist_entry_before_upd_tr` BEFORE UPDATE ON `portal_prereservationlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `portal_prereservationlist_entry_before_upd_tr` BEFORE UPDATE ON `portal_prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4435,7 +4435,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `prereservationlist_entry_has_place_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry_has_place` ++CREATE DEFINER=CURRENT_USER TRIGGER `prereservationlist_entry_has_place_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry_has_place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4445,7 +4445,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `prereservationlist_entry_has_place_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry_has_place` ++CREATE DEFINER=CURRENT_USER TRIGGER `prereservationlist_entry_has_place_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry_has_place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4518,7 +4518,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `presentlist_entry_before_ins_tr_new` BEFORE INSERT ON `presentlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `presentlist_entry_before_ins_tr_new` BEFORE INSERT ON `presentlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4531,7 +4531,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `presentlist_entry_before_upd_tr_new` BEFORE UPDATE ON `presentlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `presentlist_entry_before_upd_tr_new` BEFORE UPDATE ON `presentlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4613,7 +4613,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `saved_contract_before_ins_tr_new` BEFORE INSERT ON `saved_contract` ++CREATE DEFINER=CURRENT_USER TRIGGER `saved_contract_before_ins_tr_new` BEFORE INSERT ON `saved_contract` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4630,7 +4630,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `saved_contract_before_upd_tr_new` BEFORE UPDATE ON `saved_contract` ++CREATE DEFINER=CURRENT_USER TRIGGER `saved_contract_before_upd_tr_new` BEFORE UPDATE ON `saved_contract` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4785,7 +4785,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `statistic_taken_places_before_ins_tr` BEFORE INSERT ON `statistic_taken_places` ++CREATE DEFINER=CURRENT_USER TRIGGER `statistic_taken_places_before_ins_tr` BEFORE INSERT ON `statistic_taken_places` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4796,7 +4796,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `statistic_taken_places_before_upd_tr` BEFORE UPDATE ON `statistic_taken_places` ++CREATE DEFINER=CURRENT_USER TRIGGER `statistic_taken_places_before_upd_tr` BEFORE UPDATE ON `statistic_taken_places` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4827,7 +4827,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `user_has_tc_message_folder_before_ins_tr` BEFORE INSERT ON `user_has_tc_message_folder` ++CREATE DEFINER=CURRENT_USER TRIGGER `user_has_tc_message_folder_before_ins_tr` BEFORE INSERT ON `user_has_tc_message_folder` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4866,7 +4866,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `tc_message_before_ins_tr` BEFORE INSERT ON `tc_message` ++CREATE DEFINER=CURRENT_USER TRIGGER `tc_message_before_ins_tr` BEFORE INSERT ON `tc_message` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4893,7 +4893,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `trustcenter_before_ins_tr_new` BEFORE INSERT ON `trustcenter` ++CREATE DEFINER=CURRENT_USER TRIGGER `trustcenter_before_ins_tr_new` BEFORE INSERT ON `trustcenter` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -5081,7 +5081,7 @@ + + DROP FUNCTION IF EXISTS `func_count_prereservations_to_child`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_count_prereservations_to_child`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_count_prereservations_to_child`( + childIDValue INTEGER(11), + instituteTypeIDValue INTEGER(11), + getOnlyRejectedPrereservations TINYINT(1) +@@ -5169,7 +5169,7 @@ + + DROP FUNCTION IF EXISTS `func_count_sibling`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_count_sibling`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_count_sibling`( + childID INTEGER(11) + ) + RETURNS smallint(4) +@@ -5218,7 +5218,7 @@ + + DROP FUNCTION IF EXISTS `getBlobStringValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBlobStringValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBlobStringValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -5278,7 +5278,7 @@ + + DROP FUNCTION IF EXISTS `func_double_name_person_block_ok`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_double_name_person_block_ok`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_double_name_person_block_ok`( + typeValue ENUM('child','custody'), + lastName VARCHAR(255), + firstName3Chars VARCHAR(3) +@@ -5327,7 +5327,7 @@ + + DROP FUNCTION IF EXISTS `getBeginAndEndDate`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBeginAndEndDate`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBeginAndEndDate`( + my_id INTEGER(11), + lookTo DATETIME + ) +@@ -5355,7 +5355,7 @@ + + DROP FUNCTION IF EXISTS `func_get_actual_contract_has_place_ID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_actual_contract_has_place_ID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_actual_contract_has_place_ID`( + contractIDValue INTEGER(11), + lookToDate DATE + ) +@@ -5411,7 +5411,7 @@ + + DROP FUNCTION IF EXISTS `func_get_all_hours_from_care`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_all_hours_from_care`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_all_hours_from_care`( + hoursValue DECIMAL(3,1), + morningValue DECIMAL(3,1), + afternoonValue DECIMAL(3,1) +@@ -5448,7 +5448,7 @@ + + DROP FUNCTION IF EXISTS `func_get_care_timeIDs_by_prereservation`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_care_timeIDs_by_prereservation`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_care_timeIDs_by_prereservation`( + preresID INTEGER(11) + ) + RETURNS text CHARSET utf8 +@@ -5492,7 +5492,7 @@ + + DROP FUNCTION IF EXISTS `func_get_care_time_description_short`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_care_time_description_short`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_care_time_description_short`( + caretimeDescription VARCHAR(255), + additionalPaymentType INTEGER(11) + ) +@@ -5566,7 +5566,7 @@ + + DROP FUNCTION IF EXISTS `func_get_changes_to_contract_by_overview`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_changes_to_contract_by_overview`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_changes_to_contract_by_overview`( + contractIDValue INTEGER(11), + printedDatetimeValue DATETIME, + contractInCarrierIDValue INTEGER(11) +@@ -7164,7 +7164,7 @@ + + DROP FUNCTION IF EXISTS `getDateValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getDateValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getDateValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -7222,7 +7222,7 @@ + + DROP FUNCTION IF EXISTS `func_get_contracts_institute_name_by_childID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_contracts_institute_name_by_childID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_contracts_institute_name_by_childID`( + childIDValue INTEGER(11) + ) + RETURNS varchar(255) CHARSET utf8 +@@ -7297,7 +7297,7 @@ + + DROP FUNCTION IF EXISTS `func_get_contracts_institute_name_by_custodyID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_contracts_institute_name_by_custodyID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_contracts_institute_name_by_custodyID`( + custodyIDValue INTEGER(11) + ) + RETURNS varchar(255) CHARSET utf8 +@@ -7376,7 +7376,7 @@ + + DROP FUNCTION IF EXISTS `func_get_contract_has_place_ID_at_time`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_contract_has_place_ID_at_time`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_contract_has_place_ID_at_time`( + contractIDValue INTEGER(11), + lookTo DATE + ) +@@ -7415,7 +7415,7 @@ + + DROP FUNCTION IF EXISTS `func_get_contract_instituteID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_contract_instituteID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_contract_instituteID`( + contractValue INTEGER(11) + ) + RETURNS int(11) +@@ -7444,7 +7444,7 @@ + + DROP FUNCTION IF EXISTS `func_get_contract_instituteIDs_from_sibling`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_contract_instituteIDs_from_sibling`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_contract_instituteIDs_from_sibling`( + childIDValue INTEGER(11) + ) + RETURNS varchar(255) CHARSET utf8 +@@ -7495,7 +7495,7 @@ + + DROP FUNCTION IF EXISTS `func_get_count_active_places_in_group`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_count_active_places_in_group`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_count_active_places_in_group`( + groupIDValue INTEGER(11) + ) + RETURNS smallint(4) +@@ -7513,7 +7513,7 @@ + + DROP FUNCTION IF EXISTS `func_get_count_allocations_by_place`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_count_allocations_by_place`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_count_allocations_by_place`( + placeIDValue INTEGER(11) + ) + RETURNS tinyint(4) +@@ -7537,7 +7537,7 @@ + + DROP FUNCTION IF EXISTS `func_get_created_places_in_group`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_created_places_in_group`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_created_places_in_group`( + groupIDValue INTEGER(11) + ) + RETURNS int(11) +@@ -7555,7 +7555,7 @@ + + DROP FUNCTION IF EXISTS `func_get_crypt_id`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_crypt_id`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_crypt_id`( + colName VaRCHAR(255) + ) + RETURNS varchar(255) CHARSET utf8 +@@ -7574,7 +7574,7 @@ + + DROP FUNCTION IF EXISTS `func_get_custodies_by_child`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_custodies_by_child`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_custodies_by_child`( + childIDValue INTEGER(11) + ) + RETURNS text CHARSET utf8 +@@ -7622,7 +7622,7 @@ + + DROP FUNCTION IF EXISTS `getContractEndDate`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getContractEndDate`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getContractEndDate`( + contractIDValue INTEGER(11), + lookTo DATETIME + ) +@@ -7672,7 +7672,7 @@ + + DROP FUNCTION IF EXISTS `getContractStartDate`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getContractStartDate`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getContractStartDate`( + contractIDValue INTEGER(11), + lookTo DATETIME + ) +@@ -7726,7 +7726,7 @@ + + DROP FUNCTION IF EXISTS `getValidFrom`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getValidFrom`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getValidFrom`( + contractIDValue INTEGER(11) + ) + RETURNS date +@@ -7753,7 +7753,7 @@ + + DROP FUNCTION IF EXISTS `func_get_not_printed_contract_to_child`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_not_printed_contract_to_child`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_not_printed_contract_to_child`( + childIDValue INTEGER(11), + inCarrierID INTEGER(11), + inInstituteID INTEGER(11) +@@ -7821,7 +7821,7 @@ + + DROP FUNCTION IF EXISTS `func_get_not_printed_contract_to_custody`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_not_printed_contract_to_custody`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_not_printed_contract_to_custody`( + custodyValue INTEGER(11), + inCarrierID INTEGER(11), + inInstituteID INTEGER(11) +@@ -7892,7 +7892,7 @@ + + DROP FUNCTION IF EXISTS `func_get_prereservations_institute_name_by_childID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_prereservations_institute_name_by_childID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_prereservations_institute_name_by_childID`( + childIDValue INTEGER(11), + isReserved TINYINT(1) + ) +@@ -8011,7 +8011,7 @@ + + DROP FUNCTION IF EXISTS `func_get_prereservations_institute_name_by_custodyID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_prereservations_institute_name_by_custodyID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_prereservations_institute_name_by_custodyID`( + custodyIDValue INTEGER(11), + isReserved TINYINT(1) + ) +@@ -8130,7 +8130,7 @@ + + DROP FUNCTION IF EXISTS `func_get_prereservation_status_color`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_prereservation_status_color`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_prereservation_status_color`( + preStatus VARCHAR(255), + rejectionReason VARCHAR(255), + reservationRemoveReason VARCHAR(255), +@@ -8210,7 +8210,7 @@ + + DROP FUNCTION IF EXISTS `getLastContractPrintedDatetime`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getLastContractPrintedDatetime`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getLastContractPrintedDatetime`( + contractIDValue INTEGER(11), + lookTo DATETIME + ) +@@ -8244,7 +8244,7 @@ + + DROP FUNCTION IF EXISTS `getStringValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getStringValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getStringValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -8302,7 +8302,7 @@ + + DROP FUNCTION IF EXISTS `func_get_print_all_changes`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_print_all_changes`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_print_all_changes`( + contractIDValue INTEGER(11), + childIDValue INTEGER(11), + custody1IDValue INTEGER(11), +@@ -8717,7 +8717,7 @@ + + DROP FUNCTION IF EXISTS `func_get_recipient`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_recipient`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_recipient`( + financeDataValue INTEGER(11) + ) + RETURNS varchar(255) CHARSET utf8 +@@ -8745,7 +8745,7 @@ + + DROP FUNCTION IF EXISTS `func_get_siblings_by_child`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_siblings_by_child`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_siblings_by_child`( + siblingIDValue INTEGER(11) + ) + RETURNS text CHARSET utf8 +@@ -8816,7 +8816,7 @@ + + DROP FUNCTION IF EXISTS `func_get_user_carrierID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_user_carrierID`() ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_user_carrierID`() + RETURNS int(11) + DETERMINISTIC + CONTAINS SQL +@@ -8833,7 +8833,7 @@ + + DROP FUNCTION IF EXISTS `func_get_user_instituteID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_user_instituteID`() ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_user_instituteID`() + RETURNS int(11) + DETERMINISTIC + CONTAINS SQL +@@ -8850,7 +8850,7 @@ + + DROP FUNCTION IF EXISTS `func_has_child_contract`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_has_child_contract`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_has_child_contract`( + childValue INTEGER(11), + instituteTypeIDValue INTEGER(11), + carrierIDValue INTEGER(11) +@@ -8966,7 +8966,7 @@ + + DROP FUNCTION IF EXISTS `func_is_address_in_institute_own_township`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_is_address_in_institute_own_township`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_is_address_in_institute_own_township`( + instituteIDValue INTEGER(11), + zipValue VARCHAR(255), + cityValue VARCHAR(255), +@@ -9006,7 +9006,7 @@ + + DROP FUNCTION IF EXISTS `getBlobDatetimeValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBlobDatetimeValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBlobDatetimeValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9064,7 +9064,7 @@ + + DROP FUNCTION IF EXISTS `getBlobDateValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBlobDateValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBlobDateValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9123,7 +9123,7 @@ + + DROP FUNCTION IF EXISTS `getBlobIntValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBlobIntValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBlobIntValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9182,7 +9182,7 @@ + + DROP FUNCTION IF EXISTS `getBlobTextValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBlobTextValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBlobTextValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9240,7 +9240,7 @@ + + DROP FUNCTION IF EXISTS `getBooleanValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBooleanValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBooleanValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9298,7 +9298,7 @@ + + DROP FUNCTION IF EXISTS `getContractPartner`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getContractPartner`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getContractPartner`( + contractIDValue BIGINT, + numberValue INTEGER(11), + validTo DATE, +@@ -9337,7 +9337,7 @@ + + DROP FUNCTION IF EXISTS `getDatetimeValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getDatetimeValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getDatetimeValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9395,7 +9395,7 @@ + + DROP FUNCTION IF EXISTS `getDecValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getDecValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getDecValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9453,7 +9453,7 @@ + + DROP FUNCTION IF EXISTS `getFulltimeEquivalentValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getFulltimeEquivalentValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getFulltimeEquivalentValue`( + careTimeIDValue INTEGER(11), + fevType ENUM('basic','over','integrated','additional'), + validTo DATE, +@@ -9497,7 +9497,7 @@ + + DROP FUNCTION IF EXISTS `isOverCare`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `isOverCare`( ++CREATE DEFINER=CURRENT_USER FUNCTION `isOverCare`( + hoursAfternoonValue DECIMAL(3,1), + hoursPerDayValue DECIMAL(3,1), + hoursMorningValue DECIMAL(3,1) +@@ -9542,7 +9542,7 @@ + + DROP FUNCTION IF EXISTS `getFulltimeEquivalentValueSum`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getFulltimeEquivalentValueSum`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getFulltimeEquivalentValueSum`( + sumChildsValue FLOAT, + isIntegratedValue TINYINT(1), + fevBasicValue DECIMAL(15,5), +@@ -9594,7 +9594,7 @@ + + DROP FUNCTION IF EXISTS `getIntValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getIntValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getIntValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME, +@@ -9653,7 +9653,7 @@ + + DROP FUNCTION IF EXISTS `getNextGroupName`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getNextGroupName`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getNextGroupName`( + contractIDValue INTEGER(11), + dayValue DATE + ) +@@ -9686,7 +9686,7 @@ + + DROP FUNCTION IF EXISTS `getOrderPositionToInstituteTypeID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getOrderPositionToInstituteTypeID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getOrderPositionToInstituteTypeID`( + instTypeIDValue INTEGER(11) + ) + RETURNS int(11) +@@ -9705,7 +9705,7 @@ + + DROP FUNCTION IF EXISTS `getServiceHoursSumByFev`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getServiceHoursSumByFev`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getServiceHoursSumByFev`( + dateValue DATE, + sumChildsValue FLOAT, + isIntegratedValue TINYINT(1), +@@ -9810,7 +9810,7 @@ + + DROP FUNCTION IF EXISTS `hasContractUnconfirmedChanges`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `hasContractUnconfirmedChanges`( ++CREATE DEFINER=CURRENT_USER FUNCTION `hasContractUnconfirmedChanges`( + contractIDValue INTEGER(11) + ) + RETURNS tinyint(1) +@@ -9838,7 +9838,7 @@ + + DROP FUNCTION IF EXISTS `months_between`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `months_between`( ++CREATE DEFINER=CURRENT_USER FUNCTION `months_between`( + olderDate DATE, + newerDate DATE + ) +@@ -9887,7 +9887,7 @@ + + DROP FUNCTION IF EXISTS `setBlobDatetimeValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBlobDatetimeValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBlobDatetimeValue`( + valueid BIGINT(20), + setValue DATETIME, + validDate DATE, +@@ -9945,7 +9945,7 @@ + + DROP FUNCTION IF EXISTS `setBlobDateValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBlobDateValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBlobDateValue`( + valueid BIGINT(20), + setValue DATE, + validDate DATE, +@@ -10002,7 +10002,7 @@ + + DROP FUNCTION IF EXISTS `setBlobIntValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBlobIntValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBlobIntValue`( + valueid BIGINT(20), + setValue INTEGER(11), + validDate DATE, +@@ -10060,7 +10060,7 @@ + + DROP FUNCTION IF EXISTS `setBlobStringValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBlobStringValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBlobStringValue`( + valueid BIGINT(20), + setValue VARCHAR(255), + validDate DATE, +@@ -10118,7 +10118,7 @@ + + DROP FUNCTION IF EXISTS `setBlobTextValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBlobTextValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBlobTextValue`( + valueid BIGINT(20), + setValue TEXT, + validDate DATE, +@@ -10176,7 +10176,7 @@ + + DROP FUNCTION IF EXISTS `setDatetimeValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setDatetimeValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setDatetimeValue`( + valueid BIGINT(20), + setValue DATETIME, + validDate DATE, +@@ -10233,7 +10233,7 @@ + + DROP FUNCTION IF EXISTS `setDateValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setDateValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setDateValue`( + valueid BIGINT(20), + setValue DATE, + validDate DATE, +@@ -10291,7 +10291,7 @@ + + DROP FUNCTION IF EXISTS `setDecValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setDecValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setDecValue`( + valueid BIGINT(20), + setValue DECIMAL(15,5), + validDate DATE, +@@ -10351,7 +10351,7 @@ + + DROP FUNCTION IF EXISTS `setIntValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setIntValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setIntValue`( + valueid BIGINT(20), + setValue INTEGER(11), + validDate DATE, +@@ -10409,7 +10409,7 @@ + + DROP FUNCTION IF EXISTS `setStringValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setStringValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setStringValue`( + valueid BIGINT(20), + setValue VARCHAR(255), + validDate DATE, +@@ -10471,7 +10471,7 @@ + + DROP PROCEDURE IF EXISTS `proc_calculation_feeundependent_payables`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_calculation_feeundependent_payables`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_calculation_feeundependent_payables`( + IN clientIDValue INTEGER(11), + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), +@@ -10910,7 +10910,7 @@ + + DROP PROCEDURE IF EXISTS `proc_change_contract_end_date`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_change_contract_end_date`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_change_contract_end_date`( + IN cryptContractIDValue VARCHAR(255), + IN endDateValue DATE + ) +@@ -10968,7 +10968,7 @@ + + DROP PROCEDURE IF EXISTS `proc_child_double_occupancy`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_child_double_occupancy`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_child_double_occupancy`( + IN year INTEGER(11) + ) + NOT DETERMINISTIC +@@ -11392,7 +11392,7 @@ + + DROP PROCEDURE IF EXISTS `proc_child_older_max_age`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_child_older_max_age`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_child_older_max_age`( + IN lookDateValue DATE + ) + NOT DETERMINISTIC +@@ -11439,7 +11439,7 @@ + + DROP PROCEDURE IF EXISTS `proc_clear_acl`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_clear_acl`() ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_clear_acl`() + NOT DETERMINISTIC + CONTAINS SQL + SQL SECURITY DEFINER +@@ -11466,7 +11466,7 @@ + + DROP PROCEDURE IF EXISTS `proc_clear_acl_action_deny_by_user`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_clear_acl_action_deny_by_user`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_clear_acl_action_deny_by_user`( + IN userIDValue INTEGER(11) + ) + NOT DETERMINISTIC +@@ -11515,7 +11515,7 @@ + + DROP PROCEDURE IF EXISTS `proc_correct_multicreated_child`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_correct_multicreated_child`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_correct_multicreated_child`( + IN showSelects TINYINT, + IN cryptMasterChild TEXT, + IN cryptSlave1 TEXT, +@@ -11976,7 +11976,7 @@ + + DROP PROCEDURE IF EXISTS `proc_correct_multicreated_custody`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_correct_multicreated_custody`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_correct_multicreated_custody`( + IN showSelects TINYINT(1), + IN cryptMasterCustody TEXT, + IN cryptSlave1 TEXT, +@@ -12363,7 +12363,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_carrier`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_carrier`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_carrier`( + IN carrierCryptIDValue VARCHAR(255) + ) + NOT DETERMINISTIC +@@ -12531,7 +12531,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_contract`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_contract`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_contract`( + IN contractIDValue INTEGER(11), + IN cryptContractIDValue VARCHAR(255) + ) +@@ -12653,7 +12653,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_custody`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_custody`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_custody`( + IN custodyValue INTEGER(11) + ) + NOT DETERMINISTIC +@@ -12831,7 +12831,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_prereservationlist_entry`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_prereservationlist_entry`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_prereservationlist_entry`( + IN prereservationlistEntryIDValue TEXT + ) + NOT DETERMINISTIC +@@ -12909,7 +12909,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_child`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_child`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_child`( + IN childValue INTEGER(11), + IN deleteChild BOOLEAN, + IN deleteContract BOOLEAN, +@@ -13287,7 +13287,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_doctor`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_doctor`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_doctor`( + IN doctorIDValue TEXT + ) + NOT DETERMINISTIC +@@ -13413,7 +13413,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_group`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_group`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_group`( + IN groupCryptIDValue VARCHAR(255) + ) + NOT DETERMINISTIC +@@ -13485,7 +13485,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_institute`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_institute`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_institute`( + IN instituteIDValue TEXT + ) + NOT DETERMINISTIC +@@ -13778,7 +13778,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_user_has_role`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_user_has_role`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_user_has_role`( + IN userIDValue INTEGER(11), + IN roleIDValue INTEGER(11) + ) +@@ -13829,7 +13829,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_all_contract_changes_in_period`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_all_contract_changes_in_period`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_all_contract_changes_in_period`( + IN contractIDValue INTEGER(11), + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), +@@ -16117,7 +16117,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_changes_info_to_contract_by_printedDatetime`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_changes_info_to_contract_by_printedDatetime`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_changes_info_to_contract_by_printedDatetime`( + IN contractIDValue INTEGER(11), + IN printedDatetime DATETIME, + IN printedDatetimeLast DATETIME +@@ -19931,7 +19931,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_child_custody_data_changes_iO_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_child_custody_data_changes_iO_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_child_custody_data_changes_iO_anke`( + IN personType ENUM('child','custody'), + IN personID INTEGER(11), + IN startDate DATE, +@@ -21051,7 +21051,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_child_custody_data_changes_iO_end_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_child_custody_data_changes_iO_end_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_child_custody_data_changes_iO_end_anke`( + IN personType ENUM('child','custody'), + IN personID INTEGER(11), + IN startDate DATE, +@@ -22146,7 +22146,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_child_custody_data_changes_vF_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_child_custody_data_changes_vF_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_child_custody_data_changes_vF_anke`( + IN personType ENUM('child','custody'), + IN personID INTEGER(11), + IN startDate DATE, +@@ -23313,7 +23313,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_contract_data_changes_iO_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_contract_data_changes_iO_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_contract_data_changes_iO_anke`( + IN contractIDValue INTEGER(11), + IN startDate DATE, + IN endDate DATE +@@ -23821,7 +23821,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_contract_data_changes_iO_end_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_contract_data_changes_iO_end_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_contract_data_changes_iO_end_anke`( + IN contractIDValue INTEGER, + IN startDate DATE, + IN endDate DATE +@@ -24355,7 +24355,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_contract_data_changes_vF_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_contract_data_changes_vF_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_contract_data_changes_vF_anke`( + IN contractIDValue INTEGER(11), + IN startDate DATE, + IN endDate DATE +@@ -24905,7 +24905,7 @@ + + DROP VIEW IF EXISTS `view_user`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_user` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_user` AS + select + `getBlobStringValue`(`pd`.`firstName`,NULL,NULL) AS `person_data_firstName`, + `getBlobStringValue`(`pd`.`lastName`,NULL,NULL) AS `person_data_lastName`, +@@ -24952,7 +24952,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_history_entries_for_id`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_history_entries_for_id`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_history_entries_for_id`( + IN cryptHistoryIDValue TEXT + ) + NOT DETERMINISTIC +@@ -25202,7 +25202,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_carrier`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_carrier`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_carrier`( + IN carrierIDValue TEXT, + IN nameValue VARCHAR(255), + IN hasAddressValue TINYINT(1), +@@ -25336,7 +25336,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_child`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_child`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_child`( + IN childIDValue TEXT, + IN hashValue TEXT, + IN streetValue VARCHAR(255), +@@ -25608,7 +25608,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_child_tc_data`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_child_tc_data`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_child_tc_data`( + IN childIDValue TEXT, + IN healthInsuranceValue TEXT, + IN healthInsuranceNoValue TEXT, +@@ -25698,7 +25698,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_contract`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_contract`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_contract`( + IN cryptContractIDValue VARCHAR(255), + IN childIDValue INTEGER(11), + IN payerIDValue INTEGER(11), +@@ -25916,7 +25916,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_contract_has_place`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_contract_has_place`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_contract_has_place`( + IN contractIDValue INTEGER(11), + IN cryptPlaceIDValue VARCHAR(255), + IN validFromDateValue DATE, +@@ -25990,7 +25990,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_custody`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_custody`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_custody`( + IN custodyIDValue TEXT, + IN hashValue TEXT, + IN streetValue VARCHAR(255), +@@ -26176,7 +26176,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_custody_work`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_custody_work`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_custody_work`( + IN custodyIDValue TEXT, + IN workNameValue TEXT, + IN workTypeValue TEXT, +@@ -26363,7 +26363,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_doctor`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_doctor`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_doctor`( + IN doctorIDValue TEXT, + IN childIDValue INTEGER(11), + IN nameValue TEXT, +@@ -26542,7 +26542,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_emergency_person`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_emergency_person`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_emergency_person`( + IN emergencyPersonIDValue TEXT, + IN firstNameValue VARCHAR(255), + IN lastNameValue VARCHAR(255), +@@ -26691,7 +26691,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_fev`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_fev`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_fev`( + IN careTimeIDValue INTEGER(11), + IN basicValue DECIMAL(15,5), + IN overValue DECIMAL(15,5), +@@ -26735,7 +26735,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_group`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_group`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_group`( + IN groupIDValue TEXT, + IN instituteIDValue INTEGER(11), + IN groupNameValue VARCHAR(255), +@@ -26828,7 +26828,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_institute`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_institute`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_institute`( + IN instituteIDValue TEXT, + IN carrierIDValue INTEGER(11), + IN inCarrierFromDateValue DATE, +@@ -27003,7 +27003,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_institute_has_institute_type`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_institute_has_institute_type`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_institute_has_institute_type`( + IN instituteIDValue INTEGER(11), + IN instituteTypeIDValue INTEGER(11), + IN validFromDateValue DATE, +@@ -27138,7 +27138,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_payer`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_payer`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_payer`( + IN payerIDValue INTEGER(11), + IN contributorTypeValue VARCHAR(255), + IN contributorCustodyIDValue INTEGER(11), +@@ -27307,7 +27307,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_prereservationlist_entry`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_prereservationlist_entry`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_prereservationlist_entry`( + IN prereservationlistEntryIDValue TEXT, + IN childIDValue INTEGER(11), + IN setByPortaluserIDValue INTEGER(11), +@@ -27448,7 +27448,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_sibling`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_sibling`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_sibling`( + IN cryptSiblingChildIDValue TEXT, + IN hashValue TEXT, + IN hashValuesCorrectValue TINYINT(1), +@@ -27589,7 +27589,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_user`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_user`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_user`( + IN userIDValue TEXT, + IN loginNameValue VARCHAR(255), + IN passwdValue VARCHAR(255), +@@ -27754,7 +27754,7 @@ + + DROP PROCEDURE IF EXISTS `proc_multicreated_person`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_multicreated_person`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_multicreated_person`( + IN typeValue ENUM('child','custody'), + IN limitBlocksValue INTEGER(11), + IN limitPerPageValue INTEGER(11) +@@ -28057,7 +28057,7 @@ + + DROP PROCEDURE IF EXISTS `proc_print_all_changes`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_print_all_changes`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_print_all_changes`( + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), + IN validFromStartDateValue DATE, +@@ -28149,7 +28149,7 @@ + + DROP PROCEDURE IF EXISTS `proc_print_new_ending_contracts`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_print_new_ending_contracts`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_print_new_ending_contracts`( + IN monthStart DATE, + IN monthEnd DATE, + IN carrierIDValue INTEGER(11), +@@ -28268,7 +28268,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_child_per_age_calc_type_own_ca`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_child_per_age_calc_type_own_ca`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_child_per_age_calc_type_own_ca`( + IN dayValue DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11) +@@ -29669,7 +29669,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_child_per_care_time`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_child_per_care_time`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_child_per_care_time`( + IN monthStart DATE, + IN monthEnd DATE + ) +@@ -29888,7 +29888,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_child_per_care_time2`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_child_per_care_time2`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_child_per_care_time2`( + IN monthStart DATE, + IN monthEnd DATE, + IN mandantIDValue INTEGER(11) +@@ -30121,7 +30121,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_classlevel`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_classlevel`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_classlevel`( + IN dayValue DATE + ) + NOT DETERMINISTIC +@@ -30225,7 +30225,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_contracts_per_month`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_contracts_per_month`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_contracts_per_month`( + IN monthStart DATE, + IN monthEnd DATE, + IN status ENUM('new','start','closed'), +@@ -30365,7 +30365,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_institute_has_child_per_age_and_township`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_institute_has_child_per_age_and_township`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_institute_has_child_per_age_and_township`( + IN dayValue DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), +@@ -31016,7 +31016,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_siblings_outside`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_siblings_outside`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_siblings_outside`( + IN dayValue DATE + ) + NOT DETERMINISTIC +@@ -31203,7 +31203,7 @@ + + DROP PROCEDURE IF EXISTS `proc_update_user_profile`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_update_user_profile`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_update_user_profile`( + IN personalIDValue TEXT, + IN firstNameValue VARCHAR(255), + IN lastNameValue VARCHAR(255), +@@ -31271,7 +31271,7 @@ + + DROP PROCEDURE IF EXISTS `proc_view_place_taken`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_view_place_taken`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_view_place_taken`( + IN groupValue TEXT, + IN beginValue DATE, + IN endValue DATE +@@ -31397,7 +31397,7 @@ + + DROP PROCEDURE IF EXISTS `statistic_tp`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `statistic_tp`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `statistic_tp`( + IN instValue INTEGER(11), + IN typeValue INTEGER(11), + IN dayValue DATE +@@ -32428,7 +32428,7 @@ + + DROP VIEW IF EXISTS `check_contract_and_place_end_dates`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `check_contract_and_place_end_dates` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `check_contract_and_place_end_dates` AS + select + `contract`.`contractID` AS `contract_contractID`, + `getBeginAndEndDate`(`contract`.`startDate`,now()) AS `contract_startDate`, +@@ -32456,7 +32456,7 @@ + + DROP VIEW IF EXISTS `view_acl_rule`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_acl_rule` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_acl_rule` AS + select + `role`.`roleID` AS `role_roleID`, + `role`.`name` AS `role_name`, +@@ -32481,7 +32481,7 @@ + + DROP VIEW IF EXISTS `view_address`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_address` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_address` AS + select + `a`.`addressID` AS `address_addressID`, + `getBlobStringValue`(`a`.`street`,NULL,NULL) AS `address_street`, +@@ -32505,7 +32505,7 @@ + + DROP VIEW IF EXISTS `view_child`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_child` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_child` AS + select + `child`.`childID` AS `child_childID`, + `child`.`zcode` AS `child_zcode`, +@@ -32585,7 +32585,7 @@ + + DROP VIEW IF EXISTS `view_params`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_params` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_params` AS + select + `contract`.`contractID` AS `con_ID`, + `getValidFrom`(`contract`.`contractID`) AS `validFrom`, +@@ -32599,7 +32599,7 @@ + + DROP VIEW IF EXISTS `view_contract`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_contract` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_contract` AS + select + `view_params`.`validFrom` AS `validFrom`, + `view_params`.`lastPrinted` AS `lastPrinted`, +@@ -32675,7 +32675,7 @@ + + DROP VIEW IF EXISTS `view_contract_changes_overview`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_contract_changes_overview` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_contract_changes_overview` AS + select + `contract_printed`.`contractID` AS `contractID`, + `contract_printed`.`printedDatetime` AS `printedDatetime`, +@@ -32694,7 +32694,7 @@ + + DROP VIEW IF EXISTS `view_count_child`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_count_child` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_count_child` AS + select + distinct `contract`.`childID` AS `childID`, + `getBlobIntValue`(`child`.`countChildNumber`,NULL,NULL) AS `childCountNumber`, +@@ -32729,7 +32729,7 @@ + + DROP VIEW IF EXISTS `view_custody`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_custody` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_custody` AS + select + `cus`.`custodyID` AS `custody_custodyID`, + `getBlobStringValue`(`cus`.`hash`,NULL,NULL) AS `custody_hash`, +@@ -32785,7 +32785,7 @@ + + DROP VIEW IF EXISTS `view_emergency_person`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_emergency_person` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_emergency_person` AS + select + `contract`.`childID` AS `child_childID`, + `contract`.`contractID` AS `contract_contractID`, +@@ -32818,7 +32818,7 @@ + + DROP VIEW IF EXISTS `view_group`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_group` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_group` AS + select + `institute_group`.`groupID` AS `institute_group_groupID`, + `institute_group`.`groupName` AS `institute_group_groupName`, +@@ -32851,7 +32851,7 @@ + + DROP VIEW IF EXISTS `view_institute`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_institute` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_institute` AS + select + `institute`.`instituteID` AS `institute_instituteID`, + `institute`.`name` AS `institute_name`, +@@ -32893,7 +32893,7 @@ + + DROP VIEW IF EXISTS `view_personal_key_list`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_personal_key_list` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_personal_key_list` AS + select + `contract`.`contractID` AS `contract_contractID`, + `child`.`childID` AS `child_childID`, +@@ -32934,7 +32934,7 @@ + + DROP VIEW IF EXISTS `view_place`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_place` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_place` AS + select + `place`.`placeID` AS `place_placeID`, + `place`.`placeName` AS `place_placeName`, +@@ -32958,7 +32958,7 @@ + + DROP VIEW IF EXISTS `view_place_taken`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_place_taken` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_place_taken` AS + select + `contract`.`contractID` AS `contract_contractID`, + `child`.`childID` AS `child_childID`, +@@ -33044,7 +33044,7 @@ + + DROP VIEW IF EXISTS `view_portal_prereservationlist_entry`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_portal_prereservationlist_entry` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_portal_prereservationlist_entry` AS + select + `portal_prereservationlist_entry`.`portalPrereservationListID` AS `portal_prereservationlist_entry_portalPrereservationListID`, + `getXmlValue`(`portal_prereservationlist_entry`.`prereservationData`) AS `portal_prereservationlist_entry_prereservationData`, +@@ -33075,7 +33075,7 @@ + + DROP VIEW IF EXISTS `view_prereservationlist_entry`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_prereservationlist_entry` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_prereservationlist_entry` AS + select + `prereservationlist_entry`.`prereservationlistEntryID` AS `prereservationlist_entry_prereservationlistEntryID`, + `institutepre`.`instituteID` AS `institute_instituteID`, +@@ -33176,7 +33176,7 @@ + + DROP VIEW IF EXISTS `view_saved_contract`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_saved_contract` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_saved_contract` AS + select + `saved_contract`.`savedContractID` AS `saved_contract_savedContractID`, + `getXmlValue`(`saved_contract`.`contractData`) AS `saved_contract_contractData`, +--- a/Database/install_dev_tc_2011-04-30_019.sql ++++ b/Database/install_dev_tc_2011-04-30_019.sql +@@ -67,7 +67,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `address_before_ins_tr` BEFORE INSERT ON `address` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `address_before_ins_tr` BEFORE INSERT ON `address` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -121,7 +121,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `agb_before_ins_tr_new` BEFORE INSERT ON `agb` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `agb_before_ins_tr_new` BEFORE INSERT ON `agb` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -145,7 +145,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `agb_before_upd_tr_new` BEFORE UPDATE ON `agb` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `agb_before_upd_tr_new` BEFORE UPDATE ON `agb` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -381,7 +381,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `care_time_before_ins_tr1` BEFORE INSERT ON `care_time` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `care_time_before_ins_tr1` BEFORE INSERT ON `care_time` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -405,7 +405,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `care_time_before_upd_tr` BEFORE UPDATE ON `care_time` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `care_time_before_upd_tr` BEFORE UPDATE ON `care_time` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -458,7 +458,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `carrier_before_ins_tr_new` BEFORE INSERT ON `carrier` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `carrier_before_ins_tr_new` BEFORE INSERT ON `carrier` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -482,7 +482,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `carrier_before_upd_tr_new` BEFORE UPDATE ON `carrier` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `carrier_before_upd_tr_new` BEFORE UPDATE ON `carrier` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -609,7 +609,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `certificate_before_ins_tr_new` BEFORE INSERT ON `certificate` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `certificate_before_ins_tr_new` BEFORE INSERT ON `certificate` + FOR EACH ROW + BEGIN + +@@ -638,7 +638,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `certificate_before_upd_tr_new` BEFORE UPDATE ON `certificate` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `certificate_before_upd_tr_new` BEFORE UPDATE ON `certificate` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -736,7 +736,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `child_before_ins_tr_new` BEFORE INSERT ON `child` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `child_before_ins_tr_new` BEFORE INSERT ON `child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -760,7 +760,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `child_before_upd_tr` BEFORE UPDATE ON `child` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `child_before_upd_tr` BEFORE UPDATE ON `child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -800,7 +800,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `child_eat_meal_before_ins_tr_new` BEFORE INSERT ON `child_eat_meal` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `child_eat_meal_before_ins_tr_new` BEFORE INSERT ON `child_eat_meal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -835,7 +835,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `child_has_child_as_sibling_before_ins_tr_new` BEFORE INSERT ON `child_has_child_as_sibling` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `child_has_child_as_sibling_before_ins_tr_new` BEFORE INSERT ON `child_has_child_as_sibling` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -858,7 +858,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `child_has_child_as_sibling_before_upd_tr_new` BEFORE UPDATE ON `child_has_child_as_sibling` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `child_has_child_as_sibling_before_upd_tr_new` BEFORE UPDATE ON `child_has_child_as_sibling` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -944,7 +944,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `child_tc_data_before_ins_tr_new` BEFORE INSERT ON `child_tc_data` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `child_tc_data_before_ins_tr_new` BEFORE INSERT ON `child_tc_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -986,7 +986,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `child_trusted_before_ins_tr_new` BEFORE INSERT ON `child_trusted` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `child_trusted_before_ins_tr_new` BEFORE INSERT ON `child_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1009,7 +1009,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `child_trusted_before_upd_tr` BEFORE UPDATE ON `child_trusted` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `child_trusted_before_upd_tr` BEFORE UPDATE ON `child_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1072,7 +1072,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `contact_before_ins_tr_new` BEFORE INSERT ON `contact` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `contact_before_ins_tr_new` BEFORE INSERT ON `contact` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1098,7 +1098,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `contact_before_upd_tr_new` BEFORE UPDATE ON `contact` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `contact_before_upd_tr_new` BEFORE UPDATE ON `contact` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1196,7 +1196,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `contract_before_ins_tr_new` BEFORE INSERT ON `contract` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `contract_before_ins_tr_new` BEFORE INSERT ON `contract` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1260,7 +1260,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `contract_finance_data_before_ins_tr_new` BEFORE INSERT ON `contract_finance_data` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `contract_finance_data_before_ins_tr_new` BEFORE INSERT ON `contract_finance_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1287,7 +1287,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `contract_finance_data_before_upd_tr_new` BEFORE UPDATE ON `contract_finance_data` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `contract_finance_data_before_upd_tr_new` BEFORE UPDATE ON `contract_finance_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1421,7 +1421,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `contract_has_custody_as_contractpartner_before_ins_tr` BEFORE INSERT ON `contract_has_custody_as_contractpartner` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `contract_has_custody_as_contractpartner_before_ins_tr` BEFORE INSERT ON `contract_has_custody_as_contractpartner` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1460,7 +1460,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `contract_has_meal_before_ins_tr` BEFORE INSERT ON `contract_has_meal` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `contract_has_meal_before_ins_tr` BEFORE INSERT ON `contract_has_meal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1574,7 +1574,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `custody_before_ins_tr_new` BEFORE INSERT ON `custody` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `custody_before_ins_tr_new` BEFORE INSERT ON `custody` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1625,7 +1625,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `custody_has_child_before_ins_tr_new` BEFORE INSERT ON `custody_has_child` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `custody_has_child_before_ins_tr_new` BEFORE INSERT ON `custody_has_child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1648,7 +1648,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `custody_has_child_before_upd_tr_new` BEFORE UPDATE ON `custody_has_child` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `custody_has_child_before_upd_tr_new` BEFORE UPDATE ON `custody_has_child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1714,7 +1714,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `custody_trusted_before_ins_tr_new` BEFORE INSERT ON `custody_trusted` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `custody_trusted_before_ins_tr_new` BEFORE INSERT ON `custody_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1739,7 +1739,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `custody_trusted_before_upd_tr_new` BEFORE UPDATE ON `custody_trusted` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `custody_trusted_before_upd_tr_new` BEFORE UPDATE ON `custody_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1793,7 +1793,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `custody_work_before_ins_tr` BEFORE INSERT ON `custody_work` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `custody_work_before_ins_tr` BEFORE INSERT ON `custody_work` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1822,7 +1822,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `custody_work_before_upd_tr` BEFORE UPDATE ON `custody_work` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `custody_work_before_upd_tr` BEFORE UPDATE ON `custody_work` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1975,7 +1975,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `disability_before_ins_tr_new` BEFORE INSERT ON `disability` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `disability_before_ins_tr_new` BEFORE INSERT ON `disability` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2001,7 +2001,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `disability_before_upd_tr_new` BEFORE UPDATE ON `disability` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `disability_before_upd_tr_new` BEFORE UPDATE ON `disability` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2047,7 +2047,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `doctor_before_ins_tr` BEFORE INSERT ON `doctor` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `doctor_before_ins_tr` BEFORE INSERT ON `doctor` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2074,7 +2074,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `doctor_before_upd_tr` BEFORE UPDATE ON `doctor` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `doctor_before_upd_tr` BEFORE UPDATE ON `doctor` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2274,7 +2274,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `emergency_person_before_ins_tr` BEFORE INSERT ON `emergency_person` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `emergency_person_before_ins_tr` BEFORE INSERT ON `emergency_person` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2302,7 +2302,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `emergency_person_before_upd_tr` BEFORE UPDATE ON `emergency_person` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `emergency_person_before_upd_tr` BEFORE UPDATE ON `emergency_person` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2643,7 +2643,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `institute_before_ins_tr_new` BEFORE INSERT ON `institute` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `institute_before_ins_tr_new` BEFORE INSERT ON `institute` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2667,7 +2667,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `institute_before_upd_tr_new` BEFORE UPDATE ON `institute` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `institute_before_upd_tr_new` BEFORE UPDATE ON `institute` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2760,7 +2760,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `group_before_ins_tr_new` BEFORE INSERT ON `institute_group` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `group_before_ins_tr_new` BEFORE INSERT ON `institute_group` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2788,7 +2788,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `group_before_upd_tr_new` BEFORE UPDATE ON `institute_group` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `group_before_upd_tr_new` BEFORE UPDATE ON `institute_group` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2877,7 +2877,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `institute_has_care_time_before_ins_tr` BEFORE INSERT ON `institute_has_care_time` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `institute_has_care_time_before_ins_tr` BEFORE INSERT ON `institute_has_care_time` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2968,7 +2968,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `insttitute_has_institute_type_before_ins_tr_new` BEFORE INSERT ON `institute_has_institute_type` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `insttitute_has_institute_type_before_ins_tr_new` BEFORE INSERT ON `institute_has_institute_type` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2994,7 +2994,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `insttitute_has_institute_type_before_upd_tr_new` BEFORE UPDATE ON `institute_has_institute_type` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `insttitute_has_institute_type_before_upd_tr_new` BEFORE UPDATE ON `institute_has_institute_type` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3198,7 +3198,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `management_hierarchy_object_before_ins_tr_new` BEFORE INSERT ON `management_hierarchy_object` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `management_hierarchy_object_before_ins_tr_new` BEFORE INSERT ON `management_hierarchy_object` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3220,7 +3220,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `management_hierarchy_object_before_upd_tr_new` BEFORE UPDATE ON `management_hierarchy_object` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `management_hierarchy_object_before_upd_tr_new` BEFORE UPDATE ON `management_hierarchy_object` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3338,7 +3338,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `partner_firm_before_ins_tr_new` BEFORE INSERT ON `partner_firm` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `partner_firm_before_ins_tr_new` BEFORE INSERT ON `partner_firm` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3419,7 +3419,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `payer_before_ins_tr_new` BEFORE INSERT ON `payer` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `payer_before_ins_tr_new` BEFORE INSERT ON `payer` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3442,7 +3442,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `payer_before_upd_tr` BEFORE UPDATE ON `payer` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `payer_before_upd_tr` BEFORE UPDATE ON `payer` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3502,7 +3502,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `person_data_before_ins_tr_new` BEFORE INSERT ON `person_data` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `person_data_before_ins_tr_new` BEFORE INSERT ON `person_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3639,7 +3639,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `personal_before_ins_tr_new` BEFORE INSERT ON `personal` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `personal_before_ins_tr_new` BEFORE INSERT ON `personal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3666,7 +3666,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `personal_before_upd_tr_new` BEFORE UPDATE ON `personal` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `personal_before_upd_tr_new` BEFORE UPDATE ON `personal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3716,7 +3716,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `place_before_ins_tr_new` BEFORE INSERT ON `place` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `place_before_ins_tr_new` BEFORE INSERT ON `place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3742,7 +3742,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `place_before_upd_tr_new` BEFORE UPDATE ON `place` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `place_before_upd_tr_new` BEFORE UPDATE ON `place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3811,7 +3811,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `portal_prereservationlist_entry_before_ins_tr` BEFORE INSERT ON `portal_prereservationlist_entry` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `portal_prereservationlist_entry_before_ins_tr` BEFORE INSERT ON `portal_prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3841,7 +3841,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `portal_prereservationlist_entry_before_upd_tr` BEFORE UPDATE ON `portal_prereservationlist_entry` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `portal_prereservationlist_entry_before_upd_tr` BEFORE UPDATE ON `portal_prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3965,7 +3965,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `prereservationlist_entry_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `prereservationlist_entry_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3994,7 +3994,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `prereservationlist_entry_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `prereservationlist_entry_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4099,7 +4099,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `prereservationlist_entry_has_place_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry_has_place` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `prereservationlist_entry_has_place_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry_has_place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4122,7 +4122,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `prereservationlist_entry_has_place_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry_has_place` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `prereservationlist_entry_has_place_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry_has_place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4180,7 +4180,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `presentlist_entry_before_ins_tr_new` BEFORE INSERT ON `presentlist_entry` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `presentlist_entry_before_ins_tr_new` BEFORE INSERT ON `presentlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4206,7 +4206,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `presentlist_entry_before_upd_tr_new` BEFORE UPDATE ON `presentlist_entry` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `presentlist_entry_before_upd_tr_new` BEFORE UPDATE ON `presentlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4274,7 +4274,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `religion_before_ins_tr_new` BEFORE INSERT ON `religion` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `religion_before_ins_tr_new` BEFORE INSERT ON `religion` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4296,7 +4296,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `religion_before_upd_tr_new` BEFORE UPDATE ON `religion` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `religion_before_upd_tr_new` BEFORE UPDATE ON `religion` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4393,7 +4393,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `saved_contract_before_ins_tr_new` BEFORE INSERT ON `saved_contract` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `saved_contract_before_ins_tr_new` BEFORE INSERT ON `saved_contract` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4423,7 +4423,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `saved_contract_before_upd_tr_new` BEFORE UPDATE ON `saved_contract` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `saved_contract_before_upd_tr_new` BEFORE UPDATE ON `saved_contract` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4562,7 +4562,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `statistic_taken_places_before_ins_tr` BEFORE INSERT ON `statistic_taken_places` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `statistic_taken_places_before_ins_tr` BEFORE INSERT ON `statistic_taken_places` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4586,7 +4586,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `statistic_taken_places_before_upd_tr` BEFORE UPDATE ON `statistic_taken_places` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `statistic_taken_places_before_upd_tr` BEFORE UPDATE ON `statistic_taken_places` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4637,7 +4637,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `tc_message_before_ins_tr` BEFORE INSERT ON `tc_message` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `tc_message_before_ins_tr` BEFORE INSERT ON `tc_message` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4670,7 +4670,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `trustcenter_before_ins_tr_new` BEFORE INSERT ON `trustcenter` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `trustcenter_before_ins_tr_new` BEFORE INSERT ON `trustcenter` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4749,7 +4749,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `user_before_ins_tr` BEFORE INSERT ON `user` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `user_before_ins_tr` BEFORE INSERT ON `user` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4772,7 +4772,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `user_before_upd_tr` BEFORE UPDATE ON `user` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `user_before_upd_tr` BEFORE UPDATE ON `user` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4891,7 +4891,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `user_has_tc_message_folder_before_ins_tr` BEFORE INSERT ON `user_has_tc_message_folder` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `user_has_tc_message_folder_before_ins_tr` BEFORE INSERT ON `user_has_tc_message_folder` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -5547,7 +5547,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `createNewXml`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `createNewXml`( + newValue TEXT + ) RETURNS blob + DETERMINISTIC +@@ -5574,7 +5574,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `decryptValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `decryptValue`( + v BLOB + ) RETURNS blob + DETERMINISTIC +@@ -5597,7 +5597,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `encryptValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `encryptValue`( + v TEXT + ) RETURNS blob + DETERMINISTIC +@@ -5618,7 +5618,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_count_prereservations_to_child`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_count_prereservations_to_child`( + childIDValue INTEGER(11), + instituteTypeIDValue INTEGER(11), + getOnlyRejectedPrereservations TINYINT(1) +@@ -5709,7 +5709,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_count_sibling`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_count_sibling`( + childID INTEGER(11) + ) RETURNS smallint(4) + DETERMINISTIC +@@ -5761,7 +5761,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_double_name_person_block_ok`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_double_name_person_block_ok`( + typeValue ENUM('child','custody'), + lastName VARCHAR(255), + firstName3Chars VARCHAR(3) +@@ -5813,7 +5813,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_actual_contract_has_place_ID`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_actual_contract_has_place_ID`( + contractIDValue INTEGER(11), + lookToDate DATE + ) RETURNS int(11) +@@ -5872,7 +5872,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_all_hours_from_care`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_all_hours_from_care`( + hoursValue DECIMAL(3,1), + morningValue DECIMAL(3,1), + afternoonValue DECIMAL(3,1) +@@ -5911,7 +5911,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_care_timeIDs_by_prereservation`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_care_timeIDs_by_prereservation`( + preresID INTEGER(11) + ) RETURNS text CHARSET utf8 + DETERMINISTIC +@@ -5958,7 +5958,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_care_time_description_short`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_care_time_description_short`( + caretimeDescription VARCHAR(255), + additionalPaymentType INTEGER(11) + ) RETURNS varchar(255) CHARSET utf8 +@@ -6035,7 +6035,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_changes_to_contract_by_overview`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_changes_to_contract_by_overview`( + contractIDValue INTEGER(11), + printedDatetimeValue DATETIME, + contractInCarrierIDValue INTEGER(11) +@@ -7622,7 +7622,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_contracts_institute_name_by_childID`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_contracts_institute_name_by_childID`( + childIDValue INTEGER(11) + ) RETURNS varchar(255) CHARSET utf8 + DETERMINISTIC +@@ -7700,7 +7700,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_contracts_institute_name_by_custodyID`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_contracts_institute_name_by_custodyID`( + custodyIDValue INTEGER(11) + ) RETURNS varchar(255) CHARSET utf8 + DETERMINISTIC +@@ -7782,7 +7782,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_contract_has_place_ID_at_time`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_contract_has_place_ID_at_time`( + contractIDValue INTEGER(11), + lookTo DATE + ) RETURNS int(11) +@@ -7824,7 +7824,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_contract_instituteID`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_contract_instituteID`( + contractValue INTEGER(11) + ) RETURNS int(11) + DETERMINISTIC +@@ -7856,7 +7856,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_contract_instituteIDs_from_sibling`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_contract_instituteIDs_from_sibling`( + childIDValue INTEGER(11) + ) RETURNS varchar(255) CHARSET utf8 + DETERMINISTIC +@@ -7910,7 +7910,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_count_active_places_in_group`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_count_active_places_in_group`( + groupIDValue INTEGER(11) + ) RETURNS smallint(4) + DETERMINISTIC +@@ -7931,7 +7931,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_count_allocations_by_place`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_count_allocations_by_place`( + placeIDValue INTEGER(11) + ) RETURNS tinyint(4) + DETERMINISTIC +@@ -7958,7 +7958,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_created_places_in_group`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_created_places_in_group`( + groupIDValue INTEGER(11) + ) RETURNS int(11) + DETERMINISTIC +@@ -7979,7 +7979,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_crypt_id`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_crypt_id`( + colName VaRCHAR(255) + ) RETURNS varchar(255) CHARSET utf8 + DETERMINISTIC +@@ -8001,7 +8001,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_custodies_by_child`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_custodies_by_child`( + childIDValue INTEGER(11) + ) RETURNS text CHARSET utf8 + DETERMINISTIC +@@ -8052,7 +8052,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_not_printed_contract_to_child`(childIDValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_not_printed_contract_to_child`(childIDValue INTEGER(11), + inCarrierID INTEGER(11), + inInstituteID INTEGER(11)) RETURNS int(11) + DETERMINISTIC +@@ -8121,7 +8121,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_not_printed_contract_to_custody`(custodyValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_not_printed_contract_to_custody`(custodyValue INTEGER(11), + inCarrierID INTEGER(11), + inInstituteID INTEGER(11)) RETURNS int(11) + DETERMINISTIC +@@ -8193,7 +8193,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_prereservations_institute_name_by_childID`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_prereservations_institute_name_by_childID`( + childIDValue INTEGER(11), + isReserved TINYINT(1) + ) RETURNS varchar(255) CHARSET utf8 +@@ -8315,7 +8315,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_prereservations_institute_name_by_custodyID`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_prereservations_institute_name_by_custodyID`( + custodyIDValue INTEGER(11), + isReserved TINYINT(1) + ) RETURNS varchar(255) CHARSET utf8 +@@ -8437,7 +8437,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_prereservation_status_color`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_prereservation_status_color`( + preStatus VARCHAR(255), + rejectionReason VARCHAR(255), + reservationRemoveReason VARCHAR(255), +@@ -8520,7 +8520,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_recipient`(financeDataValue INTEGER(11)) RETURNS varchar(255) CHARSET utf8 ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_recipient`(financeDataValue INTEGER(11)) RETURNS varchar(255) CHARSET utf8 + DETERMINISTIC + BEGIN + +@@ -8549,7 +8549,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_siblings_by_child`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_siblings_by_child`( + siblingIDValue INTEGER(11) + ) RETURNS text CHARSET utf8 + DETERMINISTIC +@@ -8623,7 +8623,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_user_carrierID`() RETURNS int(11) ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_user_carrierID`() RETURNS int(11) + DETERMINISTIC + BEGIN + +@@ -8643,7 +8643,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_user_instituteID`() RETURNS int(11) ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_user_instituteID`() RETURNS int(11) + DETERMINISTIC + BEGIN + +@@ -8663,7 +8663,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_has_child_contract`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_has_child_contract`( + childValue INTEGER(11), + instituteTypeIDValue INTEGER(11), + carrierIDValue INTEGER(11) +@@ -8780,7 +8780,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_is_address_in_institute_own_township`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_is_address_in_institute_own_township`( + instituteIDValue INTEGER(11), + zipValue VARCHAR(255), + cityValue VARCHAR(255), +@@ -8823,7 +8823,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_next_id`() RETURNS bigint(20) ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_next_id`() RETURNS bigint(20) + DETERMINISTIC + BEGIN + UPDATE sequence SET value=last_insert_id(value)+1; +@@ -8843,7 +8843,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getBeginAndEndDate`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getBeginAndEndDate`( + my_id INTEGER(11), + lookTo DATETIME + ) RETURNS date +@@ -8874,7 +8874,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getBlobDatetimeValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getBlobDatetimeValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -8935,7 +8935,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getBlobDateValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getBlobDateValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -8997,7 +8997,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getBlobIntValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getBlobIntValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9059,7 +9059,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getBlobStringValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getBlobStringValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9122,7 +9122,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getBlobTextValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getBlobTextValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9183,7 +9183,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getBooleanValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getBooleanValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9244,7 +9244,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getContractEndDate`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getContractEndDate`( + contractIDValue INTEGER(11), + lookTo DATETIME + ) RETURNS date +@@ -9297,7 +9297,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getContractPartner`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getContractPartner`( + contractIDValue BIGINT, + numberValue INTEGER(11), + validTo DATE, +@@ -9339,7 +9339,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getContractStartDate`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getContractStartDate`( + contractIDValue INTEGER(11), + lookTo DATETIME + ) RETURNS date +@@ -9396,7 +9396,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getDatetimeValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getDatetimeValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9457,7 +9457,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getDateValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getDateValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9518,7 +9518,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getDecValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getDecValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9579,7 +9579,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getFulltimeEquivalentValue`(careTimeIDValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getFulltimeEquivalentValue`(careTimeIDValue INTEGER(11), + fevType ENUM('basic','over','integrated','additional'), + validTo DATE, + lookTo DATETIME) RETURNS decimal(5,4) +@@ -9624,7 +9624,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getFulltimeEquivalentValueSum`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getFulltimeEquivalentValueSum`( + sumChildsValue FLOAT, + isIntegratedValue TINYINT(1), + fevBasicValue DECIMAL(5,4), +@@ -9673,7 +9673,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getIntValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getIntValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME, +@@ -9735,7 +9735,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getLastContractPrintedDatetime`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getLastContractPrintedDatetime`( + contractIDValue INTEGER(11), + lookTo DATETIME + ) RETURNS datetime +@@ -9772,7 +9772,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getNextGroupName`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getNextGroupName`( + contractIDValue INTEGER(11), + dayValue DATE + ) RETURNS varchar(255) CHARSET utf8 +@@ -9808,7 +9808,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getOrderPositionToInstituteTypeID`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getOrderPositionToInstituteTypeID`( + instTypeIDValue INTEGER(11) + ) RETURNS int(11) + DETERMINISTIC +@@ -9830,7 +9830,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getServiceHoursSumByFev`(dateValue DATE, ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getServiceHoursSumByFev`(dateValue DATE, + sumChildsValue FLOAT, + isIntegratedValue TINYINT(1), + fevBasicValue DECIMAL(5,4), +@@ -9936,7 +9936,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getStringValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getStringValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9997,7 +9997,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getValidFrom`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getValidFrom`( + contractIDValue INTEGER(11) + ) RETURNS date + DETERMINISTIC +@@ -10027,7 +10027,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getXmlValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getXmlValue`( + colName TEXT + ) RETURNS text CHARSET utf8 + DETERMINISTIC +@@ -10056,7 +10056,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `hasContractUnconfirmedChanges`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `hasContractUnconfirmedChanges`( + contractIDValue INTEGER(11) + ) RETURNS tinyint(1) + BEGIN +@@ -10086,7 +10086,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `isOverCare`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `isOverCare`( + hoursAfternoonValue DECIMAL(3,1), + hoursPerDayValue DECIMAL(3,1), + hoursMorningValue DECIMAL(3,1) +@@ -10134,7 +10134,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `months_between`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `months_between`( + olderDate DATE, + newerDate DATE + ) RETURNS int(11) +@@ -10186,7 +10186,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setBlobDatetimeValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setBlobDatetimeValue`( + valueid INTEGER(11), + setValue DATETIME, + validDate DATE, +@@ -10247,7 +10247,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setBlobDateValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setBlobDateValue`( + valueid INTEGER(11), + setValue DATE, + validDate DATE, +@@ -10307,7 +10307,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setBlobIntValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setBlobIntValue`( + valueid INTEGER(11), + setValue INTEGER(11), + validDate DATE, +@@ -10368,7 +10368,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setBlobStringValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setBlobStringValue`( + valueid INTEGER(11), + setValue VARCHAR(255), + validDate DATE, +@@ -10429,7 +10429,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setBlobTextValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setBlobTextValue`( + valueid INTEGER(11), + setValue TEXT, + validDate DATE, +@@ -10490,7 +10490,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setBooleanValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setBooleanValue`( + valueid INTEGER(11), + setValue TINYINT(1), + validDate DATE, +@@ -10550,7 +10550,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setDatetimeValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setDatetimeValue`( + valueid INTEGER(11), + setValue DATETIME, + validDate DATE, +@@ -10610,7 +10610,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setDateValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setDateValue`( + valueid INTEGER(11), + setValue DATE, + validDate DATE, +@@ -10671,7 +10671,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setDecValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setDecValue`( + valueid BIGINT(20), + setValue DECIMAL(15,5), + validDate DATE, +@@ -10734,7 +10734,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setIntValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setIntValue`( + valueid INTEGER(11), + setValue INTEGER(11), + validDate DATE, +@@ -10795,7 +10795,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setNewXmlValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setNewXmlValue`( + newValue TEXT, + colName TEXT + ) RETURNS blob +@@ -10824,7 +10824,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setStringValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setStringValue`( + valueid INTEGER(11), + setValue VARCHAR(255), + validDate DATE, +@@ -10885,7 +10885,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_calculation_feeundependent_payables`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_calculation_feeundependent_payables`( + IN clientIDValue INTEGER(11), + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), +@@ -11335,7 +11335,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_change_contract_end_date`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_change_contract_end_date`( + IN cryptContractIDValue VARCHAR(255), + IN endDateValue DATE + ) +@@ -11392,7 +11392,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_child_double_occupancy`(IN year INTEGER(11)) ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_child_double_occupancy`(IN year INTEGER(11)) + double_occupancy:BEGIN + + DECLARE year_begin, year_end, date_1, date_2 DATE; +@@ -11813,7 +11813,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_child_older_max_age`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_child_older_max_age`( + IN lookDateValue DATE + ) + BEGIN +@@ -11863,7 +11863,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_clear_acl`() ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_clear_acl`() + BEGIN + DECLARE deleteMsg VARCHAR(255) DEFAULT 'deleteOK'; + +@@ -11893,7 +11893,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_clear_acl_action_deny_by_user`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_clear_acl_action_deny_by_user`( + IN userIDValue INTEGER(11) + ) + clear_acl_action_by_user:BEGIN +@@ -11942,7 +11942,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_correct_multicreated_child`(IN showSelects TINYINT, ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_correct_multicreated_child`(IN showSelects TINYINT, + IN cryptMasterChild TEXT, + IN cryptSlave1 TEXT, + IN cryptSlave2 TEXT, +@@ -12398,7 +12398,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_correct_multicreated_custody`(IN showSelects TINYINT(1), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_correct_multicreated_custody`(IN showSelects TINYINT(1), + IN cryptMasterCustody TEXT, + IN cryptSlave1 TEXT, + IN cryptSlave2 TEXT, +@@ -12780,7 +12780,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_carrier`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_carrier`( + IN carrierCryptIDValue VARCHAR(255) + ) + delete_carrier:BEGIN +@@ -12927,7 +12927,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_child`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_child`( + IN childValue INTEGER(11), + IN deleteChild BOOLEAN, + IN deleteContract BOOLEAN, +@@ -13308,7 +13308,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_contract`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_contract`( + IN contractIDValue INTEGER(11), + IN cryptContractIDValue VARCHAR(255) + ) +@@ -13431,7 +13431,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_contractFinanceData`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_contractFinanceData`( + IN contractIDValue INTEGER(11) + ) + delete_contract_finance_data:BEGIN +@@ -13492,7 +13492,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_custody`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_custody`( + IN custodyValue INTEGER(11) + ) + delete_custody:BEGIN +@@ -13673,7 +13673,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_doctor`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_doctor`( + IN doctorIDValue TEXT + ) + delete_doctor:BEGIN +@@ -13802,7 +13802,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_group`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_group`( + IN groupCryptIDValue VARCHAR(255) + ) + delete_group:BEGIN +@@ -13873,7 +13873,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_institute`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_institute`( + IN instituteIDValue TEXT + ) + delete_institute:BEGIN +@@ -14149,7 +14149,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_prereservationlist_entry`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_prereservationlist_entry`( + IN prereservationlistEntryIDValue TEXT + ) + delete_prereservationlist_entry:BEGIN +@@ -14226,7 +14226,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_user_has_role`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_user_has_role`( + IN userIDValue INTEGER(11), + IN roleIDValue INTEGER(11) + ) +@@ -14276,7 +14276,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_all_contract_changes_in_period`(IN contractIDValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_all_contract_changes_in_period`(IN contractIDValue INTEGER(11), + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), + IN insertOnStartDate DATE, +@@ -16560,7 +16560,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_changes_info_to_contract_by_printedDatetime`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_changes_info_to_contract_by_printedDatetime`( + IN contractIDValue INTEGER(11), + IN printedDatetime DATETIME, + IN printedDatetimeLast DATETIME +@@ -20393,7 +20393,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_child_custody_data_changes_iO_anke`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_child_custody_data_changes_iO_anke`( + IN personType ENUM('child','custody'), + IN personID INTEGER(11), + IN startDate DATE, +@@ -21516,7 +21516,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_child_custody_data_changes_iO_end_anke`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_child_custody_data_changes_iO_end_anke`( + IN personType ENUM('child','custody'), + IN personID INTEGER(11), + IN startDate DATE, +@@ -22614,7 +22614,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_child_custody_data_changes_vF_anke`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_child_custody_data_changes_vF_anke`( + IN personType ENUM('child','custody'), + IN personID INTEGER(11), + IN startDate DATE, +@@ -23780,7 +23780,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_contract_data_changes_iO_anke`(IN contractIDValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_contract_data_changes_iO_anke`(IN contractIDValue INTEGER(11), + IN startDate DATE, + IN endDate DATE) + BEGIN +@@ -24384,7 +24384,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_contract_data_changes_iO_end_anke`(IN contractIDValue INTEGER, ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_contract_data_changes_iO_end_anke`(IN contractIDValue INTEGER, + IN startDate DATE, + IN endDate DATE) + BEGIN +@@ -24988,7 +24988,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_contract_data_changes_vF_anke`(IN contractIDValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_contract_data_changes_vF_anke`(IN contractIDValue INTEGER(11), + IN startDate DATE, + IN endDate DATE) + BEGIN +@@ -25605,7 +25605,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_history_entries_for_id`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_history_entries_for_id`( + IN cryptHistoryIDValue TEXT + ) + get_history_entries_for_id:BEGIN +@@ -25813,7 +25813,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_carrier`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_carrier`( + IN carrierIDValue TEXT, + IN nameValue VARCHAR(255), + IN hasAddressValue TINYINT(1), +@@ -25951,7 +25951,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_child`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_child`( + IN childIDValue TEXT, + IN hashValue TEXT, + IN streetValue VARCHAR(255), +@@ -26226,7 +26226,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_child_tc_data`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_child_tc_data`( + IN childIDValue TEXT, + IN healthInsuranceValue TEXT, + IN healthInsuranceNoValue TEXT, +@@ -26319,7 +26319,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_contract`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_contract`( + IN cryptContractIDValue VARCHAR(255), + IN childIDValue INTEGER(11), + IN payerIDValue INTEGER(11), +@@ -26540,7 +26540,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_contract_has_place`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_contract_has_place`( + IN contractIDValue INTEGER(11), + IN cryptPlaceIDValue VARCHAR(255), + IN validFromDateValue DATE, +@@ -26617,7 +26617,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_custody`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_custody`( + IN custodyIDValue TEXT, + IN hashValue TEXT, + IN streetValue VARCHAR(255), +@@ -26806,7 +26806,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_custody_work`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_custody_work`( + IN custodyIDValue TEXT, + IN workNameValue TEXT, + IN workTypeValue TEXT, +@@ -26996,7 +26996,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_doctor`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_doctor`( + IN doctorIDValue TEXT, + IN childIDValue INTEGER(11), + IN nameValue TEXT, +@@ -27178,7 +27178,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_emergency_person`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_emergency_person`( + IN emergencyPersonIDValue TEXT, + IN firstNameValue VARCHAR(255), + IN lastNameValue VARCHAR(255), +@@ -27330,7 +27330,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_fev`(IN careTimeIDValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_fev`(IN careTimeIDValue INTEGER(11), + IN basicValue DECIMAL(15,5), + IN overValue DECIMAL(15,5), + IN integratedValue DECIMAL(15,5), +@@ -27375,7 +27375,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_group`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_group`( + IN groupIDValue TEXT, + IN instituteIDValue INTEGER(11), + IN groupNameValue VARCHAR(255), +@@ -27471,7 +27471,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_institute`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_institute`( + IN instituteIDValue TEXT, + IN carrierIDValue INTEGER(11), + IN inCarrierFromDateValue DATE, +@@ -27649,7 +27649,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_institute_has_institute_type`(IN instituteIDValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_institute_has_institute_type`(IN instituteIDValue INTEGER(11), + IN instituteTypeIDValue INTEGER(11), + IN validFromDateValue DATE, + IN validUntilDateValue DATE, +@@ -27785,7 +27785,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_payer`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_payer`( + IN payerIDValue INTEGER(11), + IN payerNameValue VARCHAR(255), + IN payerNoValue INTEGER(11), +@@ -27921,7 +27921,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_prereservationlist_entry`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_prereservationlist_entry`( + IN prereservationlistEntryIDValue TEXT, + IN childIDValue INTEGER(11), + IN setByPortaluserIDValue INTEGER(11), +@@ -28065,7 +28065,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_sibling`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_sibling`( + IN cryptSiblingChildIDValue TEXT, + IN hashValue TEXT, + IN hashValuesCorrectValue TINYINT(1), +@@ -28209,7 +28209,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_user`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_user`( + IN userIDValue TEXT, + IN loginNameValue VARCHAR(255), + IN passwdValue VARCHAR(255), +@@ -28373,7 +28373,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_multicreated_person`(IN typeValue ENUM('child','custody'), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_multicreated_person`(IN typeValue ENUM('child','custody'), + IN limitBlocksValue INTEGER(11), + IN limitPerPageValue INTEGER(11)) + BEGIN +@@ -28673,7 +28673,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_print_new_ending_contracts`(IN monthStart DATE, ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_print_new_ending_contracts`(IN monthStart DATE, + IN monthEnd DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11)) +@@ -28799,7 +28799,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_change_age`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_change_age`( + IN dayValue DATE, + IN minAge INTEGER(11), + IN maxAge INTEGER(11) +@@ -28890,7 +28890,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_child_per_age_calc_type_own_ca`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_child_per_age_calc_type_own_ca`( + IN dayValue DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11) +@@ -30290,7 +30290,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_child_per_care_time`(IN monthStart DATE, ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_child_per_care_time`(IN monthStart DATE, + IN monthEnd DATE) + stat_vza:BEGIN + +@@ -30506,7 +30506,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_child_per_care_time2`(IN monthStart DATE, ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_child_per_care_time2`(IN monthStart DATE, + IN monthEnd DATE, + IN mandantIDValue INTEGER(11)) + stat_vza2:BEGIN +@@ -30736,7 +30736,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_classlevel`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_classlevel`( + IN dayValue DATE + ) + BEGIN +@@ -30843,7 +30843,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_contracts_ending`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_contracts_ending`( + IN dayValue DATE, + IN intervall INTEGER(11) + ) +@@ -30909,7 +30909,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_contracts_per_month`(IN monthStart DATE, ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_contracts_per_month`(IN monthStart DATE, + IN monthEnd DATE, + IN status ENUM('new','start','closed'), + IN carrierIDValue INTEGER(11), +@@ -31047,7 +31047,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_ending_finance_data`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_ending_finance_data`( + IN endingType ENUM('expired','ending'), + IN dayValue DATE, + IN intervall INTEGER(11) +@@ -31221,7 +31221,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_institute_has_child_per_age_and_township`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_institute_has_child_per_age_and_township`( + IN dayValue DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), +@@ -31982,7 +31982,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_siblings_outside`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_siblings_outside`( + IN dayValue DATE + ) + sibling_outside:BEGIN +@@ -32172,7 +32172,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_update_user_profile`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_update_user_profile`( + IN personalIDValue TEXT, + IN firstNameValue VARCHAR(255), + IN lastNameValue VARCHAR(255), +@@ -32239,7 +32239,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_view_place_taken`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_view_place_taken`( + IN groupValue TEXT, + IN beginValue DATE, + IN endValue DATE +@@ -32361,7 +32361,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `statistic_tp`(IN instValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `statistic_tp`(IN instValue INTEGER(11), + IN typeValue INTEGER(11), + IN dayValue DATE) + BEGIN +@@ -33392,7 +33392,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `check_contract_and_place_end_dates` AS select `contract`.`contractID` AS `contract_contractID`,`getBeginAndEndDate`(`contract`.`startDate`,now()) AS `contract_startDate`,`getBeginAndEndDate`(`contract`.`endDate`,now()) AS `contract_endDate`,`contract_has_place`.`placeID` AS `contract_has_place_placeID`,`contract_has_place`.`contractID` AS `contract_has_place_contractID`,`getBeginAndEndDate`(`contract_has_place`.`beginDate`,now()) AS `contract_has_place_beginDate`,`getBeginAndEndDate`(`contract_has_place`.`endDate`,now()) AS `contract_has_place_endDate` from (`contract` join `contract_has_place`) where ((`contract`.`contractID` = `contract_has_place`.`contractID`) and (`contract_has_place`.`ID` = (select `contract_has_place`.`ID` AS `ID` from `contract_has_place` where (`contract`.`contractID` = `contract_has_place`.`contractID`) order by `getBeginAndEndDate`(`contract_has_place`.`endDate`,now()) desc limit 1)) and (`getBeginAndEndDate`(`contract_has_place`.`endDate`,now()) > `getBeginAndEndDate`(`contract`.`endDate`,now()))) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33405,7 +33405,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_acl_rule` AS select `role`.`roleID` AS `role_roleID`,`role`.`name` AS `role_name`,`role`.`isAbstract` AS `role_isAbstract`,`role`.`level` AS `role_level`,`role_has_action`.`isAllow` AS `role_has_action_isAllow`,`role_has_action`.`isTcAllow` AS `role_has_action_isTcAllow`,`action`.`actionID` AS `action_actionID`,`action`.`name` AS `action_name`,`controller`.`controllerID` AS `controller_controllerID`,`controller`.`name` AS `controller_name`,`module`.`moduleID` AS `module_moduleID`,`module`.`name` AS `module_name` from ((((`role` join `role_has_action`) join `action`) join `controller`) join `module`) where ((`role`.`roleID` = `role_has_action`.`roleID`) and (`role_has_action`.`actionID` = `action`.`actionID`) and (`action`.`controllerID` = `controller`.`controllerID`) and (`controller`.`moduleID` = `module`.`moduleID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33418,7 +33418,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_address` AS select `a`.`addressID` AS `address_addressID`,`getBlobStringValue`(`a`.`street`,NULL,NULL) AS `address_street`,`getBlobStringValue`(`a`.`streetNo`,NULL,NULL) AS `address_streetNo`,`getBlobStringValue`(`a`.`zip`,NULL,NULL) AS `address_zip`,`getBlobTextValue`(`a`.`commentText`,NULL,NULL) AS `address_commentText`,`getBlobStringValue`(`a`.`state`,NULL,NULL) AS `address_state`,`getBlobStringValue`(`a`.`city`,NULL,NULL) AS `address_city`,`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL) AS `address_partOfCity`,`getBlobStringValue`(`a`.`country`,NULL,NULL) AS `address_country`,`a`.`latitude` AS `address_lat`,`a`.`longitude` AS `address_long`,`a`.`createDatetime` AS `address_createDatetime`,`a`.`updateDatetime` AS `address_updateDatetime` from `address` `a` */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33431,7 +33431,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_carrier` AS select `carrier`.`carrierID` AS `carrier_carrierID`,`carrier`.`name` AS `carrier_name`,`carrier`.`status` AS `carrier_status`,`carrier`.`createDatetime` AS `carrier_createDatetime`,`carrier`.`updateDatetime` AS `carrier_updateDatetime`,`carrier`.`lastPortalProfileUpdatedatetime` AS `carrier_lastPortalProfileUpdatedatetime`,`carrier`.`useAddressPool` AS `carrier_useAddressPool`,`carrier`.`doInstitutesConfigCatchmentAreas` AS `carrier_doInstitutesConfigCatchmentAreas`,`a`.`addressID` AS `address_addressID`,`getBlobStringValue`(`a`.`street`,NULL,NULL) AS `address_street`,`getBlobStringValue`(`a`.`streetNo`,NULL,NULL) AS `address_streetNo`,`getBlobStringValue`(`a`.`zip`,NULL,NULL) AS `address_zip`,`getBlobStringValue`(`a`.`state`,NULL,NULL) AS `address_state`,`getBlobStringValue`(`a`.`city`,NULL,NULL) AS `address_city`,`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL) AS `address_partOfCity`,`getBlobStringValue`(`a`.`country`,NULL,NULL) AS `address_country`,`getBlobStringValue`(`a`.`commentText`,NULL,NULL) AS `address_commentText` from ((`carrier` left join `carrier_has_address` on((`carrier_has_address`.`carrierID` = `carrier`.`carrierID`))) left join `address` `a` on((`carrier_has_address`.`addressID` = `a`.`addressID`))) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33444,7 +33444,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_child` AS select `child`.`childID` AS `child_childID`,`child`.`zcode` AS `child_zcode`,`child`.`isBorn` AS `child_isBorn`,`func_count_sibling`(`child`.`childID`) AS `count_sibling`,`getBlobStringValue`(`child`.`hash`,NULL,NULL) AS `child_hash`,`getBlobStringValue`(`child`.`instituteName`,NULL,now()) AS `child_instituteName`,`child`.`instituteName` AS `child_instituteNameHistoryID`,`getBooleanValue`(`child`.`isInOtherInstitute`,NULL,now()) AS `child_isInOtherInstitute`,`child`.`isInOtherInstitute` AS `child_isInOtherInstituteHistoryID`,`getDateValue`(`child`.`careStartDate`,NULL,NULL) AS `child_careStartDate`,`child`.`careStartDate` AS `child_careStartDateHistoryID`,`getDateValue`(`child`.`expectedCareEndDate`,NULL,NULL) AS `child_expectedCareEndDate`,`child`.`expectedCareEndDate` AS `child_expectedCareEndDateHistoryID`,`child`.`createDatetime` AS `child_createDatetime`,`child`.`updateDatetime` AS `child_updateDatetime`,`child`.`status` AS `child_status`,`child`.`hashValuesCorrect` AS `child_hashValuesCorrect`,`getBlobIntValue`(`child`.`countChildNumber`,NULL,NULL) AS `child_countChildNumber`,`child`.`countChildNumber` AS `child_countChildNumberHistoryID`,`child_trusted`.`childTrustedID` AS `child_trusted_childTrustedID`,`child_trusted`.`trustedByUserID` AS `child_trusted_trustedByUserID`,`child_trusted`.`createDatetime` AS `child_trusted_createDatetime`,`getXmlValue`(`child_trusted`.`commentText`) AS `child_trusted_commentText`,`pd`.`personDataID` AS `person_data_personDataID`,`getDateValue`(`pd`.`birthday`,NULL,NULL) AS `person_data_birthday`,`pd`.`birthday` AS `person_data_birthdayHistoryID`,`pd`.`birthName` AS `person_data_birthNameHistoryID`,`pd`.`gender` AS `person_data_genderHistoryID`,`pd`.`birthCity` AS `person_data_birthCityHistoryID`,`pd`.`lastName` AS `person_data_lastNameHistoryID`,`pd`.`firstName` AS `person_data_firstNameHistoryID`,`getBlobStringValue`(`pd`.`birthName`,NULL,NULL) AS `person_data_birthName`,`getStringValue`(`pd`.`gender`,NULL,NULL) AS `person_data_gender`,`getBlobStringValue`(`pd`.`title`,NULL,NULL) AS `person_data_title`,`getBlobStringValue`(`pd`.`birthCity`,NULL,NULL) AS `person_data_birthCity`,`getBlobStringValue`(`pd`.`lastName`,NULL,NULL) AS `person_data_lastName`,`getBlobStringValue`(`pd`.`firstName`,NULL,NULL) AS `person_data_firstName`,`getBlobStringValue`(`child_in_carrier`.`pkz`,NULL,NULL) AS `person_data_pkz`,`child_in_carrier`.`pkz` AS `person_data_pkzHistoryID`,`getBlobTextValue`(`pd`.`commentText`,NULL,NULL) AS `person_data_commentText`,`a`.`addressID` AS `address_addressID`,`getBlobStringValue`(`a`.`street`,NULL,NULL) AS `address_street`,`getBlobStringValue`(`a`.`streetNo`,NULL,NULL) AS `address_streetNo`,`getBlobStringValue`(`a`.`zip`,NULL,NULL) AS `address_zip`,`getBlobStringValue`(`a`.`city`,NULL,NULL) AS `address_city`,`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL) AS `address_partOfCity`,`getBlobStringValue`(`a`.`state`,NULL,NULL) AS `address_state`,`getBlobStringValue`(`a`.`country`,NULL,NULL) AS `address_country`,`getBlobTextValue`(`a`.`commentText`,NULL,NULL) AS `address_commentText`,`a`.`street` AS `address_streetHistoryID`,`a`.`streetNo` AS `address_streetNoHistoryID`,`a`.`zip` AS `address_zipHistoryID`,`a`.`city` AS `address_cityHistoryID`,`a`.`partOfCity` AS `address_partOfCityHistoryID`,`a`.`state` AS `address_stateHistoryID`,`a`.`country` AS `address_countryHistoryID`,`child_tc_data`.`childTcDataID` AS `child_tc_data_childTcDataID`,`getBlobStringValue`(`child_tc_data`.`healthInsurance`,NULL,NULL) AS `child_tc_data_healthInsurance`,`getBlobStringValue`(`child_tc_data`.`healthInsuranceNo`,NULL,NULL) AS `child_tc_data_healthInsuranceNo`,`getBlobStringValue`(`child_tc_data`.`healthInsuranceInfo`,NULL,NULL) AS `child_tc_data_healthInsuranceInfo`,`getBlobTextValue`(`child_tc_data`.`illness`,NULL,NULL) AS `child_tc_data_illness`,`getBlobTextValue`(`child_tc_data`.`commentText`,NULL,NULL) AS `child_tc_data_commentText`,`child_tc_data`.`createDatetime` AS `child_tc_data_createDatetime`,`child_tc_data`.`updateDatetime` AS `child_tc_data_updateDatetime`,`doctor`.`doctorID` AS `doctor_doctorID`,`getXmlValue`(`doctor`.`name`) AS `doctor_name`,`getXmlValue`(`doctor`.`commentText`) AS `doctor_commentText` from ((`person_data` `pd` join ((((`child` left join `child_in_carrier` on(((`child_in_carrier`.`childID` = `child`.`childID`) and (`child_in_carrier`.`carrierID` = `func_get_user_carrierID`())))) left join `child_tc_data` on((`child`.`childID` = `child_tc_data`.`childID`))) left join `child_trusted` on((`child_trusted`.`childID` = `child`.`childID`))) left join (`child_has_doctor` join `doctor`) on(((`child_has_doctor`.`childID` = `child`.`childID`) and (`child_has_doctor`.`doctorID` = `doctor`.`doctorID`))))) left join (`person_data_has_address` join `address` `a`) on(((`pd`.`personDataID` = `person_data_has_address`.`personDataID`) and (`person_data_has_address`.`isFavorite` = 1) and (`person_data_has_address`.`addressID` = `a`.`addressID`)))) where ((`child`.`personDataID` = `pd`.`personDataID`) and (`child`.`status` <> 'deleted')) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33457,7 +33457,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_contract` AS select `view_params`.`validFrom` AS `validFrom`,`view_params`.`lastPrinted` AS `lastPrinted`,`contract`.`contractID` AS `contract_contractID`,`child`.`childID` AS `child_childID`,`getBlobStringValue`(`child`.`hash`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `child_hash`,`getBlobStringValue`(`person_data`.`lastName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_lastName`,`getBlobStringValue`(`person_data`.`firstName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_firstName`,`getDateValue`(`person_data`.`birthday`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_birthday`,`getStringValue`(`person_data`.`gender`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_gender`,`getBlobTextValue`(`person_data`.`commentText`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_commentText`,`getBlobStringValue`(`child_in_carrier`.`pkz`,NULL,NULL) AS `person_data_pkz`,`getBlobIntValue`(`child`.`countChildNumber`,NULL,NULL) AS `child_countChildNumber`,`view_params`.`lastPrinted` AS `contract_lastValidPrintedDatetime`,`institute`.`instituteID` AS `contract_instituteID`,`contract`.`createDatetime` AS `contract_createDatetime`,`contract`.`updateDatetime` AS `contract_updateDatetime`,`contract`.`setToFinishedData` AS `contract_setToFinishedData`,`contract`.`careTimeID` AS `contract_careTimeIDHistoryID`,`contract`.`differentCustodyID` AS `contract_differentCustodyID`,`institute`.`instituteID` AS `institute_instituteID`,`institute_group`.`instituteTypeID` AS `contract_instituteTypeID`,`institute_type`.`orderPosition` AS `institute_type_orderPosition`,`contract`.`createdByUserID` AS `contract_createdByUserID`,`institute_group`.`groupID` AS `contract_groupID`,`contract`.`contractNumber` AS `contract_contractNumber`,`institute_group`.`groupName` AS `institute_group_groupName`,`institute`.`name` AS `institute_name`,`institute`.`instituteKind` AS `institute_instituteKind`,`institute`.`carrierID` AS `institute_carrierID`,`care_time`.`instituteTypeID` AS `care_time_instituteTypeID`,`care_time`.`hoursMorning` AS `care_time_hoursMorning`,`care_time`.`hoursAfternoon` AS `care_time_hoursAfternoon`,`care_time`.`hoursDay` AS `care_time_hoursDay`,`func_get_all_hours_from_care`(`care_time`.`hoursDay`,`care_time`.`hoursAfternoon`,`care_time`.`hoursMorning`) AS `care_time_hoursOverAll`,`care_time`.`startDate` AS `care_time_startDate`,`care_time`.`endDate` AS `care_time_endDate`,`care_time`.`description` AS `care_time_description`,`func_get_care_time_description_short`(`care_time`.`description`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1)) AS `care_time_descriptionShort`,`institute`.`status` AS `institute_status`,`contract`.`status` AS `contract_status`,`hasContractUnconfirmedChanges`(`contract`.`contractID`) AS `hasContractUnconfirmedChanges`,`func_get_siblings_by_child`(`child`.`childID`) AS `siblings_information`,`contract_has_place`.`placeID` AS `contract_has_place_placeID`,`getContractPartner`(`contract`.`contractID`,1,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_has_custody_as_contractpartner_custodyID1`,`getContractPartner`(`contract`.`contractID`,2,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_has_custody_as_contractpartner_custodyID2`,`getContractStartDate`(`contract`.`contractID`,NULL) AS `contract_startDate`,`getContractEndDate`(`contract`.`contractID`,NULL) AS `contract_endDate`,`contract`.`payerID` AS `contract_payerID`,`getBlobStringValue`(`contract`.`pkn`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_pkn`,`getBlobTextValue`(`contract`.`commentText`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_commentText`,`getBooleanValue`(`contract`.`isIntegrated`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_isIntegrated`,`contract`.`isIntegrated` AS `contract_isIntegratedHistoryID`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) AS `contract_additionalPaymentType`,`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) AS `contract_careTimeID`,`getBooleanValue`(`contract`.`childHasPedagogicHelp`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_childHasPedagogicHelp`,`contract`.`isInFamilyGermanMajorLanguage` AS `contract_isInFamilyGermanMajorLanguage`,`contract`.`hasOneCustodyForeignNativity` AS `contract_hasOneCustodyForeignNativity`,`contract`.`startHour` AS `contract_startHour`,`contract`.`endHour` AS `contract_endHour`,`func_is_address_in_institute_own_township`(`institute`.`instituteID`,`getBlobStringValue`(`a`.`zip`,NULL,NULL),`getBlobStringValue`(`a`.`city`,NULL,NULL),`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL)) AS `is_child_address_in_institute_own_township` from ((((((((((((`child` left join `child_in_carrier` on(((`child_in_carrier`.`childID` = `child`.`childID`) and (`child_in_carrier`.`carrierID` = `func_get_user_carrierID`())))) join `contract`) join `view_params`) join `person_data`) join `person_data_has_address`) join `address` `a`) join `place`) join `care_time`) join `contract_has_place`) join `institute_group`) join `institute_type`) join `institute`) where ((`child`.`status` <> 'deleted') and (`child`.`personDataID` = `person_data`.`personDataID`) and (`person_data`.`personDataID` = `person_data_has_address`.`personDataID`) and (`person_data_has_address`.`addressID` = `a`.`addressID`) and (`institute`.`instituteID` = `institute_group`.`instituteID`) and (`institute_group`.`groupID` = `place`.`groupID`) and (`institute_group`.`instituteTypeID` = `institute_type`.`instituteTypeID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`contract_has_place`.`ID` = `func_get_actual_contract_has_place_ID`(`contract`.`contractID`,`view_params`.`validFrom`)) and (`contract`.`contractID` = `contract_has_place`.`contractID`) and (`view_params`.`con_ID` = `contract`.`contractID`) and (`contract`.`childID` = `child`.`childID`) and (`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) = `care_time`.`careTimeID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33470,7 +33470,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_contract_changes_overview` AS select `contract_printed`.`contractID` AS `contractID`,`contract_printed`.`printedDatetime` AS `printedDatetime`,`contract_printed`.`valid` AS `valid`,`contract_printed`.`validDate` AS `validDate`,`contract_printed`.`changedByCorrectMulticreatedPerson` AS `changedByCorrectMulticreatedPerson`,`func_get_changes_to_contract_by_overview`(`contract_printed`.`contractID`,`contract_printed`.`printedDatetime`,`institute`.`carrierID`) AS `changeTypes` from ((((`contract_printed` join `contract_has_place`) join `place`) join `institute_group`) join `institute`) where ((`contract_printed`.`contractID` = `contract_has_place`.`contractID`) and (`func_get_actual_contract_has_place_ID`(`contract_printed`.`contractID`,curdate()) = `contract_has_place`.`ID`) and (`contract_has_place`.`placeID` = `place`.`placeID`) and (`place`.`groupID` = `institute_group`.`groupID`) and (`institute_group`.`instituteID` = `institute`.`instituteID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33483,7 +33483,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_count_child` AS select distinct `contract`.`childID` AS `childID`,`getBlobIntValue`(`child`.`countChildNumber`,NULL,NULL) AS `childCountNumber`,`contract`.`contractID` AS `contractID`,`getBeginAndEndDate`(`contract`.`endDate`,now()) AS `contract_endDate`,`func_get_contract_instituteID`(`contract`.`contractID`) AS `contractInstituteID`,`sibling`.`childID` AS `siblingID`,`getBlobIntValue`(`sibling`.`countChildNumber`,curdate(),now()) AS `siblingCountNumber`,`func_get_contract_instituteIDs_from_sibling`(`sibling`.`childID`) AS `siblingInstituteIDs` from (((`child` join `custody_has_child`) join `contract`) left join (`custody_has_child` `sib_chc` join `child` `sibling`) on(((`sibling`.`childID` <> `child`.`childID`) and (`sib_chc`.`childID` = `sibling`.`childID`) and `sib_chc`.`custodyID` in (select `chc`.`custodyID` AS `custodyID` from `custody_has_child` `chc` where ((`contract`.`status` <> 'deleted') and (`chc`.`childID` = `child`.`childID`) and (`getBooleanValue`(`chc`.`isInHousehold`,NULL,NULL) = 1))) and (`getBooleanValue`(`sib_chc`.`isInHousehold`,NULL,NULL) = 1)))) where ((`getBeginAndEndDate`(`contract`.`endDate`,now()) >= curdate()) and (`contract`.`contractID` = (select `c`.`contractID` AS `contractID` from `contract` `c` where ((`c`.`childID` = `child`.`childID`) and (`child`.`status` <> 'deleted')) order by `c`.`createDatetime` desc limit 0,1)) and (`custody_has_child`.`childID` = `child`.`childID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33496,7 +33496,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_custody` AS select `cus`.`custodyID` AS `custody_custodyID`,`getBlobStringValue`(`cus`.`hash`,NULL,NULL) AS `custody_hash`,`cus`.`hashValuesCorrect` AS `custody_hashValuesCorrect`,`cus`.`createDatetime` AS `custody_createDatetime`,`cus`.`createDatetime` AS `custody_updateDatetime`,`pd`.`personDataID` AS `person_data_personDataID`,`getBlobStringValue`(`pd`.`lastName`,NULL,NULL) AS `person_data_lastName`,`getBlobStringValue`(`pd`.`firstName`,NULL,NULL) AS `person_data_firstName`,`getBlobStringValue`(`pd`.`birthName`,NULL,NULL) AS `person_data_birthName`,`getBlobStringValue`(`pd`.`title`,NULL,NULL) AS `person_data_title`,`getBlobStringValue`(`pd`.`birthCity`,NULL,NULL) AS `person_data_birthCity`,`getStringValue`(`pd`.`gender`,NULL,NULL) AS `person_data_gender`,`getDateValue`(`pd`.`birthday`,NULL,NULL) AS `person_data_birthday`,`getBlobTextValue`(`pd`.`commentText`,NULL,NULL) AS `person_data_commentText`,`getBlobStringValue`(`custody_in_carrier`.`pkz`,NULL,NULL) AS `person_data_pkz`,`pd`.`birthday` AS `person_data_birthdayHistoryID`,`pd`.`birthName` AS `person_data_birthNameHistoryID`,`pd`.`gender` AS `person_data_genderHistoryID`,`pd`.`birthCity` AS `person_data_birthCityHistoryID`,`pd`.`lastName` AS `person_data_lastNameHistoryID`,`pd`.`firstName` AS `person_data_firstNameHistoryID`,`custody_in_carrier`.`pkz` AS `person_data_pkzHistoryID`,`custody_trusted`.`custodyTrustedID` AS `custody_trusted_custodyTrustedID`,`custody_trusted`.`trustedByUserID` AS `custody_trusted_trustedByUserID`,`custody_trusted`.`createDatetime` AS `custody_trusted_createDatetime`,`getXmlValue`(`custody_trusted`.`commentText`) AS `custody_trusted_commentText`,`getXmlValue`(`custody_trusted`.`trustData`) AS `custody_trusted_trustData`,`a`.`addressID` AS `address_addressID`,`getBlobStringValue`(`a`.`street`,NULL,NULL) AS `address_street`,`getBlobStringValue`(`a`.`streetNo`,NULL,NULL) AS `address_streetNo`,`getBlobStringValue`(`a`.`zip`,NULL,NULL) AS `address_zip`,`getBlobStringValue`(`a`.`city`,NULL,NULL) AS `address_city`,`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL) AS `address_partOfCity`,`getBlobStringValue`(`a`.`state`,NULL,NULL) AS `address_state`,`getBlobStringValue`(`a`.`country`,NULL,NULL) AS `address_country`,`a`.`street` AS `address_streetHistoryID`,`a`.`streetNo` AS `address_streetNoHistoryID`,`a`.`zip` AS `address_zipHistoryID`,`a`.`city` AS `address_cityHistoryID`,`a`.`partOfCity` AS `address_partOfCityHistoryID`,`a`.`state` AS `address_stateHistoryID`,`a`.`country` AS `address_countryHistoryID`,`getBlobTextValue`(`a`.`commentText`,NULL,NULL) AS `address_commentText` from ((((`person_data` `pd` join `custody` `cus`) join (`person_data_has_address` `pda` join `address` `a`)) left join `custody_trusted` on((`custody_trusted`.`custodyID` = `cus`.`custodyID`))) left join `custody_in_carrier` on(((`custody_in_carrier`.`custodyID` = `cus`.`custodyID`) and (`custody_in_carrier`.`carrierID` = `func_get_user_carrierID`())))) where ((`pd`.`personDataID` = `cus`.`personDataID`) and (`pda`.`personDataID` = `pd`.`personDataID`) and (`pda`.`isFavorite` = 1) and (`pda`.`addressID` = `a`.`addressID`) and (`pda`.`isFavorite` = 1) and (`cus`.`status` <> 'deleted')) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33509,7 +33509,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_emergency_person` AS select `contract`.`childID` AS `child_childID`,`contract`.`contractID` AS `contract_contractID`,`emergency_person`.`favoritePosition` AS `emergency_person_favoritePosition`,`emergency_person`.`hasPickUpRight` AS `emergency_person_hasPickUpRight`,`emergency_person`.`contactInCaseOfEmergency` AS `emergency_person_contactInCaseOfEmergency`,`emergency_person`.`emergencyPersonID` AS `emergency_person_emergencyPersonID`,`getXmlValue`(`emergency_person`.`firstName`) AS `emergency_person_firstName`,`getXmlValue`(`emergency_person`.`lastName`) AS `emergency_person_lastName`,`getXmlValue`(`emergency_person`.`workName`) AS `emergency_person_workName`,`emergency_person`.`createDatetime` AS `emergency_person_createDatetime`,`emergency_person`.`updateDatetime` AS `emergency_person_updateDatetime`,`a`.`addressID` AS `address_addressID`,`getBlobStringValue`(`a`.`street`,NULL,NULL) AS `address_street`,`getBlobStringValue`(`a`.`streetNo`,NULL,NULL) AS `address_streetNo`,`getBlobStringValue`(`a`.`zip`,NULL,NULL) AS `address_zip`,`getBlobStringValue`(`a`.`city`,NULL,NULL) AS `address_city`,`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL) AS `address_partOfCity`,`getBlobStringValue`(`a`.`state`,NULL,NULL) AS `address_state`,`getBlobStringValue`(`a`.`country`,NULL,NULL) AS `address_country`,`getBlobTextValue`(`a`.`commentText`,NULL,NULL) AS `address_commentText` from (`contract` join (`emergency_person` left join (`emergency_person_has_address` join `address` `a`) on(((`emergency_person`.`emergencyPersonID` = `emergency_person_has_address`.`emergencyPersonID`) and (`emergency_person_has_address`.`addressID` = `a`.`addressID`))))) where (`contract`.`contractID` = `emergency_person`.`contractID`) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33522,7 +33522,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_group` AS select `institute_group`.`groupID` AS `institute_group_groupID`,`institute_group`.`groupName` AS `institute_group_groupName`,`institute_group`.`maxPlaces` AS `institute_group_maxPlaces`,`institute_group`.`minAge` AS `institute_group_minAge`,`institute_group`.`maxAge` AS `institute_group_maxAge`,`institute_group`.`maxIntegratedPlaces` AS `institute_group_maxIntegratedPlaces`,`institute_group`.`status` AS `institute_group_status`,`getStringValue`(`institute_group`.`shortCode`,NULL,NULL) AS `institute_group_shortCode`,`institute_group`.`shortCode` AS `institute_group_shortCodeHistoryID`,`institute_group`.`validFromDate` AS `institute_group_validFromDate`,`institute_group`.`validUntilDate` AS `institute_group_validUntilDate`,`getXmlValue`(`institute_group`.`commentText`) AS `institute_group_commentText`,`func_get_count_active_places_in_group`(`institute_group`.`groupID`) AS `countActivePlacesInGroup`,`institute_group`.`createDatetime` AS `institute_group_createDatetime`,`institute_group`.`updateDatetime` AS `institute_group_updateDatetime`,`institute_type`.`instituteType` AS `institute_type_instituteType`,`institute_type`.`instituteTypeID` AS `institute_type_instituteTypeID`,`institute_type`.`orderPosition` AS `institute_type_orderPosition`,`institute`.`instituteID` AS `institute_instituteID`,`institute`.`name` AS `institute_name`,`institute`.`instituteKind` AS `institute_instituteKind`,`func_get_created_places_in_group`(`institute_group`.`groupID`) AS `countCreatedPlacesInGroup` from (`institute_group` left join (`institute` join `institute_type`) on(((`institute_group`.`instituteID` = `institute`.`instituteID`) and (`institute_group`.`instituteTypeID` = `institute_type`.`instituteTypeID`)))) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33535,7 +33535,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_institute` AS select `institute`.`instituteID` AS `institute_instituteID`,`institute`.`name` AS `institute_name`,`institute`.`instituteKind` AS `institute_instituteKind`,`institute`.`ratingAverage` AS `institute_ratingAverage`,`institute`.`createDatetime` AS `institute_createDatetime`,`institute`.`updateDatetime` AS `institute_updateDatetime`,`institute`.`lastPortalProfileUpdatedatetime` AS `institute_lastPortalProfileUpdatedatetime`,`institute`.`status` AS `institute_status`,`institute`.`receiptSign` AS `institute_receiptSign`,`institute`.`showInPortal` AS `institute_showInPortal`,`institute`.`inCarrierFromDate` AS `institute_inCarrierFromDate`,`institute`.`inCarrierEndDate` AS `institute_inCarrierEndDate`,`institute_data`.`instituteDataID` AS `institute_data_instituteDataID`,`institute_data`.`blanketAmount` AS `institute_data_blanketAmount`,`institute_data`.`isPortalProfileUpToDate` AS `institute_data_isPortalProfileUpToDate`,`institute_data`.`portalProfileData` AS `institute_data_portalProfileData`,`carrier`.`carrierID` AS `carrier_carrierID`,`carrier`.`name` AS `carrier_name`,`carrier`.`useAddressPool` AS `carrier_useAddressPool`,`carrier`.`doInstitutesConfigCatchmentAreas` AS `carrier_doInstitutesConfigCatchmentAreas`,`address`.`addressID` AS `address_addressID`,`getBlobStringValue`(`address`.`street`,NULL,NULL) AS `address_street`,`getBlobStringValue`(`address`.`streetNo`,NULL,NULL) AS `address_streetNo`,`getBlobStringValue`(`address`.`zip`,NULL,NULL) AS `address_zip`,`getBlobStringValue`(`address`.`city`,NULL,NULL) AS `address_city`,`getBlobStringValue`(`address`.`partOfCity`,NULL,NULL) AS `address_partOfCity`,`getBlobStringValue`(`address`.`state`,NULL,NULL) AS `address_state`,`getBlobStringValue`(`address`.`country`,NULL,NULL) AS `address_country`,`getBlobStringValue`(`address`.`commentText`,NULL,NULL) AS `address_commentText`,`address`.`latitude` AS `address_lat`,`address`.`longitude` AS `address_long` from ((`institute` left join (`institute_data` join `address`) on(((`institute_data`.`instituteID` = `institute`.`instituteID`) and (`institute_data`.`addressID` = `address`.`addressID`)))) left join `carrier` on((`institute`.`carrierID` = `carrier`.`carrierID`))) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33548,7 +33548,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_params` AS select `contract`.`contractID` AS `con_ID`,`getValidFrom`(`contract`.`contractID`) AS `validFrom`,`getLastContractPrintedDatetime`(`contract`.`contractID`,NULL) AS `lastPrinted` from `contract` */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33561,7 +33561,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_personal_key_list` AS select `contract`.`contractID` AS `contract_contractID`,`child`.`childID` AS `child_childID`,`getBlobStringValue`(`person_data`.`lastName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_lastName`,`getBlobStringValue`(`person_data`.`firstName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_firstName`,`getDateValue`(`person_data`.`birthday`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_birthday`,`getBlobIntValue`(`child`.`countChildNumber`,NULL,NULL) AS `child_countChildNumber`,`view_params`.`lastPrinted` AS `contract_lastValidPrintedDatetime`,`institute`.`instituteID` AS `contract_instituteID`,`contract`.`createDatetime` AS `contract_createDatetime`,`contract`.`careTimeID` AS `contract_careTimeIDHistoryID`,`institute`.`instituteID` AS `institute_instituteID`,`institute_group`.`instituteTypeID` AS `contract_instituteTypeID`,`institute_type`.`orderPosition` AS `institute_type_orderPosition`,`institute_type`.`orderPosition2` AS `institute_type_orderPosition2`,`institute_group`.`groupID` AS `contract_groupID`,`contract`.`contractNumber` AS `contract_contractNumber`,`institute_group`.`groupName` AS `institute_group_groupName`,`institute`.`name` AS `institute_name`,`institute`.`instituteKind` AS `institute_instituteKind`,`carrier`.`name` AS `carrier_name`,`institute`.`carrierID` AS `institute_carrierID`,`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) AS `contract_careTimeID`,`care_time`.`description` AS `care_time_description`,`func_get_care_time_description_short`(`care_time`.`description`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1)) AS `care_time_descriptionShort`,`contract`.`status` AS `contract_status`,`contract_has_place`.`placeID` AS `contract_has_place_placeID`,`getContractStartDate`(`contract`.`contractID`,NULL) AS `contract_startDate`,`getContractEndDate`(`contract`.`contractID`,NULL) AS `contract_endDate`,`getBlobStringValue`(`contract`.`pkn`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_pkn`,`getBooleanValue`(`contract`.`isIntegrated`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_isIntegrated`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) AS `contract_additionalPaymentType`,`getOrderPositionToInstituteTypeID`(`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1)) AS `contract_additionalPaymentTypeOrderPosition`,`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'basic',NULL,NULL) AS `fevBasicValue`,`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'over',NULL,NULL) AS `fevOverValue`,`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'integrated',NULL,NULL) AS `fevIntegratedValue`,`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'additional',NULL,NULL) AS `fevAdditionalValue`,`getFulltimeEquivalentValueSum`(1,`getBooleanValue`(`contract`.`isIntegrated`,`view_params`.`validFrom`,`view_params`.`lastPrinted`),`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'basic',NULL,NULL),`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'over',NULL,NULL),`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'integrated',NULL,NULL),`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'additional',NULL,NULL),`care_time`.`hoursAfternoon`,`care_time`.`hoursDay`,`care_time`.`hoursMorning`) AS `fevSum`,`isOverCare`(`care_time`.`hoursAfternoon`,`care_time`.`hoursDay`,`care_time`.`hoursMorning`) AS `isOverCare` from ((((((((((`child` join `contract`) join `view_params`) join `person_data`) join `place`) join `care_time`) join `contract_has_place`) join `institute_group`) join `institute_type`) join `institute`) join `carrier`) where ((`child`.`status` <> 'deleted') and (`child`.`personDataID` = `person_data`.`personDataID`) and (`institute`.`carrierID` = `carrier`.`carrierID`) and (`institute`.`instituteID` = `institute_group`.`instituteID`) and (`institute_group`.`groupID` = `place`.`groupID`) and (`institute_group`.`instituteTypeID` = `institute_type`.`instituteTypeID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`contract_has_place`.`ID` = `func_get_actual_contract_has_place_ID`(`contract`.`contractID`,`view_params`.`validFrom`)) and (`contract`.`contractID` = `contract_has_place`.`contractID`) and (`view_params`.`con_ID` = `contract`.`contractID`) and (`contract`.`childID` = `child`.`childID`) and (`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) = `care_time`.`careTimeID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33574,7 +33574,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_place` AS select `place`.`placeID` AS `place_placeID`,`place`.`placeName` AS `place_placeName`,`place`.`validFromDate` AS `place_validFromDate`,`place`.`validUntilDate` AS `place_validUntilDate`,`place`.`groupID` AS `place_groupID`,`institute`.`name` AS `institute_name`,`institute`.`carrierID` AS `institute_carrierID`,`institute_group`.`groupName` AS `group_groupName`,`institute_group`.`instituteTypeID` AS `group_instituteTypeID`,`institute_group`.`instituteID` AS `group_instituteID`,`place`.`status` AS `place_status`,`getXmlValue`(`place`.`commentText`) AS `place_commentText`,`func_get_count_allocations_by_place`(`place`.`placeID`) AS `place_countAllocations` from ((`place` join `institute_group` on((`institute_group`.`groupID` = `place`.`groupID`))) join `institute` on((`institute_group`.`instituteID` = `institute`.`instituteID`))) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33587,7 +33587,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_place_taken` AS select `contract`.`contractID` AS `contract_contractID`,`child`.`childID` AS `child_childID`,`func_get_siblings_by_child`(`child`.`childID`) AS `siblings_information`,`getBlobStringValue`(`person_data`.`lastName`,NULL,NULL) AS `person_data_lastName`,`getBlobStringValue`(`person_data`.`firstName`,NULL,NULL) AS `person_data_firstName`,`getStringValue`(`person_data`.`gender`,NULL,NULL) AS `person_data_gender`,`getDateValue`(`person_data`.`birthday`,NULL,NULL) AS `person_data_birthday`,`contract_has_place`.`ID` AS `contract_has_place_ID`,`contract_has_place`.`placeID` AS `contract_has_place_placeID`,`getBooleanValue`(`contract`.`isIntegrated`,NULL,NULL) AS `contract_isIntegrated`,`institute_group`.`groupID` AS `institute_groupID`,`institute_group`.`groupName` AS `institute_group_groupName`,`institute_group`.`instituteID` AS `institute_group_instituteID`,`institute_group`.`maxAge` AS `institute_group_maxAge`,`institute_group`.`minAge` AS `institute_group_minAge`,`institute_group`.`maxPlaces` AS `institute_groupmaxPlaces`,`institute_group`.`maxIntegratedPlaces` AS `institute_group_maxIntegratedPlaces`,`institute`.`instituteKind` AS `institute_instituteKind`,`institute`.`carrierID` AS `institute_carrierID`,`institute`.`name` AS `institute_name`,`care_time`.`hoursMorning` AS `care_time_hoursMorning`,`care_time`.`hoursAfternoon` AS `care_time_hoursAfternoon`,`care_time`.`hoursDay` AS `care_time_hoursDay`,`func_get_all_hours_from_care`(`care_time`.`hoursDay`,`care_time`.`hoursAfternoon`,`care_time`.`hoursMorning`) AS `care_time_hoursOverAll`,`getNextGroupName`(`contract`.`contractID`,`getBeginAndEndDate`(`contract_has_place`.`beginDate`,NULL)) AS `next_contract_has_place_groupName`,`getBeginAndEndDate`(`contract_has_place`.`beginDate`,NULL) AS `contract_has_place_beginDate`,`getBeginAndEndDate`(`contract_has_place`.`endDate`,NULL) AS `contract_has_place_endDate`,`contract`.`status` AS `contract_status`,NULL AS `prereservationlist_entry_prereservationlistEntryID`,NULL AS `prereservationlist_entry_has_place_placeID`,NULL AS `prereservationlist_entry_has_place_placeFromDate`,NULL AS `prereservationlist_entry_has_place_placeUntilDate`,NULL AS `prereservationlist_entry_isIntegrated`,NULL AS `prereservationlist_entry_status` from (((((((`person_data` join `institute_group`) join `institute`) join `child`) join `place`) join `contract`) join `contract_has_place`) join `care_time`) where ((`contract`.`status` <> 'deleted') and (`child`.`childID` = `contract`.`childID`) and (`contract_has_place`.`contractID` = `contract`.`contractID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`getIntValue`(`contract`.`careTimeID`,`getContractStartDate`(`contract`.`contractID`,NULL),NULL,1) = `care_time`.`careTimeID`) and (`child`.`personDataID` = `person_data`.`personDataID`) and (`institute_group`.`groupID` = `place`.`groupID`) and (`institute_group`.`instituteID` = `institute`.`instituteID`)) union all select NULL AS `NULL`,`child`.`childID` AS `child_childID`,`func_get_siblings_by_child`(`child`.`childID`) AS `siblings_information`,`getBlobStringValue`(`person_data`.`lastName`,NULL,NULL) AS `person_data_lastName`,`getBlobStringValue`(`person_data`.`firstName`,NULL,NULL) AS `person_data_firstName`,`getStringValue`(`person_data`.`gender`,NULL,NULL) AS `person_data_gender`,`getDateValue`(`person_data`.`birthday`,NULL,NULL) AS `person_data_birthday`,NULL AS `NULL`,NULL AS `NULL`,NULL AS `NULL`,`institute_group`.`groupID` AS `institute_groupID`,`institute_group`.`groupName` AS `institute_group_groupName`,`institute_group`.`instituteID` AS `institute_group_instituteID`,`institute_group`.`maxAge` AS `institute_group_maxAge`,`institute_group`.`minAge` AS `institute_group_minAge`,`institute_group`.`maxPlaces` AS `institute_groupmaxPlaces`,`institute_group`.`maxIntegratedPlaces` AS `institute_group_maxIntegratedPlaces`,`institute`.`instituteKind` AS `institute_instituteKind`,`institute`.`carrierID` AS `institute_carrierID`,`institute`.`name` AS `institute_name`,NULL AS `NULL`,NULL AS `NULL`,NULL AS `NULL`,NULL AS `NULL`,NULL AS `NULL`,NULL AS `NULL`,NULL AS `NULL`,NULL AS `NULL`,`prereservationlist_entry`.`prereservationlistEntryID` AS `prereservationlist_entry_prereservationlistEntryID`,`prereservationlist_entry_has_place`.`placeID` AS `prereservationlist_entry_has_place_placeID`,`prereservationlist_entry_has_place`.`placeFromDate` AS `prereservationlist_entry_has_place_placeFromDate`,`prereservationlist_entry_has_place`.`placeUntilDate` AS `prereservationlist_entry_has_place_placeUntilDate`,`prereservationlist_entry`.`isIntegrated` AS `prereservationlist_entry_isIntegrated`,`prereservationlist_entry`.`status` AS `prereservationlist_entry_status` from ((((((`person_data` join `institute_group`) join `institute`) join `child`) join `place`) join `prereservationlist_entry`) join `prereservationlist_entry_has_place`) where ((`place`.`placeID` = `prereservationlist_entry_has_place`.`placeID`) and (`child`.`status` <> 'deleted') and (`child`.`childID` = `prereservationlist_entry`.`childID`) and (`prereservationlist_entry_has_place`.`prereservationlistEntryID` = `prereservationlist_entry`.`prereservationlistEntryID`) and ((`prereservationlist_entry`.`status` = 'reserved') or (`prereservationlist_entry`.`status` = 'reserved_confirmed')) and (`child`.`personDataID` = `person_data`.`personDataID`) and (`institute_group`.`groupID` = `place`.`groupID`) and (`institute_group`.`instituteID` = `institute`.`instituteID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33600,7 +33600,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_portal_prereservationlist_entry` AS select `portal_prereservationlist_entry`.`portalPrereservationListID` AS `portal_prereservationlist_entry_portalPrereservationListID`,`getXmlValue`(`portal_prereservationlist_entry`.`prereservationData`) AS `portal_prereservationlist_entry_prereservationData`,`getXmlValue`(`portal_prereservationlist_entry`.`childFirstName`) AS `portal_prereservationlist_entry_childFirstName`,`getXmlValue`(`portal_prereservationlist_entry`.`childLastName`) AS `portal_prereservationlist_entry_childLastName`,`getXmlValue`(`portal_prereservationlist_entry`.`childBirthday`) AS `portal_prereservationlist_entry_childBirthday`,`portal_prereservationlist_entry`.`prereservationStartDate` AS `portal_prereservationlist_entry_prereservationStartDate`,`portal_prereservationlist_entry`.`prereservationPortalID` AS `portal_prereservationlist_entry_prereservationPortalID`,`portal_prereservationlist_entry`.`createDatetime` AS `portal_prereservationlist_entry_createDatetime`,`portal_prereservationlist_entry`.`status` AS `portal_prereservationlist_entry_status`,`institute`.`instituteID` AS `institute_instituteID`,`institute`.`name` AS `institute_name`,`institute`.`instituteKind` AS `institute_instituteKind`,`institute`.`carrierID` AS `institute_carrierID`,`institute_type`.`instituteTypeID` AS `institute_type_instituteTypeID`,`institute_type`.`orderPosition` AS `institute_type_orderPosition`,`institute_type`.`instituteType` AS `institute_type_instituteType`,`portal_prereservation_is_tc_prereservation`.`prereservationlistEntryID` AS `is_tc_prereservationListEntryID`,`portal_prereservationlist_entry`.`prereservationRejectionData` AS `portal_prereservationlist_entry_prereservationRejectionData` from (((`portal_prereservationlist_entry` join `institute`) join `institute_type`) left join `portal_prereservation_is_tc_prereservation` on((`portal_prereservationlist_entry`.`portalPrereservationListID` = `portal_prereservation_is_tc_prereservation`.`portalPreservationListID`))) where ((`portal_prereservationlist_entry`.`instituteID` = `institute`.`instituteID`) and (`portal_prereservationlist_entry`.`instituteTypeID` = `institute_type`.`instituteTypeID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33613,7 +33613,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_prereservationlist_entry` AS select `prereservationlist_entry`.`prereservationlistEntryID` AS `prereservationlist_entry_prereservationlistEntryID`,`institutepre`.`instituteID` AS `institute_instituteID`,`institutepre`.`name` AS `institute_name`,`institutepre`.`instituteKind` AS `institute_instituteKind`,`institutepre`.`carrierID` AS `institute_carrierID`,`prereservationlist_entry`.`childID` AS `prereservationlist_entry_childID`,`getBlobStringValue`(`person_data`.`lastName`,NULL,NULL) AS `person_data_lastName`,`getBlobStringValue`(`person_data`.`firstName`,NULL,NULL) AS `person_data_firstName`,`getBlobStringValue`(`child_in_carrier`.`pkz`,NULL,NULL) AS `person_data_pkz`,`getDateValue`(`person_data`.`birthday`,NULL,NULL) AS `person_data_birthday`,`getBlobStringValue`(`person_data`.`birthName`,NULL,NULL) AS `person_data_birthName`,`getStringValue`(`person_data`.`gender`,NULL,NULL) AS `person_data_gender`,`getBlobStringValue`(`person_data`.`title`,NULL,NULL) AS `person_data_title`,`getBlobStringValue`(`person_data`.`birthCity`,NULL,NULL) AS `person_data_birthCity`,`getBlobTextValue`(`person_data`.`commentText`,NULL,NULL) AS `person_data_commentText`,`func_count_sibling`(`child`.`childID`) AS `count_sibling`,`getBlobStringValue`(`child`.`hash`,NULL,NULL) AS `child_hash`,`child`.`isBorn` AS `child_isBorn`,`child`.`status` AS `child_status`,`child`.`createDatetime` AS `child_createDatetime`,`child`.`updateDatetime` AS `child_updateDatetime`,`func_get_siblings_by_child`(`child`.`childID`) AS `sibling_informations`,`prereservationlist_entry`.`careStartDate` AS `prereservationlist_entry_careStartDate`,`prereservationlist_entry`.`careEndDate` AS `prereservationlist_entry_careEndDate`,`func_get_care_timeIDs_by_prereservation`(`prereservationlist_entry`.`prereservationlistEntryID`) AS `careTimeIDs`,`prereservationlist_entry`.`createDatetime` AS `prereservationlist_entry_createDatetime`,`prereservationlist_entry`.`isInstituteFavorite` AS `prereservationlist_entry_isInstituteFavorite`,`prereservationlist_entry`.`setByPortalUserID` AS `prereservationlist_entry_setByPortalUserID`,`prereservationlist_entry`.`reserveEmailData` AS `prereservationlist_entry_reserveEmailData`,`prereservationlist_entry_is_set_by_user`.`userID` AS `prereservationlist_entry_is_set_by_user_userID`,`prereservationlist_entry`.`potCustodyContractPartner` AS `prereservationlist_entry_potCustodyContractPartner`,`prereservationlist_entry`.`potCustodyOptContractPartner` AS `prereservationlist_entry_potCustodyOptContractPartner`,`func_get_custodies_by_child`(`prereservationlist_entry`.`childID`) AS `custody_informations`,`prereservationlist_entry`.`favoritePosition` AS `prereservationlist_entry_favoritePosition`,`prereservationlist_entry`.`isIntegrated` AS `prereservationlist_entry_isIntegrated`,`prereservationlist_entry`.`plannedHouseMovingDate` AS `prereservationlist_entry_plannedHouseMovingDate`,`prereservationlist_entry_has_place`.`placeFromDate` AS `prereservationlist_entry_has_place_placeFromDate`,`prereservationlist_entry_has_place`.`placeUntilDate` AS `prereservationlist_entry_has_place_placeUntilDate`,`prereservationlist_entry_has_place`.`nr` AS `prereservationlist_entry_has_place_nr`,`prereservationlist_entry`.`realStartDate` AS `prereservationlist_entry_realStartDate`,`prereservationlist_entry`.`realEndDate` AS `prereservationlist_entry_realEndDate`,`prereservationlist_entry`.`realStartDateUnconfirmed` AS `prereservationlist_entry_realStartDateUnconfirmed`,`prereservationlist_entry`.`realEndDateUnconfirmed` AS `prereservationlist_entry_realEndDateUnconfirmed`,`prereservationlist_entry`.`reserveEmailLinkClicked` AS `prereservationlist_entry_reserveEmailLinkClicked`,`prereservationlist_entry`.`status` AS `prereservationlist_entry_status`,`func_get_prereservation_status_color`(`prereservationlist_entry`.`status`,`prereservationlist_entry`.`prereservationRejectionReason`,`prereservationlist_entry`.`reservationRemoveReason`,`prereservationlist_entry`.`potCustodyContractPartner`,`prereservationlist_entry`.`potCustodyOptContractPartner`) AS `prereservationlist_entry_statusColor`,`prereservationlist_entry`.`updateDatetime` AS `prereservationlist_entry_updateDatetime`,`prereservationlist_entry`.`prereservationEndDate` AS `prereservationlist_entry_prereservationEndDate`,`prereservationlist_entry`.`reservationEndDate` AS `prereservationlist_entry_reservationEndDate`,`prereservationlist_entry`.`prereservationRejectionReason` AS `prereservationlist_entry_prereservationRejectionReason`,`prereservationlist_entry`.`prereservationRejectionData` AS `prereservationlist_entry_prereservationRejectionData`,`prereservationlist_entry`.`reservationConfirmData` AS `prereservationlist_entry_reservationConfirmData`,`prereservationlist_entry`.`lastUpdateByUserID` AS `prereservationlist_entry_lastUpdateByUserID`,`getXmlValue`(`prereservationlist_entry`.`commentText`) AS `prereservationlist_entry_commentText`,`getXmlValue`(`prereservationlist_entry`.`rejectionMessage`) AS `prereservationlist_entry_rejectionMessage`,`getXmlValue`(`prereservationlist_entry`.`rejectionType`) AS `prereservationlist_entry_rejectionType`,`getXmlValue`(`prereservationlist_entry`.`instituteCommentText`) AS `prereservationlist_entry_instituteCommentText`,`getXmlValue`(`prereservationlist_entry`.`siblingsInInstituteData`) AS `prereservationlist_entry_siblingsInInstituteData`,`child_tc_data`.`childTcDataID` AS `child_tc_data_childTcDataID`,`getBlobStringValue`(`child_tc_data`.`healthInsurance`,NULL,NULL) AS `child_tc_data_healthInsurance`,`getBlobStringValue`(`child_tc_data`.`healthInsuranceInfo`,NULL,NULL) AS `child_tc_data_healthInsuranceInfo`,`getBlobTextValue`(`child_tc_data`.`illness`,NULL,NULL) AS `child_tc_data_illness`,`getBlobTextValue`(`child_tc_data`.`commentText`,NULL,NULL) AS `child_tc_data_commentText`,`child_tc_data`.`createDatetime` AS `child_tc_data_createDatetime`,`child_tc_data`.`updateDatetime` AS `child_tc_data_updateDatetime`,`institute_type`.`instituteTypeID` AS `institute_type_instituteTypeID`,`institute_type`.`orderPosition` AS `institute_type_orderPosition`,`institute_type`.`instituteType` AS `institute_type_instituteType`,`func_has_child_contract`(`prereservationlist_entry`.`childID`,`institute_type`.`instituteTypeID`,`institutepre`.`carrierID`) AS `child_has_contract`,`func_count_prereservations_to_child`(`prereservationlist_entry`.`childID`,`institute_type`.`instituteTypeID`,0) AS `count_all_free_prereservations_to_child`,`func_count_prereservations_to_child`(`prereservationlist_entry`.`childID`,`institute_type`.`instituteTypeID`,1) AS `count_rejected_prereservations_to_child`,`place`.`placeID` AS `place_reservationPlaceID`,`place`.`placeName` AS `place_reservationPlaceName`,`institute_group`.`groupID` AS `institute_group_reservationGroupID`,`institute_group`.`groupName` AS `institute_group_reservationGroupName`,`reit`.`instituteTypeID` AS `institute_type_reservationInstituteTypeID`,`reit`.`orderPosition` AS `institute_type_reservationOrderPosition`,`reit`.`instituteType` AS `institute_type_reservationInstituteType`,`prereservationlist_entry`.`reservationRemoveData` AS `prereservationlist_entry_reservationRemoveData`,`prereservationlist_entry`.`reservationRemoveReason` AS `prereservationlist_entry_reservationRemoveReason`,`prereservationlist_entry`.`editReserveEmailData` AS `prereservationlist_entry_editReserveEmailData`,`prereservationlist_entry`.`reservationEditConfirmData` AS `prereservationlist_entry_reservationEditConfirmData`,`child_trusted`.`childTrustedID` AS `child_trusted_childTrustedID`,`child_trusted`.`trustedByUserID` AS `child_trusted_trustedByUserID`,`getXmlValue`(`child_trusted`.`commentText`) AS `child_trusted_commentText`,`child_trusted`.`createDatetime` AS `child_trusted_createDatetime`,`portal_prereservation_is_tc_prereservation`.`portalPreservationListID` AS `has_portal_portalPrereservationListEntryID`,`func_is_address_in_institute_own_township`(`institutepre`.`instituteID`,`getBlobStringValue`(`a`.`zip`,NULL,NULL),`getBlobStringValue`(`a`.`city`,NULL,NULL),`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL)) AS `is_child_address_in_institute_own_township` from ((((((((((`prereservationlist_entry` left join `portal_prereservation_is_tc_prereservation` on((`prereservationlist_entry`.`prereservationlistEntryID` = `portal_prereservation_is_tc_prereservation`.`prereservationlistEntryID`))) left join (((`prereservationlist_entry_has_place` join `place`) join `institute_group`) join `institute_type` `reit`) on(((`place`.`placeID` = `prereservationlist_entry_has_place`.`placeID`) and (`institute_group`.`groupID` = `place`.`groupID`) and (`reit`.`instituteTypeID` = `institute_group`.`instituteTypeID`) and (`prereservationlist_entry`.`prereservationlistEntryID` = `prereservationlist_entry_has_place`.`prereservationlistEntryID`)))) join `person_data`) join `person_data_has_address`) join `address` `a`) join `prereservationlist_entry_is_set_by_user`) join `institute_has_prereservationlist_entry`) join `institute_type`) join `institute` `institutepre`) join (((`child` left join `child_trusted` on((`child`.`childID` = `child_trusted`.`childID`))) left join `child_in_carrier` on(((`child_in_carrier`.`childID` = `child`.`childID`) and (`child_in_carrier`.`carrierID` = `func_get_user_carrierID`())))) left join `child_tc_data` on((`child_tc_data`.`childID` = `child`.`childID`)))) where ((`prereservationlist_entry`.`childID` = `child`.`childID`) and (`child`.`status` <> 'deleted') and (`child`.`personDataID` = `person_data`.`personDataID`) and (`person_data_has_address`.`personDataID` = `person_data`.`personDataID`) and (`person_data_has_address`.`addressID` = `a`.`addressID`) and (`prereservationlist_entry`.`prereservationlistEntryID` = `prereservationlist_entry_is_set_by_user`.`prereservationlistEntryID`) and (`prereservationlist_entry`.`prereservationlistEntryID` = `institute_has_prereservationlist_entry`.`prereservationlistEntryID`) and (`institute_type`.`instituteTypeID` = `institute_has_prereservationlist_entry`.`instituteTypeID`) and (`institutepre`.`instituteID` = `institute_has_prereservationlist_entry`.`instituteID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33626,7 +33626,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_saved_contract` AS select `saved_contract`.`savedContractID` AS `saved_contract_savedContractID`,`getXmlValue`(`saved_contract`.`contractData`) AS `saved_contract_contractData`,`getXmlValue`(`saved_contract`.`childHash`) AS `saved_contract_childHash`,`getXmlValue`(`saved_contract`.`childFirstName`) AS `saved_contract_childFirstName`,`getXmlValue`(`saved_contract`.`childLastName`) AS `saved_contract_childLastName`,`saved_contract`.`createDatetime` AS `saved_contract_createDatetime`,`saved_contract`.`updateDatetime` AS `saved_contract_updateDatetime`,`saved_contract`.`createdUserID` AS `saved_contract_createdUserID`,`institute`.`instituteID` AS `institute_instituteID`,`institute`.`name` AS `institute_name`,`institute`.`instituteKind` AS `institute_instituteKind`,`institute`.`carrierID` AS `institute_carrierID` from (`saved_contract` left join `institute` on((`saved_contract`.`instituteID` = `institute`.`instituteID`))) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33639,7 +33639,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_user` AS select `getBlobStringValue`(`pd`.`firstName`,NULL,NULL) AS `person_data_firstName`,`getBlobStringValue`(`pd`.`lastName`,NULL,NULL) AS `person_data_lastName`,`pd`.`personDataID` AS `person_data_personDataID`,`getDateValue`(`pd`.`birthday`,NULL,NULL) AS `person_data_birthday`,`getStringValue`(`pd`.`gender`,NULL,NULL) AS `person_data_gender`,`p`.`personalID` AS `personal_personalID`,`p`.`validFromDate` AS `personal_validFromDate`,`p`.`validUntilDate` AS `personal_validUntilDate`,`p`.`createdByUserID` AS `personal_createdByUserID`,`p`.`createDatetime` AS `personal_createDatetime`,`p`.`updateDatetime` AS `personal_updateDatetime`,`p`.`status` AS `personal_status`,`getXmlValue`(`p`.`commentText`) AS `personal_commentText`,`user`.`userID` AS `user_userID`,`user`.`passwd` AS `user_passwd`,`user`.`passwdSalt` AS `user_passwdSalt`,`user`.`lastLoginDatetime` AS `user_lastLoginDatetime`,`user`.`failedLogins` AS `user_failedLogins`,`user`.`lastLoginTryIP` AS `user_lastLoginTryIP`,`user`.`lastLoginTryDatetime` AS `user_lastLoginTryDatetime`,`user`.`passwdValidUntilDate` AS `user_passwdValidUntilDate`,`user`.`lastPasswdRequestValidUntil` AS `user_lastPasswdRequestValidUntil`,`user`.`lastPasswdRequestUrl` AS `user_lastPasswdRequestUrl`,`user`.`createDatetime` AS `user_createDatetime`,`user`.`updateDatetime` AS `user_updateDatetime`,`user`.`loginName` AS `user_loginName`,`user`.`allowLogin` AS `user_allowLogin`,`user`.`lastPasswdChangeDate` AS `user_lastPasswdChangeDate`,`user`.`sign` AS `user_sign`,`user`.`status` AS `user_userStatus`,`user`.`messageType` AS `user_messageType`,`user`.`messageOptions` AS `user_messageOptions` from ((`user` join `personal` `p`) join `person_data` `pd`) where ((`p`.`userID` = `user`.`userID`) and (`p`.`personDataID` = `pd`.`personDataID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +--- a/Database/install_dev_tc_2011-04-30_023.sql ++++ b/Database/install_dev_tc_2011-04-30_023.sql +@@ -67,7 +67,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `address_before_ins_tr` BEFORE INSERT ON `address` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `address_before_ins_tr` BEFORE INSERT ON `address` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -122,7 +122,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `agb_before_ins_tr_new` BEFORE INSERT ON `agb` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `agb_before_ins_tr_new` BEFORE INSERT ON `agb` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -146,7 +146,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `agb_before_upd_tr_new` BEFORE UPDATE ON `agb` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `agb_before_upd_tr_new` BEFORE UPDATE ON `agb` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -379,7 +379,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `care_time_before_ins_tr1` BEFORE INSERT ON `care_time` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `care_time_before_ins_tr1` BEFORE INSERT ON `care_time` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -403,7 +403,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `care_time_before_upd_tr` BEFORE UPDATE ON `care_time` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `care_time_before_upd_tr` BEFORE UPDATE ON `care_time` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -456,7 +456,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `carrier_before_ins_tr_new` BEFORE INSERT ON `carrier` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `carrier_before_ins_tr_new` BEFORE INSERT ON `carrier` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -480,7 +480,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `carrier_before_upd_tr_new` BEFORE UPDATE ON `carrier` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `carrier_before_upd_tr_new` BEFORE UPDATE ON `carrier` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -608,7 +608,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `certificate_before_ins_tr_new` BEFORE INSERT ON `certificate` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `certificate_before_ins_tr_new` BEFORE INSERT ON `certificate` + FOR EACH ROW + BEGIN + +@@ -637,7 +637,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `certificate_before_upd_tr_new` BEFORE UPDATE ON `certificate` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `certificate_before_upd_tr_new` BEFORE UPDATE ON `certificate` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -735,7 +735,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `child_before_ins_tr_new` BEFORE INSERT ON `child` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `child_before_ins_tr_new` BEFORE INSERT ON `child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -759,7 +759,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `child_before_upd_tr` BEFORE UPDATE ON `child` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `child_before_upd_tr` BEFORE UPDATE ON `child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -799,7 +799,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `child_eat_meal_before_ins_tr_new` BEFORE INSERT ON `child_eat_meal` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `child_eat_meal_before_ins_tr_new` BEFORE INSERT ON `child_eat_meal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -834,7 +834,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `child_has_child_as_sibling_before_ins_tr_new` BEFORE INSERT ON `child_has_child_as_sibling` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `child_has_child_as_sibling_before_ins_tr_new` BEFORE INSERT ON `child_has_child_as_sibling` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -857,7 +857,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `child_has_child_as_sibling_before_upd_tr_new` BEFORE UPDATE ON `child_has_child_as_sibling` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `child_has_child_as_sibling_before_upd_tr_new` BEFORE UPDATE ON `child_has_child_as_sibling` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -944,7 +944,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `child_tc_data_before_ins_tr_new` BEFORE INSERT ON `child_tc_data` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `child_tc_data_before_ins_tr_new` BEFORE INSERT ON `child_tc_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -986,7 +986,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `child_trusted_before_ins_tr_new` BEFORE INSERT ON `child_trusted` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `child_trusted_before_ins_tr_new` BEFORE INSERT ON `child_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1009,7 +1009,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `child_trusted_before_upd_tr` BEFORE UPDATE ON `child_trusted` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `child_trusted_before_upd_tr` BEFORE UPDATE ON `child_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1074,7 +1074,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `contact_before_ins_tr_new` BEFORE INSERT ON `contact` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `contact_before_ins_tr_new` BEFORE INSERT ON `contact` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1100,7 +1100,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `contact_before_upd_tr_new` BEFORE UPDATE ON `contact` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `contact_before_upd_tr_new` BEFORE UPDATE ON `contact` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1198,7 +1198,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `contract_before_ins_tr_new` BEFORE INSERT ON `contract` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `contract_before_ins_tr_new` BEFORE INSERT ON `contract` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1262,7 +1262,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `contract_finance_data_before_ins_tr_new` BEFORE INSERT ON `contract_finance_data` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `contract_finance_data_before_ins_tr_new` BEFORE INSERT ON `contract_finance_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1289,7 +1289,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `contract_finance_data_before_upd_tr_new` BEFORE UPDATE ON `contract_finance_data` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `contract_finance_data_before_upd_tr_new` BEFORE UPDATE ON `contract_finance_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1423,7 +1423,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `contract_has_custody_as_contractpartner_before_ins_tr` BEFORE INSERT ON `contract_has_custody_as_contractpartner` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `contract_has_custody_as_contractpartner_before_ins_tr` BEFORE INSERT ON `contract_has_custody_as_contractpartner` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1462,7 +1462,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `contract_has_meal_before_ins_tr` BEFORE INSERT ON `contract_has_meal` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `contract_has_meal_before_ins_tr` BEFORE INSERT ON `contract_has_meal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1576,7 +1576,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `custody_before_ins_tr_new` BEFORE INSERT ON `custody` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `custody_before_ins_tr_new` BEFORE INSERT ON `custody` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1627,7 +1627,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `custody_has_child_before_ins_tr_new` BEFORE INSERT ON `custody_has_child` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `custody_has_child_before_ins_tr_new` BEFORE INSERT ON `custody_has_child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1650,7 +1650,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `custody_has_child_before_upd_tr_new` BEFORE UPDATE ON `custody_has_child` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `custody_has_child_before_upd_tr_new` BEFORE UPDATE ON `custody_has_child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1718,7 +1718,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `custody_trusted_before_ins_tr_new` BEFORE INSERT ON `custody_trusted` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `custody_trusted_before_ins_tr_new` BEFORE INSERT ON `custody_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1743,7 +1743,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `custody_trusted_before_upd_tr_new` BEFORE UPDATE ON `custody_trusted` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `custody_trusted_before_upd_tr_new` BEFORE UPDATE ON `custody_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1799,7 +1799,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `custody_work_before_ins_tr` BEFORE INSERT ON `custody_work` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `custody_work_before_ins_tr` BEFORE INSERT ON `custody_work` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1828,7 +1828,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `custody_work_before_upd_tr` BEFORE UPDATE ON `custody_work` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `custody_work_before_upd_tr` BEFORE UPDATE ON `custody_work` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1981,7 +1981,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `disability_before_ins_tr_new` BEFORE INSERT ON `disability` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `disability_before_ins_tr_new` BEFORE INSERT ON `disability` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2007,7 +2007,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `disability_before_upd_tr_new` BEFORE UPDATE ON `disability` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `disability_before_upd_tr_new` BEFORE UPDATE ON `disability` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2053,7 +2053,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `doctor_before_ins_tr` BEFORE INSERT ON `doctor` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `doctor_before_ins_tr` BEFORE INSERT ON `doctor` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2080,7 +2080,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `doctor_before_upd_tr` BEFORE UPDATE ON `doctor` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `doctor_before_upd_tr` BEFORE UPDATE ON `doctor` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2280,7 +2280,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `emergency_person_before_ins_tr` BEFORE INSERT ON `emergency_person` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `emergency_person_before_ins_tr` BEFORE INSERT ON `emergency_person` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2308,7 +2308,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `emergency_person_before_upd_tr` BEFORE UPDATE ON `emergency_person` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `emergency_person_before_upd_tr` BEFORE UPDATE ON `emergency_person` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2657,7 +2657,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `institute_before_ins_tr_new` BEFORE INSERT ON `institute` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `institute_before_ins_tr_new` BEFORE INSERT ON `institute` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2681,7 +2681,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `institute_before_upd_tr_new` BEFORE UPDATE ON `institute` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `institute_before_upd_tr_new` BEFORE UPDATE ON `institute` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2774,7 +2774,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `group_before_ins_tr_new` BEFORE INSERT ON `institute_group` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `group_before_ins_tr_new` BEFORE INSERT ON `institute_group` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2802,7 +2802,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `group_before_upd_tr_new` BEFORE UPDATE ON `institute_group` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `group_before_upd_tr_new` BEFORE UPDATE ON `institute_group` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2892,7 +2892,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `institute_has_care_time_before_ins_tr` BEFORE INSERT ON `institute_has_care_time` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `institute_has_care_time_before_ins_tr` BEFORE INSERT ON `institute_has_care_time` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2984,7 +2984,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `insttitute_has_institute_type_before_ins_tr_new` BEFORE INSERT ON `institute_has_institute_type` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `insttitute_has_institute_type_before_ins_tr_new` BEFORE INSERT ON `institute_has_institute_type` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3010,7 +3010,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `insttitute_has_institute_type_before_upd_tr_new` BEFORE UPDATE ON `institute_has_institute_type` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `insttitute_has_institute_type_before_upd_tr_new` BEFORE UPDATE ON `institute_has_institute_type` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3214,7 +3214,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `management_hierarchy_object_before_ins_tr_new` BEFORE INSERT ON `management_hierarchy_object` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `management_hierarchy_object_before_ins_tr_new` BEFORE INSERT ON `management_hierarchy_object` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3236,7 +3236,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `management_hierarchy_object_before_upd_tr_new` BEFORE UPDATE ON `management_hierarchy_object` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `management_hierarchy_object_before_upd_tr_new` BEFORE UPDATE ON `management_hierarchy_object` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3354,7 +3354,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `partner_firm_before_ins_tr_new` BEFORE INSERT ON `partner_firm` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `partner_firm_before_ins_tr_new` BEFORE INSERT ON `partner_firm` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3435,7 +3435,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `payer_before_ins_tr_new` BEFORE INSERT ON `payer` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `payer_before_ins_tr_new` BEFORE INSERT ON `payer` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3458,7 +3458,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `payer_before_upd_tr` BEFORE UPDATE ON `payer` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `payer_before_upd_tr` BEFORE UPDATE ON `payer` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3518,7 +3518,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `person_data_before_ins_tr_new` BEFORE INSERT ON `person_data` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `person_data_before_ins_tr_new` BEFORE INSERT ON `person_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3656,7 +3656,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `personal_before_ins_tr_new` BEFORE INSERT ON `personal` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `personal_before_ins_tr_new` BEFORE INSERT ON `personal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3683,7 +3683,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `personal_before_upd_tr_new` BEFORE UPDATE ON `personal` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `personal_before_upd_tr_new` BEFORE UPDATE ON `personal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3733,7 +3733,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `place_before_ins_tr_new` BEFORE INSERT ON `place` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `place_before_ins_tr_new` BEFORE INSERT ON `place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3759,7 +3759,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `place_before_upd_tr_new` BEFORE UPDATE ON `place` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `place_before_upd_tr_new` BEFORE UPDATE ON `place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3828,7 +3828,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `portal_prereservationlist_entry_before_ins_tr` BEFORE INSERT ON `portal_prereservationlist_entry` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `portal_prereservationlist_entry_before_ins_tr` BEFORE INSERT ON `portal_prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3858,7 +3858,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `portal_prereservationlist_entry_before_upd_tr` BEFORE UPDATE ON `portal_prereservationlist_entry` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `portal_prereservationlist_entry_before_upd_tr` BEFORE UPDATE ON `portal_prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3983,7 +3983,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `prereservationlist_entry_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `prereservationlist_entry_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4012,7 +4012,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `prereservationlist_entry_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `prereservationlist_entry_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4118,7 +4118,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `prereservationlist_entry_has_place_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry_has_place` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `prereservationlist_entry_has_place_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry_has_place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4141,7 +4141,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `prereservationlist_entry_has_place_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry_has_place` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `prereservationlist_entry_has_place_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry_has_place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4199,7 +4199,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `presentlist_entry_before_ins_tr_new` BEFORE INSERT ON `presentlist_entry` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `presentlist_entry_before_ins_tr_new` BEFORE INSERT ON `presentlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4225,7 +4225,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `presentlist_entry_before_upd_tr_new` BEFORE UPDATE ON `presentlist_entry` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `presentlist_entry_before_upd_tr_new` BEFORE UPDATE ON `presentlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4293,7 +4293,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `religion_before_ins_tr_new` BEFORE INSERT ON `religion` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `religion_before_ins_tr_new` BEFORE INSERT ON `religion` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4315,7 +4315,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `religion_before_upd_tr_new` BEFORE UPDATE ON `religion` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `religion_before_upd_tr_new` BEFORE UPDATE ON `religion` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4412,7 +4412,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `saved_contract_before_ins_tr_new` BEFORE INSERT ON `saved_contract` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `saved_contract_before_ins_tr_new` BEFORE INSERT ON `saved_contract` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4442,7 +4442,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `saved_contract_before_upd_tr_new` BEFORE UPDATE ON `saved_contract` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `saved_contract_before_upd_tr_new` BEFORE UPDATE ON `saved_contract` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4583,7 +4583,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `statistic_taken_places_before_ins_tr` BEFORE INSERT ON `statistic_taken_places` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `statistic_taken_places_before_ins_tr` BEFORE INSERT ON `statistic_taken_places` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4607,7 +4607,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `statistic_taken_places_before_upd_tr` BEFORE UPDATE ON `statistic_taken_places` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `statistic_taken_places_before_upd_tr` BEFORE UPDATE ON `statistic_taken_places` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4658,7 +4658,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `tc_message_before_ins_tr` BEFORE INSERT ON `tc_message` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `tc_message_before_ins_tr` BEFORE INSERT ON `tc_message` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4691,7 +4691,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `trustcenter_before_ins_tr_new` BEFORE INSERT ON `trustcenter` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `trustcenter_before_ins_tr_new` BEFORE INSERT ON `trustcenter` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4770,7 +4770,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `user_before_ins_tr` BEFORE INSERT ON `user` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `user_before_ins_tr` BEFORE INSERT ON `user` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4793,7 +4793,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `user_before_upd_tr` BEFORE UPDATE ON `user` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `user_before_upd_tr` BEFORE UPDATE ON `user` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4912,7 +4912,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `user_has_tc_message_folder_before_ins_tr` BEFORE INSERT ON `user_has_tc_message_folder` ++/*!50003 CREATE*/ /*!50017 DEFINER=CURRENT_USER*/ /*!50003 TRIGGER `user_has_tc_message_folder_before_ins_tr` BEFORE INSERT ON `user_has_tc_message_folder` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -5568,7 +5568,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `createNewXml`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `createNewXml`( + newValue TEXT + ) RETURNS blob + DETERMINISTIC +@@ -5595,7 +5595,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `decryptValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `decryptValue`( + v BLOB + ) RETURNS blob + DETERMINISTIC +@@ -5618,7 +5618,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `encryptValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `encryptValue`( + v TEXT + ) RETURNS blob + DETERMINISTIC +@@ -5639,7 +5639,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_count_prereservations_to_child`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_count_prereservations_to_child`( + childIDValue INTEGER(11), + instituteTypeIDValue INTEGER(11), + getOnlyRejectedPrereservations TINYINT(1) +@@ -5730,7 +5730,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_count_sibling`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_count_sibling`( + childID INTEGER(11) + ) RETURNS smallint(4) + DETERMINISTIC +@@ -5782,7 +5782,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_double_name_person_block_ok`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_double_name_person_block_ok`( + typeValue ENUM('child','custody'), + lastName VARCHAR(255), + firstName3Chars VARCHAR(3) +@@ -5834,7 +5834,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_actual_contract_has_place_ID`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_actual_contract_has_place_ID`( + contractIDValue INTEGER(11), + lookToDate DATE + ) RETURNS int(11) +@@ -5893,7 +5893,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_all_hours_from_care`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_all_hours_from_care`( + hoursValue DECIMAL(3,1), + morningValue DECIMAL(3,1), + afternoonValue DECIMAL(3,1) +@@ -5932,7 +5932,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_care_timeIDs_by_prereservation`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_care_timeIDs_by_prereservation`( + preresID INTEGER(11) + ) RETURNS text CHARSET utf8 + DETERMINISTIC +@@ -5979,7 +5979,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_care_time_description_short`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_care_time_description_short`( + caretimeDescription VARCHAR(255), + additionalPaymentType INTEGER(11) + ) RETURNS varchar(255) CHARSET utf8 +@@ -6056,7 +6056,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_changes_to_contract_by_overview`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_changes_to_contract_by_overview`( + contractIDValue INTEGER(11), + printedDatetimeValue DATETIME, + contractInCarrierIDValue INTEGER(11) +@@ -7643,7 +7643,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_contracts_institute_name_by_childID`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_contracts_institute_name_by_childID`( + childIDValue INTEGER(11) + ) RETURNS varchar(255) CHARSET utf8 + DETERMINISTIC +@@ -7721,7 +7721,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_contracts_institute_name_by_custodyID`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_contracts_institute_name_by_custodyID`( + custodyIDValue INTEGER(11) + ) RETURNS varchar(255) CHARSET utf8 + DETERMINISTIC +@@ -7803,7 +7803,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_contract_has_place_ID_at_time`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_contract_has_place_ID_at_time`( + contractIDValue INTEGER(11), + lookTo DATE + ) RETURNS int(11) +@@ -7845,7 +7845,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_contract_instituteID`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_contract_instituteID`( + contractValue INTEGER(11) + ) RETURNS int(11) + DETERMINISTIC +@@ -7877,7 +7877,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_contract_instituteIDs_from_sibling`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_contract_instituteIDs_from_sibling`( + childIDValue INTEGER(11) + ) RETURNS varchar(255) CHARSET utf8 + DETERMINISTIC +@@ -7931,7 +7931,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_count_active_places_in_group`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_count_active_places_in_group`( + groupIDValue INTEGER(11) + ) RETURNS smallint(4) + DETERMINISTIC +@@ -7952,7 +7952,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_count_allocations_by_place`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_count_allocations_by_place`( + placeIDValue INTEGER(11) + ) RETURNS tinyint(4) + DETERMINISTIC +@@ -7979,7 +7979,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_created_places_in_group`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_created_places_in_group`( + groupIDValue INTEGER(11) + ) RETURNS int(11) + DETERMINISTIC +@@ -8000,7 +8000,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_crypt_id`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_crypt_id`( + colName VaRCHAR(255) + ) RETURNS varchar(255) CHARSET utf8 + DETERMINISTIC +@@ -8022,7 +8022,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_custodies_by_child`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_custodies_by_child`( + childIDValue INTEGER(11) + ) RETURNS text CHARSET utf8 + DETERMINISTIC +@@ -8073,7 +8073,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_not_printed_contract_to_child`(childIDValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_not_printed_contract_to_child`(childIDValue INTEGER(11), + inCarrierID INTEGER(11), + inInstituteID INTEGER(11)) RETURNS int(11) + DETERMINISTIC +@@ -8142,7 +8142,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_not_printed_contract_to_custody`(custodyValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_not_printed_contract_to_custody`(custodyValue INTEGER(11), + inCarrierID INTEGER(11), + inInstituteID INTEGER(11)) RETURNS int(11) + DETERMINISTIC +@@ -8214,7 +8214,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_prereservations_institute_name_by_childID`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_prereservations_institute_name_by_childID`( + childIDValue INTEGER(11), + isReserved TINYINT(1) + ) RETURNS varchar(255) CHARSET utf8 +@@ -8336,7 +8336,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_prereservations_institute_name_by_custodyID`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_prereservations_institute_name_by_custodyID`( + custodyIDValue INTEGER(11), + isReserved TINYINT(1) + ) RETURNS varchar(255) CHARSET utf8 +@@ -8458,7 +8458,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_prereservation_status_color`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_prereservation_status_color`( + preStatus VARCHAR(255), + rejectionReason VARCHAR(255), + reservationRemoveReason VARCHAR(255), +@@ -8541,7 +8541,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_recipient`(financeDataValue INTEGER(11)) RETURNS varchar(255) CHARSET utf8 ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_recipient`(financeDataValue INTEGER(11)) RETURNS varchar(255) CHARSET utf8 + DETERMINISTIC + BEGIN + +@@ -8570,7 +8570,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_siblings_by_child`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_siblings_by_child`( + siblingIDValue INTEGER(11) + ) RETURNS text CHARSET utf8 + DETERMINISTIC +@@ -8644,7 +8644,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_user_carrierID`() RETURNS int(11) ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_user_carrierID`() RETURNS int(11) + DETERMINISTIC + BEGIN + +@@ -8664,7 +8664,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_get_user_instituteID`() RETURNS int(11) ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_get_user_instituteID`() RETURNS int(11) + DETERMINISTIC + BEGIN + +@@ -8684,7 +8684,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_has_child_contract`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_has_child_contract`( + childValue INTEGER(11), + instituteTypeIDValue INTEGER(11), + carrierIDValue INTEGER(11) +@@ -8803,7 +8803,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_is_address_in_institute_own_township`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_is_address_in_institute_own_township`( + instituteIDValue INTEGER(11), + zipValue VARCHAR(255), + cityValue VARCHAR(255), +@@ -8846,7 +8846,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `func_next_id`() RETURNS bigint(20) ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `func_next_id`() RETURNS bigint(20) + DETERMINISTIC + BEGIN + UPDATE sequence SET value=last_insert_id(value)+1; +@@ -8866,7 +8866,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getBeginAndEndDate`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getBeginAndEndDate`( + my_id INTEGER(11), + lookTo DATETIME + ) RETURNS date +@@ -8897,7 +8897,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getBlobDatetimeValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getBlobDatetimeValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -8958,7 +8958,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getBlobDateValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getBlobDateValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9020,7 +9020,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getBlobIntValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getBlobIntValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9082,7 +9082,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getBlobStringValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getBlobStringValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9145,7 +9145,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getBlobTextValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getBlobTextValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9206,7 +9206,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getBooleanValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getBooleanValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9267,7 +9267,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getContractEndDate`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getContractEndDate`( + contractIDValue INTEGER(11), + lookTo DATETIME + ) RETURNS date +@@ -9320,7 +9320,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getContractPartner`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getContractPartner`( + contractIDValue BIGINT, + numberValue INTEGER(11), + validTo DATE, +@@ -9362,7 +9362,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getContractStartDate`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getContractStartDate`( + contractIDValue INTEGER(11), + lookTo DATETIME + ) RETURNS date +@@ -9419,7 +9419,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getDatetimeValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getDatetimeValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9480,7 +9480,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getDateValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getDateValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9541,7 +9541,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getDecValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getDecValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -9602,7 +9602,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getFulltimeEquivalentValue`(careTimeIDValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getFulltimeEquivalentValue`(careTimeIDValue INTEGER(11), + fevType ENUM('basic','over','integrated','additional'), + validTo DATE, + lookTo DATETIME) RETURNS decimal(5,4) +@@ -9647,7 +9647,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getFulltimeEquivalentValueSum`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getFulltimeEquivalentValueSum`( + sumChildsValue FLOAT, + isIntegratedValue TINYINT(1), + fevBasicValue DECIMAL(5,4), +@@ -9696,7 +9696,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getIntValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getIntValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME, +@@ -9758,7 +9758,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getLastContractPrintedDatetime`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getLastContractPrintedDatetime`( + contractIDValue INTEGER(11), + lookTo DATETIME + ) RETURNS datetime +@@ -9795,7 +9795,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getNextGroupName`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getNextGroupName`( + contractIDValue INTEGER(11), + dayValue DATE + ) RETURNS varchar(255) CHARSET utf8 +@@ -9831,7 +9831,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getOrderPositionToInstituteTypeID`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getOrderPositionToInstituteTypeID`( + instTypeIDValue INTEGER(11) + ) RETURNS int(11) + DETERMINISTIC +@@ -9853,7 +9853,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getServiceHoursSumByFev`(dateValue DATE, ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getServiceHoursSumByFev`(dateValue DATE, + sumChildsValue FLOAT, + isIntegratedValue TINYINT(1), + fevBasicValue DECIMAL(5,4), +@@ -9959,7 +9959,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getStringValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getStringValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -10020,7 +10020,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getValidFrom`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getValidFrom`( + contractIDValue INTEGER(11) + ) RETURNS date + DETERMINISTIC +@@ -10050,7 +10050,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `getXmlValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `getXmlValue`( + colName TEXT + ) RETURNS text CHARSET utf8 + DETERMINISTIC +@@ -10079,7 +10079,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `hasContractUnconfirmedChanges`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `hasContractUnconfirmedChanges`( + contractIDValue INTEGER(11) + ) RETURNS tinyint(1) + BEGIN +@@ -10109,7 +10109,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `isOverCare`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `isOverCare`( + hoursAfternoonValue DECIMAL(3,1), + hoursPerDayValue DECIMAL(3,1), + hoursMorningValue DECIMAL(3,1) +@@ -10157,7 +10157,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `months_between`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `months_between`( + olderDate DATE, + newerDate DATE + ) RETURNS int(11) +@@ -10209,7 +10209,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setBlobDatetimeValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setBlobDatetimeValue`( + valueid INTEGER(11), + setValue DATETIME, + validDate DATE, +@@ -10270,7 +10270,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setBlobDateValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setBlobDateValue`( + valueid INTEGER(11), + setValue DATE, + validDate DATE, +@@ -10330,7 +10330,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setBlobIntValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setBlobIntValue`( + valueid INTEGER(11), + setValue INTEGER(11), + validDate DATE, +@@ -10391,7 +10391,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setBlobStringValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setBlobStringValue`( + valueid INTEGER(11), + setValue VARCHAR(255), + validDate DATE, +@@ -10452,7 +10452,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setBlobTextValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setBlobTextValue`( + valueid INTEGER(11), + setValue TEXT, + validDate DATE, +@@ -10513,7 +10513,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setBooleanValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setBooleanValue`( + valueid INTEGER(11), + setValue TINYINT(1), + validDate DATE, +@@ -10573,7 +10573,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setDatetimeValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setDatetimeValue`( + valueid INTEGER(11), + setValue DATETIME, + validDate DATE, +@@ -10633,7 +10633,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setDateValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setDateValue`( + valueid INTEGER(11), + setValue DATE, + validDate DATE, +@@ -10694,7 +10694,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setDecValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setDecValue`( + valueid BIGINT(20), + setValue DECIMAL(15,5), + validDate DATE, +@@ -10757,7 +10757,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setIntValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setIntValue`( + valueid INTEGER(11), + setValue INTEGER(11), + validDate DATE, +@@ -10818,7 +10818,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setNewXmlValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setNewXmlValue`( + newValue TEXT, + colName TEXT + ) RETURNS blob +@@ -10847,7 +10847,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `setStringValue`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 FUNCTION `setStringValue`( + valueid INTEGER(11), + setValue VARCHAR(255), + validDate DATE, +@@ -10908,7 +10908,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_calculation_feeundependent_payables`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_calculation_feeundependent_payables`( + IN clientIDValue INTEGER(11), + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), +@@ -11350,7 +11350,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_change_contract_end_date`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_change_contract_end_date`( + IN cryptContractIDValue VARCHAR(255), + IN endDateValue DATE + ) +@@ -11407,7 +11407,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_child_double_occupancy`(IN year INTEGER(11)) ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_child_double_occupancy`(IN year INTEGER(11)) + double_occupancy:BEGIN + + DECLARE year_begin, year_end, date_1, date_2 DATE; +@@ -11828,7 +11828,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_child_older_max_age`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_child_older_max_age`( + IN lookDateValue DATE + ) + BEGIN +@@ -11878,7 +11878,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_clear_acl`() ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_clear_acl`() + BEGIN + DECLARE deleteMsg VARCHAR(255) DEFAULT 'deleteOK'; + +@@ -11908,7 +11908,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_clear_acl_action_deny_by_user`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_clear_acl_action_deny_by_user`( + IN userIDValue INTEGER(11) + ) + clear_acl_action_by_user:BEGIN +@@ -11957,7 +11957,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_correct_multicreated_child`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_correct_multicreated_child`( + IN showSelects TINYINT, + IN cryptMasterChild TEXT, + IN cryptSlave1 TEXT, +@@ -12417,7 +12417,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_correct_multicreated_custody`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_correct_multicreated_custody`( + IN showSelects TINYINT(1), + IN cryptMasterCustody TEXT, + IN cryptSlave1 TEXT, +@@ -12803,7 +12803,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_carrier`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_carrier`( + IN carrierCryptIDValue VARCHAR(255) + ) + delete_carrier:BEGIN +@@ -12950,7 +12950,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_child`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_child`( + IN childValue INTEGER(11), + IN deleteChild BOOLEAN, + IN deleteContract BOOLEAN, +@@ -13331,7 +13331,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_contract`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_contract`( + IN contractIDValue INTEGER(11), + IN cryptContractIDValue VARCHAR(255) + ) +@@ -13454,7 +13454,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_contractFinanceData`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_contractFinanceData`( + IN contractIDValue INTEGER(11) + ) + delete_contract_finance_data:BEGIN +@@ -13515,7 +13515,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_custody`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_custody`( + IN custodyValue INTEGER(11) + ) + delete_custody:BEGIN +@@ -13696,7 +13696,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_doctor`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_doctor`( + IN doctorIDValue TEXT + ) + delete_doctor:BEGIN +@@ -13825,7 +13825,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_group`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_group`( + IN groupCryptIDValue VARCHAR(255) + ) + delete_group:BEGIN +@@ -13896,7 +13896,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_institute`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_institute`( + IN instituteIDValue TEXT + ) + delete_institute:BEGIN +@@ -14172,7 +14172,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_prereservationlist_entry`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_prereservationlist_entry`( + IN prereservationlistEntryIDValue TEXT + ) + delete_prereservationlist_entry:BEGIN +@@ -14249,7 +14249,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_delete_user_has_role`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_delete_user_has_role`( + IN userIDValue INTEGER(11), + IN roleIDValue INTEGER(11) + ) +@@ -14299,7 +14299,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_all_contract_changes_in_period`(IN contractIDValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_all_contract_changes_in_period`(IN contractIDValue INTEGER(11), + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), + IN insertOnStartDate DATE, +@@ -16583,7 +16583,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_changes_info_to_contract_by_printedDatetime`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_changes_info_to_contract_by_printedDatetime`( + IN contractIDValue INTEGER(11), + IN printedDatetime DATETIME, + IN printedDatetimeLast DATETIME +@@ -20416,7 +20416,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_child_custody_data_changes_iO_anke`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_child_custody_data_changes_iO_anke`( + IN personType ENUM('child','custody'), + IN personID INTEGER(11), + IN startDate DATE, +@@ -21539,7 +21539,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_child_custody_data_changes_iO_end_anke`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_child_custody_data_changes_iO_end_anke`( + IN personType ENUM('child','custody'), + IN personID INTEGER(11), + IN startDate DATE, +@@ -22637,7 +22637,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_child_custody_data_changes_vF_anke`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_child_custody_data_changes_vF_anke`( + IN personType ENUM('child','custody'), + IN personID INTEGER(11), + IN startDate DATE, +@@ -23803,7 +23803,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_contract_data_changes_iO_anke`(IN contractIDValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_contract_data_changes_iO_anke`(IN contractIDValue INTEGER(11), + IN startDate DATE, + IN endDate DATE) + BEGIN +@@ -24407,7 +24407,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_contract_data_changes_iO_end_anke`(IN contractIDValue INTEGER, ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_contract_data_changes_iO_end_anke`(IN contractIDValue INTEGER, + IN startDate DATE, + IN endDate DATE) + BEGIN +@@ -25011,7 +25011,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_contract_data_changes_vF_anke`(IN contractIDValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_contract_data_changes_vF_anke`(IN contractIDValue INTEGER(11), + IN startDate DATE, + IN endDate DATE) + BEGIN +@@ -25628,7 +25628,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_get_history_entries_for_id`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_get_history_entries_for_id`( + IN cryptHistoryIDValue TEXT + ) + get_history_entries_for_id:BEGIN +@@ -25836,7 +25836,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_carrier`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_carrier`( + IN carrierIDValue TEXT, + IN nameValue VARCHAR(255), + IN hasAddressValue TINYINT(1), +@@ -25974,7 +25974,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_child`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_child`( + IN childIDValue TEXT, + IN hashValue TEXT, + IN streetValue VARCHAR(255), +@@ -26249,7 +26249,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_child_tc_data`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_child_tc_data`( + IN childIDValue TEXT, + IN healthInsuranceValue TEXT, + IN healthInsuranceNoValue TEXT, +@@ -26342,7 +26342,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_contract`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_contract`( + IN cryptContractIDValue VARCHAR(255), + IN childIDValue INTEGER(11), + IN payerIDValue INTEGER(11), +@@ -26563,7 +26563,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_contract_has_place`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_contract_has_place`( + IN contractIDValue INTEGER(11), + IN cryptPlaceIDValue VARCHAR(255), + IN validFromDateValue DATE, +@@ -26640,7 +26640,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_custody`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_custody`( + IN custodyIDValue TEXT, + IN hashValue TEXT, + IN streetValue VARCHAR(255), +@@ -26829,7 +26829,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_custody_work`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_custody_work`( + IN custodyIDValue TEXT, + IN workNameValue TEXT, + IN workTypeValue TEXT, +@@ -27019,7 +27019,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_doctor`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_doctor`( + IN doctorIDValue TEXT, + IN childIDValue INTEGER(11), + IN nameValue TEXT, +@@ -27201,7 +27201,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_emergency_person`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_emergency_person`( + IN emergencyPersonIDValue TEXT, + IN firstNameValue VARCHAR(255), + IN lastNameValue VARCHAR(255), +@@ -27353,7 +27353,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_fev`(IN careTimeIDValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_fev`(IN careTimeIDValue INTEGER(11), + IN basicValue DECIMAL(15,5), + IN overValue DECIMAL(15,5), + IN integratedValue DECIMAL(15,5), +@@ -27398,7 +27398,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_group`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_group`( + IN groupIDValue TEXT, + IN instituteIDValue INTEGER(11), + IN groupNameValue VARCHAR(255), +@@ -27494,7 +27494,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_institute`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_institute`( + IN instituteIDValue TEXT, + IN carrierIDValue INTEGER(11), + IN inCarrierFromDateValue DATE, +@@ -27672,7 +27672,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_institute_has_institute_type`(IN instituteIDValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_institute_has_institute_type`(IN instituteIDValue INTEGER(11), + IN instituteTypeIDValue INTEGER(11), + IN validFromDateValue DATE, + IN validUntilDateValue DATE, +@@ -27808,7 +27808,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_payer`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_payer`( + IN payerIDValue INTEGER(11), + IN payerNameValue VARCHAR(255), + IN payerNoValue INTEGER(11), +@@ -27944,7 +27944,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_prereservationlist_entry`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_prereservationlist_entry`( + IN prereservationlistEntryIDValue TEXT, + IN childIDValue INTEGER(11), + IN setByPortaluserIDValue INTEGER(11), +@@ -28088,7 +28088,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_sibling`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_sibling`( + IN cryptSiblingChildIDValue TEXT, + IN hashValue TEXT, + IN hashValuesCorrectValue TINYINT(1), +@@ -28232,7 +28232,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_insert_user`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_insert_user`( + IN userIDValue TEXT, + IN loginNameValue VARCHAR(255), + IN passwdValue VARCHAR(255), +@@ -28396,7 +28396,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_multicreated_person`(IN typeValue ENUM('child','custody'), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_multicreated_person`(IN typeValue ENUM('child','custody'), + IN limitBlocksValue INTEGER(11), + IN limitPerPageValue INTEGER(11)) + BEGIN +@@ -28696,7 +28696,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_print_new_ending_contracts`(IN monthStart DATE, ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_print_new_ending_contracts`(IN monthStart DATE, + IN monthEnd DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11)) +@@ -28822,7 +28822,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_change_age`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_change_age`( + IN dayValue DATE, + IN minAge INTEGER(11), + IN maxAge INTEGER(11) +@@ -28913,7 +28913,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_child_per_age_calc_type_own_ca`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_child_per_age_calc_type_own_ca`( + IN dayValue DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11) +@@ -30313,7 +30313,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_child_per_care_time`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_child_per_care_time`( + IN monthStart DATE, + IN monthEnd DATE + ) +@@ -30531,7 +30531,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_child_per_care_time2`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_child_per_care_time2`( + IN monthStart DATE, + IN monthEnd DATE, + IN mandantIDValue INTEGER(11) +@@ -30763,7 +30763,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_classlevel`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_classlevel`( + IN dayValue DATE + ) + BEGIN +@@ -30870,7 +30870,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_contracts_ending`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_contracts_ending`( + IN dayValue DATE, + IN intervall INTEGER(11) + ) +@@ -30936,7 +30936,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_contracts_per_month`(IN monthStart DATE, ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_contracts_per_month`(IN monthStart DATE, + IN monthEnd DATE, + IN status ENUM('new','start','closed'), + IN carrierIDValue INTEGER(11), +@@ -31074,7 +31074,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_ending_finance_data`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_ending_finance_data`( + IN endingType ENUM('expired','ending'), + IN dayValue DATE, + IN intervall INTEGER(11) +@@ -31248,7 +31248,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_institute_has_child_per_age_and_township`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_institute_has_child_per_age_and_township`( + IN dayValue DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), +@@ -32009,7 +32009,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_statistic_siblings_outside`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_statistic_siblings_outside`( + IN dayValue DATE + ) + sibling_outside:BEGIN +@@ -32199,7 +32199,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_update_user_profile`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_update_user_profile`( + IN personalIDValue TEXT, + IN firstNameValue VARCHAR(255), + IN lastNameValue VARCHAR(255), +@@ -32266,7 +32266,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `proc_view_place_taken`( ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `proc_view_place_taken`( + IN groupValue TEXT, + IN beginValue DATE, + IN endValue DATE +@@ -32388,7 +32388,7 @@ + /*!50003 SET @saved_sql_mode = @@sql_mode */ ; + /*!50003 SET sql_mode = '' */ ; + DELIMITER ;; +-/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `statistic_tp`(IN instValue INTEGER(11), ++/*!50003 CREATE*/ /*!50020 DEFINER=CURRENT_USER*/ /*!50003 PROCEDURE `statistic_tp`(IN instValue INTEGER(11), + IN typeValue INTEGER(11), + IN dayValue DATE) + BEGIN +@@ -33419,7 +33419,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `check_contract_and_place_end_dates` AS select `contract`.`contractID` AS `contract_contractID`,`getBeginAndEndDate`(`contract`.`startDate`,now()) AS `contract_startDate`,`getBeginAndEndDate`(`contract`.`endDate`,now()) AS `contract_endDate`,`contract_has_place`.`placeID` AS `contract_has_place_placeID`,`contract_has_place`.`contractID` AS `contract_has_place_contractID`,`getBeginAndEndDate`(`contract_has_place`.`beginDate`,now()) AS `contract_has_place_beginDate`,`getBeginAndEndDate`(`contract_has_place`.`endDate`,now()) AS `contract_has_place_endDate` from (`contract` join `contract_has_place`) where ((`contract`.`contractID` = `contract_has_place`.`contractID`) and (`contract_has_place`.`ID` = (select `contract_has_place`.`ID` AS `ID` from `contract_has_place` where (`contract`.`contractID` = `contract_has_place`.`contractID`) order by `getBeginAndEndDate`(`contract_has_place`.`endDate`,now()) desc limit 1)) and (`getBeginAndEndDate`(`contract_has_place`.`endDate`,now()) > `getBeginAndEndDate`(`contract`.`endDate`,now()))) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33432,7 +33432,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_acl_rule` AS select `role`.`roleID` AS `role_roleID`,`role`.`name` AS `role_name`,`role`.`isAbstract` AS `role_isAbstract`,`role`.`level` AS `role_level`,`role_has_action`.`isAllow` AS `role_has_action_isAllow`,`role_has_action`.`isTcAllow` AS `role_has_action_isTcAllow`,`action`.`actionID` AS `action_actionID`,`action`.`name` AS `action_name`,`controller`.`controllerID` AS `controller_controllerID`,`controller`.`name` AS `controller_name`,`module`.`moduleID` AS `module_moduleID`,`module`.`name` AS `module_name` from ((((`role` join `role_has_action`) join `action`) join `controller`) join `module`) where ((`role`.`roleID` = `role_has_action`.`roleID`) and (`role_has_action`.`actionID` = `action`.`actionID`) and (`action`.`controllerID` = `controller`.`controllerID`) and (`controller`.`moduleID` = `module`.`moduleID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33445,7 +33445,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_address` AS select `a`.`addressID` AS `address_addressID`,`getBlobStringValue`(`a`.`street`,NULL,NULL) AS `address_street`,`getBlobStringValue`(`a`.`streetNo`,NULL,NULL) AS `address_streetNo`,`getBlobStringValue`(`a`.`zip`,NULL,NULL) AS `address_zip`,`getBlobTextValue`(`a`.`commentText`,NULL,NULL) AS `address_commentText`,`getBlobStringValue`(`a`.`state`,NULL,NULL) AS `address_state`,`getBlobStringValue`(`a`.`city`,NULL,NULL) AS `address_city`,`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL) AS `address_partOfCity`,`getBlobStringValue`(`a`.`country`,NULL,NULL) AS `address_country`,`a`.`latitude` AS `address_lat`,`a`.`longitude` AS `address_long`,`a`.`createDatetime` AS `address_createDatetime`,`a`.`updateDatetime` AS `address_updateDatetime` from `address` `a` */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33458,7 +33458,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_carrier` AS select `carrier`.`carrierID` AS `carrier_carrierID`,`carrier`.`name` AS `carrier_name`,`carrier`.`status` AS `carrier_status`,`carrier`.`createDatetime` AS `carrier_createDatetime`,`carrier`.`updateDatetime` AS `carrier_updateDatetime`,`carrier`.`lastPortalProfileUpdatedatetime` AS `carrier_lastPortalProfileUpdatedatetime`,`carrier`.`useAddressPool` AS `carrier_useAddressPool`,`carrier`.`doInstitutesConfigCatchmentAreas` AS `carrier_doInstitutesConfigCatchmentAreas`,`a`.`addressID` AS `address_addressID`,`getBlobStringValue`(`a`.`street`,NULL,NULL) AS `address_street`,`getBlobStringValue`(`a`.`streetNo`,NULL,NULL) AS `address_streetNo`,`getBlobStringValue`(`a`.`zip`,NULL,NULL) AS `address_zip`,`getBlobStringValue`(`a`.`state`,NULL,NULL) AS `address_state`,`getBlobStringValue`(`a`.`city`,NULL,NULL) AS `address_city`,`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL) AS `address_partOfCity`,`getBlobStringValue`(`a`.`country`,NULL,NULL) AS `address_country`,`getBlobStringValue`(`a`.`commentText`,NULL,NULL) AS `address_commentText` from ((`carrier` left join `carrier_has_address` on((`carrier_has_address`.`carrierID` = `carrier`.`carrierID`))) left join `address` `a` on((`carrier_has_address`.`addressID` = `a`.`addressID`))) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33471,7 +33471,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_child` AS select `child`.`childID` AS `child_childID`,`child`.`zcode` AS `child_zcode`,`child`.`isBorn` AS `child_isBorn`,`func_count_sibling`(`child`.`childID`) AS `count_sibling`,`getBlobStringValue`(`child`.`hash`,NULL,NULL) AS `child_hash`,`getBlobStringValue`(`child`.`instituteName`,NULL,now()) AS `child_instituteName`,`child`.`instituteName` AS `child_instituteNameHistoryID`,`getBooleanValue`(`child`.`isInOtherInstitute`,NULL,now()) AS `child_isInOtherInstitute`,`child`.`isInOtherInstitute` AS `child_isInOtherInstituteHistoryID`,`getDateValue`(`child`.`careStartDate`,NULL,NULL) AS `child_careStartDate`,`child`.`careStartDate` AS `child_careStartDateHistoryID`,`getDateValue`(`child`.`expectedCareEndDate`,NULL,NULL) AS `child_expectedCareEndDate`,`child`.`expectedCareEndDate` AS `child_expectedCareEndDateHistoryID`,`child`.`createDatetime` AS `child_createDatetime`,`child`.`updateDatetime` AS `child_updateDatetime`,`child`.`status` AS `child_status`,`child`.`hashValuesCorrect` AS `child_hashValuesCorrect`,`getBlobIntValue`(`child`.`countChildNumber`,NULL,NULL) AS `child_countChildNumber`,`child`.`countChildNumber` AS `child_countChildNumberHistoryID`,`child_trusted`.`childTrustedID` AS `child_trusted_childTrustedID`,`child_trusted`.`trustedByUserID` AS `child_trusted_trustedByUserID`,`child_trusted`.`createDatetime` AS `child_trusted_createDatetime`,`getXmlValue`(`child_trusted`.`commentText`) AS `child_trusted_commentText`,`pd`.`personDataID` AS `person_data_personDataID`,`getDateValue`(`pd`.`birthday`,NULL,NULL) AS `person_data_birthday`,`pd`.`birthday` AS `person_data_birthdayHistoryID`,`pd`.`birthName` AS `person_data_birthNameHistoryID`,`pd`.`gender` AS `person_data_genderHistoryID`,`pd`.`birthCity` AS `person_data_birthCityHistoryID`,`pd`.`lastName` AS `person_data_lastNameHistoryID`,`pd`.`firstName` AS `person_data_firstNameHistoryID`,`getBlobStringValue`(`pd`.`birthName`,NULL,NULL) AS `person_data_birthName`,`getStringValue`(`pd`.`gender`,NULL,NULL) AS `person_data_gender`,`getBlobStringValue`(`pd`.`title`,NULL,NULL) AS `person_data_title`,`getBlobStringValue`(`pd`.`birthCity`,NULL,NULL) AS `person_data_birthCity`,`getBlobStringValue`(`pd`.`lastName`,NULL,NULL) AS `person_data_lastName`,`getBlobStringValue`(`pd`.`firstName`,NULL,NULL) AS `person_data_firstName`,`getBlobStringValue`(`child_in_carrier`.`pkz`,NULL,NULL) AS `person_data_pkz`,`child_in_carrier`.`pkz` AS `person_data_pkzHistoryID`,`getBlobTextValue`(`pd`.`commentText`,NULL,NULL) AS `person_data_commentText`,`a`.`addressID` AS `address_addressID`,`getBlobStringValue`(`a`.`street`,NULL,NULL) AS `address_street`,`getBlobStringValue`(`a`.`streetNo`,NULL,NULL) AS `address_streetNo`,`getBlobStringValue`(`a`.`zip`,NULL,NULL) AS `address_zip`,`getBlobStringValue`(`a`.`city`,NULL,NULL) AS `address_city`,`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL) AS `address_partOfCity`,`getBlobStringValue`(`a`.`state`,NULL,NULL) AS `address_state`,`getBlobStringValue`(`a`.`country`,NULL,NULL) AS `address_country`,`getBlobTextValue`(`a`.`commentText`,NULL,NULL) AS `address_commentText`,`a`.`street` AS `address_streetHistoryID`,`a`.`streetNo` AS `address_streetNoHistoryID`,`a`.`zip` AS `address_zipHistoryID`,`a`.`city` AS `address_cityHistoryID`,`a`.`partOfCity` AS `address_partOfCityHistoryID`,`a`.`state` AS `address_stateHistoryID`,`a`.`country` AS `address_countryHistoryID`,`child_tc_data`.`childTcDataID` AS `child_tc_data_childTcDataID`,`getBlobStringValue`(`child_tc_data`.`healthInsurance`,NULL,NULL) AS `child_tc_data_healthInsurance`,`getBlobStringValue`(`child_tc_data`.`healthInsuranceNo`,NULL,NULL) AS `child_tc_data_healthInsuranceNo`,`getBlobStringValue`(`child_tc_data`.`healthInsuranceInfo`,NULL,NULL) AS `child_tc_data_healthInsuranceInfo`,`getBlobTextValue`(`child_tc_data`.`illness`,NULL,NULL) AS `child_tc_data_illness`,`getBlobTextValue`(`child_tc_data`.`commentText`,NULL,NULL) AS `child_tc_data_commentText`,`child_tc_data`.`createDatetime` AS `child_tc_data_createDatetime`,`child_tc_data`.`updateDatetime` AS `child_tc_data_updateDatetime`,`doctor`.`doctorID` AS `doctor_doctorID`,`getXmlValue`(`doctor`.`name`) AS `doctor_name`,`getXmlValue`(`doctor`.`commentText`) AS `doctor_commentText` from ((`person_data` `pd` join ((((`child` left join `child_in_carrier` on(((`child_in_carrier`.`childID` = `child`.`childID`) and (`child_in_carrier`.`carrierID` = `func_get_user_carrierID`())))) left join `child_tc_data` on((`child`.`childID` = `child_tc_data`.`childID`))) left join `child_trusted` on((`child_trusted`.`childID` = `child`.`childID`))) left join (`child_has_doctor` join `doctor`) on(((`child_has_doctor`.`childID` = `child`.`childID`) and (`child_has_doctor`.`doctorID` = `doctor`.`doctorID`))))) left join (`person_data_has_address` join `address` `a`) on(((`pd`.`personDataID` = `person_data_has_address`.`personDataID`) and (`person_data_has_address`.`isFavorite` = 1) and (`person_data_has_address`.`addressID` = `a`.`addressID`)))) where ((`child`.`personDataID` = `pd`.`personDataID`) and (`child`.`status` <> 'deleted')) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33484,7 +33484,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_contract` AS select `view_params`.`validFrom` AS `validFrom`,`view_params`.`lastPrinted` AS `lastPrinted`,`contract`.`contractID` AS `contract_contractID`,`child`.`childID` AS `child_childID`,`getBlobStringValue`(`child`.`hash`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `child_hash`,`getBlobStringValue`(`person_data`.`lastName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_lastName`,`getBlobStringValue`(`person_data`.`firstName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_firstName`,`getDateValue`(`person_data`.`birthday`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_birthday`,`getStringValue`(`person_data`.`gender`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_gender`,`getBlobTextValue`(`person_data`.`commentText`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_commentText`,`getBlobStringValue`(`child_in_carrier`.`pkz`,NULL,NULL) AS `person_data_pkz`,`getBlobIntValue`(`child`.`countChildNumber`,NULL,NULL) AS `child_countChildNumber`,`view_params`.`lastPrinted` AS `contract_lastValidPrintedDatetime`,`institute`.`instituteID` AS `contract_instituteID`,`contract`.`createDatetime` AS `contract_createDatetime`,`contract`.`updateDatetime` AS `contract_updateDatetime`,`contract`.`setToFinishedData` AS `contract_setToFinishedData`,`contract`.`careTimeID` AS `contract_careTimeIDHistoryID`,`contract`.`differentCustodyID` AS `contract_differentCustodyID`,`institute`.`instituteID` AS `institute_instituteID`,`institute_group`.`instituteTypeID` AS `contract_instituteTypeID`,`institute_type`.`orderPosition` AS `institute_type_orderPosition`,`contract`.`createdByUserID` AS `contract_createdByUserID`,`institute_group`.`groupID` AS `contract_groupID`,`contract`.`contractNumber` AS `contract_contractNumber`,`institute_group`.`groupName` AS `institute_group_groupName`,`institute`.`name` AS `institute_name`,`institute`.`instituteKind` AS `institute_instituteKind`,`institute`.`carrierID` AS `institute_carrierID`,`care_time`.`instituteTypeID` AS `care_time_instituteTypeID`,`care_time`.`hoursMorning` AS `care_time_hoursMorning`,`care_time`.`hoursAfternoon` AS `care_time_hoursAfternoon`,`care_time`.`hoursDay` AS `care_time_hoursDay`,`func_get_all_hours_from_care`(`care_time`.`hoursDay`,`care_time`.`hoursAfternoon`,`care_time`.`hoursMorning`) AS `care_time_hoursOverAll`,`care_time`.`startDate` AS `care_time_startDate`,`care_time`.`endDate` AS `care_time_endDate`,`care_time`.`description` AS `care_time_description`,`func_get_care_time_description_short`(`care_time`.`description`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1)) AS `care_time_descriptionShort`,`institute`.`status` AS `institute_status`,`contract`.`status` AS `contract_status`,`hasContractUnconfirmedChanges`(`contract`.`contractID`) AS `hasContractUnconfirmedChanges`,`func_get_siblings_by_child`(`child`.`childID`) AS `siblings_information`,`contract_has_place`.`placeID` AS `contract_has_place_placeID`,`getContractPartner`(`contract`.`contractID`,1,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_has_custody_as_contractpartner_custodyID1`,`getContractPartner`(`contract`.`contractID`,2,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_has_custody_as_contractpartner_custodyID2`,`getContractStartDate`(`contract`.`contractID`,NULL) AS `contract_startDate`,`getContractEndDate`(`contract`.`contractID`,NULL) AS `contract_endDate`,`contract`.`payerID` AS `contract_payerID`,`getBlobStringValue`(`contract`.`pkn`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_pkn`,`getBlobTextValue`(`contract`.`commentText`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_commentText`,`getBooleanValue`(`contract`.`isIntegrated`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_isIntegrated`,`contract`.`isIntegrated` AS `contract_isIntegratedHistoryID`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) AS `contract_additionalPaymentType`,`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) AS `contract_careTimeID`,`getBooleanValue`(`contract`.`childHasPedagogicHelp`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_childHasPedagogicHelp`,`contract`.`isInFamilyGermanMajorLanguage` AS `contract_isInFamilyGermanMajorLanguage`,`contract`.`hasOneCustodyForeignNativity` AS `contract_hasOneCustodyForeignNativity`,`contract`.`startHour` AS `contract_startHour`,`contract`.`endHour` AS `contract_endHour`,`func_is_address_in_institute_own_township`(`institute`.`instituteID`,`getBlobStringValue`(`a`.`zip`,NULL,NULL),`getBlobStringValue`(`a`.`city`,NULL,NULL),`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL)) AS `is_child_address_in_institute_own_township` from ((((((((((((`child` left join `child_in_carrier` on(((`child_in_carrier`.`childID` = `child`.`childID`) and (`child_in_carrier`.`carrierID` = `func_get_user_carrierID`())))) join `contract`) join `view_params`) join `person_data`) join `person_data_has_address`) join `address` `a`) join `place`) join `care_time`) join `contract_has_place`) join `institute_group`) join `institute_type`) join `institute`) where ((`child`.`status` <> 'deleted') and (`child`.`personDataID` = `person_data`.`personDataID`) and (`person_data`.`personDataID` = `person_data_has_address`.`personDataID`) and (`person_data_has_address`.`addressID` = `a`.`addressID`) and (`institute`.`instituteID` = `institute_group`.`instituteID`) and (`institute_group`.`groupID` = `place`.`groupID`) and (`institute_group`.`instituteTypeID` = `institute_type`.`instituteTypeID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`contract_has_place`.`ID` = `func_get_actual_contract_has_place_ID`(`contract`.`contractID`,`view_params`.`validFrom`)) and (`contract`.`contractID` = `contract_has_place`.`contractID`) and (`view_params`.`con_ID` = `contract`.`contractID`) and (`contract`.`childID` = `child`.`childID`) and (`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) = `care_time`.`careTimeID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33497,7 +33497,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_contract_changes_overview` AS select `contract_printed`.`contractID` AS `contractID`,`contract_printed`.`printedDatetime` AS `printedDatetime`,`contract_printed`.`valid` AS `valid`,`contract_printed`.`validDate` AS `validDate`,`contract_printed`.`changedByCorrectMulticreatedPerson` AS `changedByCorrectMulticreatedPerson`,`func_get_changes_to_contract_by_overview`(`contract_printed`.`contractID`,`contract_printed`.`printedDatetime`,`institute`.`carrierID`) AS `changeTypes` from ((((`contract_printed` join `contract_has_place`) join `place`) join `institute_group`) join `institute`) where ((`contract_printed`.`contractID` = `contract_has_place`.`contractID`) and (`func_get_actual_contract_has_place_ID`(`contract_printed`.`contractID`,curdate()) = `contract_has_place`.`ID`) and (`contract_has_place`.`placeID` = `place`.`placeID`) and (`place`.`groupID` = `institute_group`.`groupID`) and (`institute_group`.`instituteID` = `institute`.`instituteID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33510,7 +33510,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_count_child` AS select distinct `contract`.`childID` AS `childID`,`getBlobIntValue`(`child`.`countChildNumber`,NULL,NULL) AS `childCountNumber`,`contract`.`contractID` AS `contractID`,`getBeginAndEndDate`(`contract`.`endDate`,now()) AS `contract_endDate`,`func_get_contract_instituteID`(`contract`.`contractID`) AS `contractInstituteID`,`sibling`.`childID` AS `siblingID`,`getBlobIntValue`(`sibling`.`countChildNumber`,curdate(),now()) AS `siblingCountNumber`,`func_get_contract_instituteIDs_from_sibling`(`sibling`.`childID`) AS `siblingInstituteIDs` from (((`child` join `custody_has_child`) join `contract`) left join (`custody_has_child` `sib_chc` join `child` `sibling`) on(((`sibling`.`childID` <> `child`.`childID`) and (`sib_chc`.`childID` = `sibling`.`childID`) and `sib_chc`.`custodyID` in (select `chc`.`custodyID` AS `custodyID` from `custody_has_child` `chc` where ((`contract`.`status` <> 'deleted') and (`chc`.`childID` = `child`.`childID`) and (`getBooleanValue`(`chc`.`isInHousehold`,NULL,NULL) = 1))) and (`getBooleanValue`(`sib_chc`.`isInHousehold`,NULL,NULL) = 1)))) where ((`getBeginAndEndDate`(`contract`.`endDate`,now()) >= curdate()) and (`contract`.`contractID` = (select `c`.`contractID` AS `contractID` from `contract` `c` where ((`c`.`childID` = `child`.`childID`) and (`child`.`status` <> 'deleted')) order by `c`.`createDatetime` desc limit 0,1)) and (`custody_has_child`.`childID` = `child`.`childID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33523,7 +33523,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_custody` AS select `cus`.`custodyID` AS `custody_custodyID`,`getBlobStringValue`(`cus`.`hash`,NULL,NULL) AS `custody_hash`,`cus`.`hashValuesCorrect` AS `custody_hashValuesCorrect`,`cus`.`createDatetime` AS `custody_createDatetime`,`cus`.`createDatetime` AS `custody_updateDatetime`,`pd`.`personDataID` AS `person_data_personDataID`,`getBlobStringValue`(`pd`.`lastName`,NULL,NULL) AS `person_data_lastName`,`getBlobStringValue`(`pd`.`firstName`,NULL,NULL) AS `person_data_firstName`,`getBlobStringValue`(`pd`.`birthName`,NULL,NULL) AS `person_data_birthName`,`getBlobStringValue`(`pd`.`title`,NULL,NULL) AS `person_data_title`,`getBlobStringValue`(`pd`.`birthCity`,NULL,NULL) AS `person_data_birthCity`,`getStringValue`(`pd`.`gender`,NULL,NULL) AS `person_data_gender`,`getDateValue`(`pd`.`birthday`,NULL,NULL) AS `person_data_birthday`,`getBlobTextValue`(`pd`.`commentText`,NULL,NULL) AS `person_data_commentText`,`getBlobStringValue`(`custody_in_carrier`.`pkz`,NULL,NULL) AS `person_data_pkz`,`pd`.`birthday` AS `person_data_birthdayHistoryID`,`pd`.`birthName` AS `person_data_birthNameHistoryID`,`pd`.`gender` AS `person_data_genderHistoryID`,`pd`.`birthCity` AS `person_data_birthCityHistoryID`,`pd`.`lastName` AS `person_data_lastNameHistoryID`,`pd`.`firstName` AS `person_data_firstNameHistoryID`,`custody_in_carrier`.`pkz` AS `person_data_pkzHistoryID`,`custody_trusted`.`custodyTrustedID` AS `custody_trusted_custodyTrustedID`,`custody_trusted`.`trustedByUserID` AS `custody_trusted_trustedByUserID`,`custody_trusted`.`createDatetime` AS `custody_trusted_createDatetime`,`getXmlValue`(`custody_trusted`.`commentText`) AS `custody_trusted_commentText`,`getXmlValue`(`custody_trusted`.`trustData`) AS `custody_trusted_trustData`,`a`.`addressID` AS `address_addressID`,`getBlobStringValue`(`a`.`street`,NULL,NULL) AS `address_street`,`getBlobStringValue`(`a`.`streetNo`,NULL,NULL) AS `address_streetNo`,`getBlobStringValue`(`a`.`zip`,NULL,NULL) AS `address_zip`,`getBlobStringValue`(`a`.`city`,NULL,NULL) AS `address_city`,`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL) AS `address_partOfCity`,`getBlobStringValue`(`a`.`state`,NULL,NULL) AS `address_state`,`getBlobStringValue`(`a`.`country`,NULL,NULL) AS `address_country`,`a`.`street` AS `address_streetHistoryID`,`a`.`streetNo` AS `address_streetNoHistoryID`,`a`.`zip` AS `address_zipHistoryID`,`a`.`city` AS `address_cityHistoryID`,`a`.`partOfCity` AS `address_partOfCityHistoryID`,`a`.`state` AS `address_stateHistoryID`,`a`.`country` AS `address_countryHistoryID`,`getBlobTextValue`(`a`.`commentText`,NULL,NULL) AS `address_commentText` from ((((`person_data` `pd` join `custody` `cus`) join (`person_data_has_address` `pda` join `address` `a`)) left join `custody_trusted` on((`custody_trusted`.`custodyID` = `cus`.`custodyID`))) left join `custody_in_carrier` on(((`custody_in_carrier`.`custodyID` = `cus`.`custodyID`) and (`custody_in_carrier`.`carrierID` = `func_get_user_carrierID`())))) where ((`pd`.`personDataID` = `cus`.`personDataID`) and (`pda`.`personDataID` = `pd`.`personDataID`) and (`pda`.`isFavorite` = 1) and (`pda`.`addressID` = `a`.`addressID`) and (`pda`.`isFavorite` = 1) and (`cus`.`status` <> 'deleted')) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33536,7 +33536,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_emergency_person` AS select `contract`.`childID` AS `child_childID`,`contract`.`contractID` AS `contract_contractID`,`emergency_person`.`favoritePosition` AS `emergency_person_favoritePosition`,`emergency_person`.`hasPickUpRight` AS `emergency_person_hasPickUpRight`,`emergency_person`.`contactInCaseOfEmergency` AS `emergency_person_contactInCaseOfEmergency`,`emergency_person`.`emergencyPersonID` AS `emergency_person_emergencyPersonID`,`getXmlValue`(`emergency_person`.`firstName`) AS `emergency_person_firstName`,`getXmlValue`(`emergency_person`.`lastName`) AS `emergency_person_lastName`,`getXmlValue`(`emergency_person`.`workName`) AS `emergency_person_workName`,`emergency_person`.`createDatetime` AS `emergency_person_createDatetime`,`emergency_person`.`updateDatetime` AS `emergency_person_updateDatetime`,`a`.`addressID` AS `address_addressID`,`getBlobStringValue`(`a`.`street`,NULL,NULL) AS `address_street`,`getBlobStringValue`(`a`.`streetNo`,NULL,NULL) AS `address_streetNo`,`getBlobStringValue`(`a`.`zip`,NULL,NULL) AS `address_zip`,`getBlobStringValue`(`a`.`city`,NULL,NULL) AS `address_city`,`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL) AS `address_partOfCity`,`getBlobStringValue`(`a`.`state`,NULL,NULL) AS `address_state`,`getBlobStringValue`(`a`.`country`,NULL,NULL) AS `address_country`,`getBlobTextValue`(`a`.`commentText`,NULL,NULL) AS `address_commentText` from (`contract` join (`emergency_person` left join (`emergency_person_has_address` join `address` `a`) on(((`emergency_person`.`emergencyPersonID` = `emergency_person_has_address`.`emergencyPersonID`) and (`emergency_person_has_address`.`addressID` = `a`.`addressID`))))) where (`contract`.`contractID` = `emergency_person`.`contractID`) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33549,7 +33549,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_group` AS select `institute_group`.`groupID` AS `institute_group_groupID`,`institute_group`.`groupName` AS `institute_group_groupName`,`institute_group`.`maxPlaces` AS `institute_group_maxPlaces`,`institute_group`.`minAge` AS `institute_group_minAge`,`institute_group`.`maxAge` AS `institute_group_maxAge`,`institute_group`.`maxIntegratedPlaces` AS `institute_group_maxIntegratedPlaces`,`institute_group`.`status` AS `institute_group_status`,`getStringValue`(`institute_group`.`shortCode`,NULL,NULL) AS `institute_group_shortCode`,`institute_group`.`shortCode` AS `institute_group_shortCodeHistoryID`,`institute_group`.`validFromDate` AS `institute_group_validFromDate`,`institute_group`.`validUntilDate` AS `institute_group_validUntilDate`,`getXmlValue`(`institute_group`.`commentText`) AS `institute_group_commentText`,`func_get_count_active_places_in_group`(`institute_group`.`groupID`) AS `countActivePlacesInGroup`,`institute_group`.`createDatetime` AS `institute_group_createDatetime`,`institute_group`.`updateDatetime` AS `institute_group_updateDatetime`,`institute_type`.`instituteType` AS `institute_type_instituteType`,`institute_type`.`instituteTypeID` AS `institute_type_instituteTypeID`,`institute_type`.`orderPosition` AS `institute_type_orderPosition`,`institute`.`instituteID` AS `institute_instituteID`,`institute`.`name` AS `institute_name`,`institute`.`instituteKind` AS `institute_instituteKind`,`func_get_created_places_in_group`(`institute_group`.`groupID`) AS `countCreatedPlacesInGroup` from (`institute_group` left join (`institute` join `institute_type`) on(((`institute_group`.`instituteID` = `institute`.`instituteID`) and (`institute_group`.`instituteTypeID` = `institute_type`.`instituteTypeID`)))) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33562,7 +33562,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_institute` AS select `institute`.`instituteID` AS `institute_instituteID`,`institute`.`name` AS `institute_name`,`institute`.`instituteKind` AS `institute_instituteKind`,`institute`.`ratingAverage` AS `institute_ratingAverage`,`institute`.`createDatetime` AS `institute_createDatetime`,`institute`.`updateDatetime` AS `institute_updateDatetime`,`institute`.`lastPortalProfileUpdatedatetime` AS `institute_lastPortalProfileUpdatedatetime`,`institute`.`status` AS `institute_status`,`institute`.`receiptSign` AS `institute_receiptSign`,`institute`.`showInPortal` AS `institute_showInPortal`,`institute`.`inCarrierFromDate` AS `institute_inCarrierFromDate`,`institute`.`inCarrierEndDate` AS `institute_inCarrierEndDate`,`institute_data`.`instituteDataID` AS `institute_data_instituteDataID`,`institute_data`.`blanketAmount` AS `institute_data_blanketAmount`,`institute_data`.`isPortalProfileUpToDate` AS `institute_data_isPortalProfileUpToDate`,`institute_data`.`portalProfileData` AS `institute_data_portalProfileData`,`carrier`.`carrierID` AS `carrier_carrierID`,`carrier`.`name` AS `carrier_name`,`carrier`.`useAddressPool` AS `carrier_useAddressPool`,`carrier`.`doInstitutesConfigCatchmentAreas` AS `carrier_doInstitutesConfigCatchmentAreas`,`address`.`addressID` AS `address_addressID`,`getBlobStringValue`(`address`.`street`,NULL,NULL) AS `address_street`,`getBlobStringValue`(`address`.`streetNo`,NULL,NULL) AS `address_streetNo`,`getBlobStringValue`(`address`.`zip`,NULL,NULL) AS `address_zip`,`getBlobStringValue`(`address`.`city`,NULL,NULL) AS `address_city`,`getBlobStringValue`(`address`.`partOfCity`,NULL,NULL) AS `address_partOfCity`,`getBlobStringValue`(`address`.`state`,NULL,NULL) AS `address_state`,`getBlobStringValue`(`address`.`country`,NULL,NULL) AS `address_country`,`getBlobStringValue`(`address`.`commentText`,NULL,NULL) AS `address_commentText`,`address`.`latitude` AS `address_lat`,`address`.`longitude` AS `address_long` from ((`institute` left join (`institute_data` join `address`) on(((`institute_data`.`instituteID` = `institute`.`instituteID`) and (`institute_data`.`addressID` = `address`.`addressID`)))) left join `carrier` on((`institute`.`carrierID` = `carrier`.`carrierID`))) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33575,7 +33575,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_params` AS select `contract`.`contractID` AS `con_ID`,`getValidFrom`(`contract`.`contractID`) AS `validFrom`,`getLastContractPrintedDatetime`(`contract`.`contractID`,NULL) AS `lastPrinted` from `contract` */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33588,7 +33588,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_personal_key_list` AS select `contract`.`contractID` AS `contract_contractID`,`child`.`childID` AS `child_childID`,`getBlobStringValue`(`person_data`.`lastName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_lastName`,`getBlobStringValue`(`person_data`.`firstName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_firstName`,`getDateValue`(`person_data`.`birthday`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_birthday`,`getBlobIntValue`(`child`.`countChildNumber`,NULL,NULL) AS `child_countChildNumber`,`view_params`.`lastPrinted` AS `contract_lastValidPrintedDatetime`,`institute`.`instituteID` AS `contract_instituteID`,`contract`.`createDatetime` AS `contract_createDatetime`,`contract`.`careTimeID` AS `contract_careTimeIDHistoryID`,`institute`.`instituteID` AS `institute_instituteID`,`institute_group`.`instituteTypeID` AS `contract_instituteTypeID`,`institute_type`.`orderPosition` AS `institute_type_orderPosition`,`institute_type`.`orderPosition2` AS `institute_type_orderPosition2`,`institute_group`.`groupID` AS `contract_groupID`,`contract`.`contractNumber` AS `contract_contractNumber`,`institute_group`.`groupName` AS `institute_group_groupName`,`institute`.`name` AS `institute_name`,`institute`.`instituteKind` AS `institute_instituteKind`,`carrier`.`name` AS `carrier_name`,`institute`.`carrierID` AS `institute_carrierID`,`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) AS `contract_careTimeID`,`care_time`.`description` AS `care_time_description`,`func_get_care_time_description_short`(`care_time`.`description`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1)) AS `care_time_descriptionShort`,`contract`.`status` AS `contract_status`,`contract_has_place`.`placeID` AS `contract_has_place_placeID`,`getContractStartDate`(`contract`.`contractID`,NULL) AS `contract_startDate`,`getContractEndDate`(`contract`.`contractID`,NULL) AS `contract_endDate`,`getBlobStringValue`(`contract`.`pkn`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_pkn`,`getBooleanValue`(`contract`.`isIntegrated`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_isIntegrated`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) AS `contract_additionalPaymentType`,`getOrderPositionToInstituteTypeID`(`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1)) AS `contract_additionalPaymentTypeOrderPosition`,`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'basic',NULL,NULL) AS `fevBasicValue`,`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'over',NULL,NULL) AS `fevOverValue`,`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'integrated',NULL,NULL) AS `fevIntegratedValue`,`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'additional',NULL,NULL) AS `fevAdditionalValue`,`getFulltimeEquivalentValueSum`(1,`getBooleanValue`(`contract`.`isIntegrated`,`view_params`.`validFrom`,`view_params`.`lastPrinted`),`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'basic',NULL,NULL),`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'over',NULL,NULL),`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'integrated',NULL,NULL),`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'additional',NULL,NULL),`care_time`.`hoursAfternoon`,`care_time`.`hoursDay`,`care_time`.`hoursMorning`) AS `fevSum`,`isOverCare`(`care_time`.`hoursAfternoon`,`care_time`.`hoursDay`,`care_time`.`hoursMorning`) AS `isOverCare` from ((((((((((`child` join `contract`) join `view_params`) join `person_data`) join `place`) join `care_time`) join `contract_has_place`) join `institute_group`) join `institute_type`) join `institute`) join `carrier`) where ((`child`.`status` <> 'deleted') and (`child`.`personDataID` = `person_data`.`personDataID`) and (`institute`.`carrierID` = `carrier`.`carrierID`) and (`institute`.`instituteID` = `institute_group`.`instituteID`) and (`institute_group`.`groupID` = `place`.`groupID`) and (`institute_group`.`instituteTypeID` = `institute_type`.`instituteTypeID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`contract_has_place`.`ID` = `func_get_actual_contract_has_place_ID`(`contract`.`contractID`,`view_params`.`validFrom`)) and (`contract`.`contractID` = `contract_has_place`.`contractID`) and (`view_params`.`con_ID` = `contract`.`contractID`) and (`contract`.`childID` = `child`.`childID`) and (`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) = `care_time`.`careTimeID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33601,7 +33601,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_place` AS select `place`.`placeID` AS `place_placeID`,`place`.`placeName` AS `place_placeName`,`place`.`validFromDate` AS `place_validFromDate`,`place`.`validUntilDate` AS `place_validUntilDate`,`place`.`groupID` AS `place_groupID`,`institute`.`name` AS `institute_name`,`institute`.`carrierID` AS `institute_carrierID`,`institute_group`.`groupName` AS `group_groupName`,`institute_group`.`instituteTypeID` AS `group_instituteTypeID`,`institute_group`.`instituteID` AS `group_instituteID`,`place`.`status` AS `place_status`,`getXmlValue`(`place`.`commentText`) AS `place_commentText`,`func_get_count_allocations_by_place`(`place`.`placeID`) AS `place_countAllocations` from ((`place` join `institute_group` on((`institute_group`.`groupID` = `place`.`groupID`))) join `institute` on((`institute_group`.`instituteID` = `institute`.`instituteID`))) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33614,7 +33614,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_place_taken` AS select `contract`.`contractID` AS `contract_contractID`,`child`.`childID` AS `child_childID`,`func_get_siblings_by_child`(`child`.`childID`) AS `siblings_information`,`getBlobStringValue`(`person_data`.`lastName`,NULL,NULL) AS `person_data_lastName`,`getBlobStringValue`(`person_data`.`firstName`,NULL,NULL) AS `person_data_firstName`,`getStringValue`(`person_data`.`gender`,NULL,NULL) AS `person_data_gender`,`getDateValue`(`person_data`.`birthday`,NULL,NULL) AS `person_data_birthday`,`contract_has_place`.`ID` AS `contract_has_place_ID`,`contract_has_place`.`placeID` AS `contract_has_place_placeID`,`getBooleanValue`(`contract`.`isIntegrated`,NULL,NULL) AS `contract_isIntegrated`,`institute_group`.`groupID` AS `institute_groupID`,`institute_group`.`groupName` AS `institute_group_groupName`,`institute_group`.`instituteID` AS `institute_group_instituteID`,`institute_group`.`maxAge` AS `institute_group_maxAge`,`institute_group`.`minAge` AS `institute_group_minAge`,`institute_group`.`maxPlaces` AS `institute_groupmaxPlaces`,`institute_group`.`maxIntegratedPlaces` AS `institute_group_maxIntegratedPlaces`,`institute`.`instituteKind` AS `institute_instituteKind`,`institute`.`carrierID` AS `institute_carrierID`,`institute`.`name` AS `institute_name`,`care_time`.`hoursMorning` AS `care_time_hoursMorning`,`care_time`.`hoursAfternoon` AS `care_time_hoursAfternoon`,`care_time`.`hoursDay` AS `care_time_hoursDay`,`func_get_all_hours_from_care`(`care_time`.`hoursDay`,`care_time`.`hoursAfternoon`,`care_time`.`hoursMorning`) AS `care_time_hoursOverAll`,`getNextGroupName`(`contract`.`contractID`,`getBeginAndEndDate`(`contract_has_place`.`beginDate`,NULL)) AS `next_contract_has_place_groupName`,`getBeginAndEndDate`(`contract_has_place`.`beginDate`,NULL) AS `contract_has_place_beginDate`,`getBeginAndEndDate`(`contract_has_place`.`endDate`,NULL) AS `contract_has_place_endDate`,`contract`.`status` AS `contract_status`,NULL AS `prereservationlist_entry_prereservationlistEntryID`,NULL AS `prereservationlist_entry_has_place_placeID`,NULL AS `prereservationlist_entry_has_place_placeFromDate`,NULL AS `prereservationlist_entry_has_place_placeUntilDate`,NULL AS `prereservationlist_entry_isIntegrated`,NULL AS `prereservationlist_entry_status` from (((((((`person_data` join `institute_group`) join `institute`) join `child`) join `place`) join `contract`) join `contract_has_place`) join `care_time`) where ((`contract`.`status` <> 'deleted') and (`child`.`childID` = `contract`.`childID`) and (`contract_has_place`.`contractID` = `contract`.`contractID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`getIntValue`(`contract`.`careTimeID`,`getContractStartDate`(`contract`.`contractID`,NULL),NULL,1) = `care_time`.`careTimeID`) and (`child`.`personDataID` = `person_data`.`personDataID`) and (`institute_group`.`groupID` = `place`.`groupID`) and (`institute_group`.`instituteID` = `institute`.`instituteID`)) union all select NULL AS `NULL`,`child`.`childID` AS `child_childID`,`func_get_siblings_by_child`(`child`.`childID`) AS `siblings_information`,`getBlobStringValue`(`person_data`.`lastName`,NULL,NULL) AS `person_data_lastName`,`getBlobStringValue`(`person_data`.`firstName`,NULL,NULL) AS `person_data_firstName`,`getStringValue`(`person_data`.`gender`,NULL,NULL) AS `person_data_gender`,`getDateValue`(`person_data`.`birthday`,NULL,NULL) AS `person_data_birthday`,NULL AS `NULL`,NULL AS `NULL`,NULL AS `NULL`,`institute_group`.`groupID` AS `institute_groupID`,`institute_group`.`groupName` AS `institute_group_groupName`,`institute_group`.`instituteID` AS `institute_group_instituteID`,`institute_group`.`maxAge` AS `institute_group_maxAge`,`institute_group`.`minAge` AS `institute_group_minAge`,`institute_group`.`maxPlaces` AS `institute_groupmaxPlaces`,`institute_group`.`maxIntegratedPlaces` AS `institute_group_maxIntegratedPlaces`,`institute`.`instituteKind` AS `institute_instituteKind`,`institute`.`carrierID` AS `institute_carrierID`,`institute`.`name` AS `institute_name`,NULL AS `NULL`,NULL AS `NULL`,NULL AS `NULL`,NULL AS `NULL`,NULL AS `NULL`,NULL AS `NULL`,NULL AS `NULL`,NULL AS `NULL`,`prereservationlist_entry`.`prereservationlistEntryID` AS `prereservationlist_entry_prereservationlistEntryID`,`prereservationlist_entry_has_place`.`placeID` AS `prereservationlist_entry_has_place_placeID`,`prereservationlist_entry_has_place`.`placeFromDate` AS `prereservationlist_entry_has_place_placeFromDate`,`prereservationlist_entry_has_place`.`placeUntilDate` AS `prereservationlist_entry_has_place_placeUntilDate`,`prereservationlist_entry`.`isIntegrated` AS `prereservationlist_entry_isIntegrated`,`prereservationlist_entry`.`status` AS `prereservationlist_entry_status` from ((((((`person_data` join `institute_group`) join `institute`) join `child`) join `place`) join `prereservationlist_entry`) join `prereservationlist_entry_has_place`) where ((`place`.`placeID` = `prereservationlist_entry_has_place`.`placeID`) and (`child`.`status` <> 'deleted') and (`child`.`childID` = `prereservationlist_entry`.`childID`) and (`prereservationlist_entry_has_place`.`prereservationlistEntryID` = `prereservationlist_entry`.`prereservationlistEntryID`) and ((`prereservationlist_entry`.`status` = 'reserved') or (`prereservationlist_entry`.`status` = 'reserved_confirmed')) and (`child`.`personDataID` = `person_data`.`personDataID`) and (`institute_group`.`groupID` = `place`.`groupID`) and (`institute_group`.`instituteID` = `institute`.`instituteID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33627,7 +33627,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_portal_prereservationlist_entry` AS select `portal_prereservationlist_entry`.`portalPrereservationListID` AS `portal_prereservationlist_entry_portalPrereservationListID`,`getXmlValue`(`portal_prereservationlist_entry`.`prereservationData`) AS `portal_prereservationlist_entry_prereservationData`,`getXmlValue`(`portal_prereservationlist_entry`.`childFirstName`) AS `portal_prereservationlist_entry_childFirstName`,`getXmlValue`(`portal_prereservationlist_entry`.`childLastName`) AS `portal_prereservationlist_entry_childLastName`,`getXmlValue`(`portal_prereservationlist_entry`.`childBirthday`) AS `portal_prereservationlist_entry_childBirthday`,`portal_prereservationlist_entry`.`prereservationStartDate` AS `portal_prereservationlist_entry_prereservationStartDate`,`portal_prereservationlist_entry`.`prereservationPortalID` AS `portal_prereservationlist_entry_prereservationPortalID`,`portal_prereservationlist_entry`.`createDatetime` AS `portal_prereservationlist_entry_createDatetime`,`portal_prereservationlist_entry`.`status` AS `portal_prereservationlist_entry_status`,`institute`.`instituteID` AS `institute_instituteID`,`institute`.`name` AS `institute_name`,`institute`.`instituteKind` AS `institute_instituteKind`,`institute`.`carrierID` AS `institute_carrierID`,`institute_type`.`instituteTypeID` AS `institute_type_instituteTypeID`,`institute_type`.`orderPosition` AS `institute_type_orderPosition`,`institute_type`.`instituteType` AS `institute_type_instituteType`,`portal_prereservation_is_tc_prereservation`.`prereservationlistEntryID` AS `is_tc_prereservationListEntryID`,`portal_prereservationlist_entry`.`prereservationRejectionData` AS `portal_prereservationlist_entry_prereservationRejectionData` from (((`portal_prereservationlist_entry` join `institute`) join `institute_type`) left join `portal_prereservation_is_tc_prereservation` on((`portal_prereservationlist_entry`.`portalPrereservationListID` = `portal_prereservation_is_tc_prereservation`.`portalPreservationListID`))) where ((`portal_prereservationlist_entry`.`instituteID` = `institute`.`instituteID`) and (`portal_prereservationlist_entry`.`instituteTypeID` = `institute_type`.`instituteTypeID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33640,7 +33640,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_prereservationlist_entry` AS select `prereservationlist_entry`.`prereservationlistEntryID` AS `prereservationlist_entry_prereservationlistEntryID`,`institutepre`.`instituteID` AS `institute_instituteID`,`institutepre`.`name` AS `institute_name`,`institutepre`.`instituteKind` AS `institute_instituteKind`,`institutepre`.`carrierID` AS `institute_carrierID`,`prereservationlist_entry`.`childID` AS `prereservationlist_entry_childID`,`getBlobStringValue`(`person_data`.`lastName`,NULL,NULL) AS `person_data_lastName`,`getBlobStringValue`(`person_data`.`firstName`,NULL,NULL) AS `person_data_firstName`,`getBlobStringValue`(`child_in_carrier`.`pkz`,NULL,NULL) AS `person_data_pkz`,`getDateValue`(`person_data`.`birthday`,NULL,NULL) AS `person_data_birthday`,`getBlobStringValue`(`person_data`.`birthName`,NULL,NULL) AS `person_data_birthName`,`getStringValue`(`person_data`.`gender`,NULL,NULL) AS `person_data_gender`,`getBlobStringValue`(`person_data`.`title`,NULL,NULL) AS `person_data_title`,`getBlobStringValue`(`person_data`.`birthCity`,NULL,NULL) AS `person_data_birthCity`,`getBlobTextValue`(`person_data`.`commentText`,NULL,NULL) AS `person_data_commentText`,`func_count_sibling`(`child`.`childID`) AS `count_sibling`,`getBlobStringValue`(`child`.`hash`,NULL,NULL) AS `child_hash`,`child`.`isBorn` AS `child_isBorn`,`child`.`status` AS `child_status`,`child`.`createDatetime` AS `child_createDatetime`,`child`.`updateDatetime` AS `child_updateDatetime`,`func_get_siblings_by_child`(`child`.`childID`) AS `sibling_informations`,`prereservationlist_entry`.`careStartDate` AS `prereservationlist_entry_careStartDate`,`prereservationlist_entry`.`careEndDate` AS `prereservationlist_entry_careEndDate`,`func_get_care_timeIDs_by_prereservation`(`prereservationlist_entry`.`prereservationlistEntryID`) AS `careTimeIDs`,`prereservationlist_entry`.`createDatetime` AS `prereservationlist_entry_createDatetime`,`prereservationlist_entry`.`isInstituteFavorite` AS `prereservationlist_entry_isInstituteFavorite`,`prereservationlist_entry`.`setByPortalUserID` AS `prereservationlist_entry_setByPortalUserID`,`prereservationlist_entry`.`reserveEmailData` AS `prereservationlist_entry_reserveEmailData`,`prereservationlist_entry_is_set_by_user`.`userID` AS `prereservationlist_entry_is_set_by_user_userID`,`prereservationlist_entry`.`potCustodyContractPartner` AS `prereservationlist_entry_potCustodyContractPartner`,`prereservationlist_entry`.`potCustodyOptContractPartner` AS `prereservationlist_entry_potCustodyOptContractPartner`,`func_get_custodies_by_child`(`prereservationlist_entry`.`childID`) AS `custody_informations`,`prereservationlist_entry`.`favoritePosition` AS `prereservationlist_entry_favoritePosition`,`prereservationlist_entry`.`isIntegrated` AS `prereservationlist_entry_isIntegrated`,`prereservationlist_entry`.`plannedHouseMovingDate` AS `prereservationlist_entry_plannedHouseMovingDate`,`prereservationlist_entry_has_place`.`placeFromDate` AS `prereservationlist_entry_has_place_placeFromDate`,`prereservationlist_entry_has_place`.`placeUntilDate` AS `prereservationlist_entry_has_place_placeUntilDate`,`prereservationlist_entry_has_place`.`nr` AS `prereservationlist_entry_has_place_nr`,`prereservationlist_entry`.`realStartDate` AS `prereservationlist_entry_realStartDate`,`prereservationlist_entry`.`realEndDate` AS `prereservationlist_entry_realEndDate`,`prereservationlist_entry`.`realStartDateUnconfirmed` AS `prereservationlist_entry_realStartDateUnconfirmed`,`prereservationlist_entry`.`realEndDateUnconfirmed` AS `prereservationlist_entry_realEndDateUnconfirmed`,`prereservationlist_entry`.`reserveEmailLinkClicked` AS `prereservationlist_entry_reserveEmailLinkClicked`,`prereservationlist_entry`.`status` AS `prereservationlist_entry_status`,`func_get_prereservation_status_color`(`prereservationlist_entry`.`status`,`prereservationlist_entry`.`prereservationRejectionReason`,`prereservationlist_entry`.`reservationRemoveReason`,`prereservationlist_entry`.`potCustodyContractPartner`,`prereservationlist_entry`.`potCustodyOptContractPartner`) AS `prereservationlist_entry_statusColor`,`prereservationlist_entry`.`updateDatetime` AS `prereservationlist_entry_updateDatetime`,`prereservationlist_entry`.`prereservationEndDate` AS `prereservationlist_entry_prereservationEndDate`,`prereservationlist_entry`.`reservationEndDate` AS `prereservationlist_entry_reservationEndDate`,`prereservationlist_entry`.`prereservationRejectionReason` AS `prereservationlist_entry_prereservationRejectionReason`,`prereservationlist_entry`.`prereservationRejectionData` AS `prereservationlist_entry_prereservationRejectionData`,`prereservationlist_entry`.`reservationConfirmData` AS `prereservationlist_entry_reservationConfirmData`,`prereservationlist_entry`.`lastUpdateByUserID` AS `prereservationlist_entry_lastUpdateByUserID`,`getXmlValue`(`prereservationlist_entry`.`commentText`) AS `prereservationlist_entry_commentText`,`getXmlValue`(`prereservationlist_entry`.`rejectionMessage`) AS `prereservationlist_entry_rejectionMessage`,`getXmlValue`(`prereservationlist_entry`.`rejectionType`) AS `prereservationlist_entry_rejectionType`,`getXmlValue`(`prereservationlist_entry`.`instituteCommentText`) AS `prereservationlist_entry_instituteCommentText`,`getXmlValue`(`prereservationlist_entry`.`siblingsInInstituteData`) AS `prereservationlist_entry_siblingsInInstituteData`,`child_tc_data`.`childTcDataID` AS `child_tc_data_childTcDataID`,`getBlobStringValue`(`child_tc_data`.`healthInsurance`,NULL,NULL) AS `child_tc_data_healthInsurance`,`getBlobStringValue`(`child_tc_data`.`healthInsuranceInfo`,NULL,NULL) AS `child_tc_data_healthInsuranceInfo`,`getBlobTextValue`(`child_tc_data`.`illness`,NULL,NULL) AS `child_tc_data_illness`,`getBlobTextValue`(`child_tc_data`.`commentText`,NULL,NULL) AS `child_tc_data_commentText`,`child_tc_data`.`createDatetime` AS `child_tc_data_createDatetime`,`child_tc_data`.`updateDatetime` AS `child_tc_data_updateDatetime`,`institute_type`.`instituteTypeID` AS `institute_type_instituteTypeID`,`institute_type`.`orderPosition` AS `institute_type_orderPosition`,`institute_type`.`instituteType` AS `institute_type_instituteType`,`func_has_child_contract`(`prereservationlist_entry`.`childID`,`institute_type`.`instituteTypeID`,`institutepre`.`carrierID`) AS `child_has_contract`,`func_count_prereservations_to_child`(`prereservationlist_entry`.`childID`,`institute_type`.`instituteTypeID`,0) AS `count_all_free_prereservations_to_child`,`func_count_prereservations_to_child`(`prereservationlist_entry`.`childID`,`institute_type`.`instituteTypeID`,1) AS `count_rejected_prereservations_to_child`,`place`.`placeID` AS `place_reservationPlaceID`,`place`.`placeName` AS `place_reservationPlaceName`,`institute_group`.`groupID` AS `institute_group_reservationGroupID`,`institute_group`.`groupName` AS `institute_group_reservationGroupName`,`reit`.`instituteTypeID` AS `institute_type_reservationInstituteTypeID`,`reit`.`orderPosition` AS `institute_type_reservationOrderPosition`,`reit`.`instituteType` AS `institute_type_reservationInstituteType`,`prereservationlist_entry`.`reservationRemoveData` AS `prereservationlist_entry_reservationRemoveData`,`prereservationlist_entry`.`reservationRemoveReason` AS `prereservationlist_entry_reservationRemoveReason`,`prereservationlist_entry`.`editReserveEmailData` AS `prereservationlist_entry_editReserveEmailData`,`prereservationlist_entry`.`reservationEditConfirmData` AS `prereservationlist_entry_reservationEditConfirmData`,`child_trusted`.`childTrustedID` AS `child_trusted_childTrustedID`,`child_trusted`.`trustedByUserID` AS `child_trusted_trustedByUserID`,`getXmlValue`(`child_trusted`.`commentText`) AS `child_trusted_commentText`,`child_trusted`.`createDatetime` AS `child_trusted_createDatetime`,`portal_prereservation_is_tc_prereservation`.`portalPreservationListID` AS `has_portal_portalPrereservationListEntryID`,`func_is_address_in_institute_own_township`(`institutepre`.`instituteID`,`getBlobStringValue`(`a`.`zip`,NULL,NULL),`getBlobStringValue`(`a`.`city`,NULL,NULL),`getBlobStringValue`(`a`.`partOfCity`,NULL,NULL)) AS `is_child_address_in_institute_own_township` from ((((((((((`prereservationlist_entry` left join `portal_prereservation_is_tc_prereservation` on((`prereservationlist_entry`.`prereservationlistEntryID` = `portal_prereservation_is_tc_prereservation`.`prereservationlistEntryID`))) left join (((`prereservationlist_entry_has_place` join `place`) join `institute_group`) join `institute_type` `reit`) on(((`place`.`placeID` = `prereservationlist_entry_has_place`.`placeID`) and (`institute_group`.`groupID` = `place`.`groupID`) and (`reit`.`instituteTypeID` = `institute_group`.`instituteTypeID`) and (`prereservationlist_entry`.`prereservationlistEntryID` = `prereservationlist_entry_has_place`.`prereservationlistEntryID`)))) join `person_data`) join `person_data_has_address`) join `address` `a`) join `prereservationlist_entry_is_set_by_user`) join `institute_has_prereservationlist_entry`) join `institute_type`) join `institute` `institutepre`) join (((`child` left join `child_trusted` on((`child`.`childID` = `child_trusted`.`childID`))) left join `child_in_carrier` on(((`child_in_carrier`.`childID` = `child`.`childID`) and (`child_in_carrier`.`carrierID` = `func_get_user_carrierID`())))) left join `child_tc_data` on((`child_tc_data`.`childID` = `child`.`childID`)))) where ((`prereservationlist_entry`.`childID` = `child`.`childID`) and (`child`.`status` <> 'deleted') and (`child`.`personDataID` = `person_data`.`personDataID`) and (`person_data_has_address`.`personDataID` = `person_data`.`personDataID`) and (`person_data_has_address`.`addressID` = `a`.`addressID`) and (`prereservationlist_entry`.`prereservationlistEntryID` = `prereservationlist_entry_is_set_by_user`.`prereservationlistEntryID`) and (`prereservationlist_entry`.`prereservationlistEntryID` = `institute_has_prereservationlist_entry`.`prereservationlistEntryID`) and (`institute_type`.`instituteTypeID` = `institute_has_prereservationlist_entry`.`instituteTypeID`) and (`institutepre`.`instituteID` = `institute_has_prereservationlist_entry`.`instituteID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33653,7 +33653,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_saved_contract` AS select `saved_contract`.`savedContractID` AS `saved_contract_savedContractID`,`getXmlValue`(`saved_contract`.`contractData`) AS `saved_contract_contractData`,`getXmlValue`(`saved_contract`.`childHash`) AS `saved_contract_childHash`,`getXmlValue`(`saved_contract`.`childFirstName`) AS `saved_contract_childFirstName`,`getXmlValue`(`saved_contract`.`childLastName`) AS `saved_contract_childLastName`,`saved_contract`.`createDatetime` AS `saved_contract_createDatetime`,`saved_contract`.`updateDatetime` AS `saved_contract_updateDatetime`,`saved_contract`.`createdUserID` AS `saved_contract_createdUserID`,`institute`.`instituteID` AS `institute_instituteID`,`institute`.`name` AS `institute_name`,`institute`.`instituteKind` AS `institute_instituteKind`,`institute`.`carrierID` AS `institute_carrierID` from (`saved_contract` left join `institute` on((`saved_contract`.`instituteID` = `institute`.`instituteID`))) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +@@ -33666,7 +33666,7 @@ + /*!50001 SET character_set_results = latin1 */; + /*!50001 SET collation_connection = latin1_swedish_ci */; + /*!50001 CREATE ALGORITHM=UNDEFINED */ +-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ ++/*!50013 DEFINER=CURRENT_USER SQL SECURITY DEFINER */ + /*!50001 VIEW `view_user` AS select `getBlobStringValue`(`pd`.`firstName`,NULL,NULL) AS `person_data_firstName`,`getBlobStringValue`(`pd`.`lastName`,NULL,NULL) AS `person_data_lastName`,`pd`.`personDataID` AS `person_data_personDataID`,`getDateValue`(`pd`.`birthday`,NULL,NULL) AS `person_data_birthday`,`getStringValue`(`pd`.`gender`,NULL,NULL) AS `person_data_gender`,`p`.`personalID` AS `personal_personalID`,`p`.`validFromDate` AS `personal_validFromDate`,`p`.`validUntilDate` AS `personal_validUntilDate`,`p`.`createdByUserID` AS `personal_createdByUserID`,`p`.`createDatetime` AS `personal_createDatetime`,`p`.`updateDatetime` AS `personal_updateDatetime`,`p`.`status` AS `personal_status`,`getXmlValue`(`p`.`commentText`) AS `personal_commentText`,`user`.`userID` AS `user_userID`,`user`.`passwd` AS `user_passwd`,`user`.`passwdSalt` AS `user_passwdSalt`,`user`.`lastLoginDatetime` AS `user_lastLoginDatetime`,`user`.`failedLogins` AS `user_failedLogins`,`user`.`lastLoginTryIP` AS `user_lastLoginTryIP`,`user`.`lastLoginTryDatetime` AS `user_lastLoginTryDatetime`,`user`.`passwdValidUntilDate` AS `user_passwdValidUntilDate`,`user`.`lastPasswdRequestValidUntil` AS `user_lastPasswdRequestValidUntil`,`user`.`lastPasswdRequestUrl` AS `user_lastPasswdRequestUrl`,`user`.`createDatetime` AS `user_createDatetime`,`user`.`updateDatetime` AS `user_updateDatetime`,`user`.`loginName` AS `user_loginName`,`user`.`allowLogin` AS `user_allowLogin`,`user`.`lastPasswdChangeDate` AS `user_lastPasswdChangeDate`,`user`.`sign` AS `user_sign`,`user`.`status` AS `user_userStatus`,`user`.`messageType` AS `user_messageType`,`user`.`messageOptions` AS `user_messageOptions` from ((`user` join `personal` `p`) join `person_data` `pd`) where ((`p`.`userID` = `user`.`userID`) and (`p`.`personDataID` = `pd`.`personDataID`)) */; + /*!50001 SET character_set_client = @saved_cs_client */; + /*!50001 SET character_set_results = @saved_cs_results */; +--- a/Database/trustcenter_history_generate_test_entries.sql ++++ b/Database/trustcenter_history_generate_test_entries.sql +@@ -1022,7 +1022,7 @@ + + DELIMITER ;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_test_tc`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_test_tc`( + IN instituteNumber INTEGER(11), + IN childAmount INTEGER(11) + ) +--- a/Database/trustcenter_history_generate_test_entries2.sql ++++ b/Database/trustcenter_history_generate_test_entries2.sql +@@ -1022,7 +1022,7 @@ + + DELIMITER ;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_test_tc`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_test_tc`( + IN instituteNumber INTEGER(11), + IN childAmount INTEGER(11), + IN preresAmount INTEGER(11) +--- a/Database/trustcenter_history_generate_test_entries_ansi.sql ++++ b/Database/trustcenter_history_generate_test_entries_ansi.sql +@@ -1022,7 +1022,7 @@ + + DELIMITER ;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_test_tc`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_test_tc`( + IN instituteNumber INTEGER(11), + IN childAmount INTEGER(11) + ) +--- a/Database/trustcenter_history_structur_2011-02-28_010.sql ++++ b/Database/trustcenter_history_structur_2011-02-28_010.sql +@@ -135,7 +135,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `address_before_ins_tr` BEFORE INSERT ON `address` ++CREATE DEFINER=CURRENT_USER TRIGGER `address_before_ins_tr` BEFORE INSERT ON `address` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -175,7 +175,7 @@ + + DROP FUNCTION IF EXISTS `encryptValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `encryptValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `encryptValue`( + v TEXT + ) + RETURNS blob +@@ -193,7 +193,7 @@ + + DROP FUNCTION IF EXISTS `createNewXml`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `createNewXml`( ++CREATE DEFINER=CURRENT_USER FUNCTION `createNewXml`( + newValue TEXT + ) + RETURNS blob +@@ -217,7 +217,7 @@ + + DROP FUNCTION IF EXISTS `decryptValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `decryptValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `decryptValue`( + v BLOB + ) + RETURNS blob +@@ -237,7 +237,7 @@ + + DROP FUNCTION IF EXISTS `getXmlValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getXmlValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getXmlValue`( + colName TEXT + ) + RETURNS text CHARSET utf8 +@@ -263,7 +263,7 @@ + + DROP FUNCTION IF EXISTS `setNewXmlValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setNewXmlValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setNewXmlValue`( + newValue TEXT, + colName TEXT + ) +@@ -359,7 +359,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `person_data_before_ins_tr_new` BEFORE INSERT ON `person_data` ++CREATE DEFINER=CURRENT_USER TRIGGER `person_data_before_ins_tr_new` BEFORE INSERT ON `person_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -403,7 +403,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `user_before_ins_tr` BEFORE INSERT ON `user` ++CREATE DEFINER=CURRENT_USER TRIGGER `user_before_ins_tr` BEFORE INSERT ON `user` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -413,7 +413,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `user_before_upd_tr` BEFORE UPDATE ON `user` ++CREATE DEFINER=CURRENT_USER TRIGGER `user_before_upd_tr` BEFORE UPDATE ON `user` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -452,7 +452,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `personal_before_ins_tr_new` BEFORE INSERT ON `personal` ++CREATE DEFINER=CURRENT_USER TRIGGER `personal_before_ins_tr_new` BEFORE INSERT ON `personal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -466,7 +466,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `personal_before_upd_tr_new` BEFORE UPDATE ON `personal` ++CREATE DEFINER=CURRENT_USER TRIGGER `personal_before_upd_tr_new` BEFORE UPDATE ON `personal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -508,7 +508,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `agb_before_ins_tr_new` BEFORE INSERT ON `agb` ++CREATE DEFINER=CURRENT_USER TRIGGER `agb_before_ins_tr_new` BEFORE INSERT ON `agb` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -519,7 +519,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `agb_before_upd_tr_new` BEFORE UPDATE ON `agb` ++CREATE DEFINER=CURRENT_USER TRIGGER `agb_before_upd_tr_new` BEFORE UPDATE ON `agb` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -568,7 +568,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `carrier_before_ins_tr_new` BEFORE INSERT ON `carrier` ++CREATE DEFINER=CURRENT_USER TRIGGER `carrier_before_ins_tr_new` BEFORE INSERT ON `carrier` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -579,7 +579,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `carrier_before_upd_tr_new` BEFORE UPDATE ON `carrier` ++CREATE DEFINER=CURRENT_USER TRIGGER `carrier_before_upd_tr_new` BEFORE UPDATE ON `carrier` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -617,7 +617,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `institute_before_ins_tr_new` BEFORE INSERT ON `institute` ++CREATE DEFINER=CURRENT_USER TRIGGER `institute_before_ins_tr_new` BEFORE INSERT ON `institute` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -628,7 +628,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `institute_before_upd_tr_new` BEFORE UPDATE ON `institute` ++CREATE DEFINER=CURRENT_USER TRIGGER `institute_before_upd_tr_new` BEFORE UPDATE ON `institute` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -720,7 +720,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `care_time_before_ins_tr1` BEFORE INSERT ON `care_time` ++CREATE DEFINER=CURRENT_USER TRIGGER `care_time_before_ins_tr1` BEFORE INSERT ON `care_time` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -731,7 +731,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `care_time_before_upd_tr` BEFORE UPDATE ON `care_time` ++CREATE DEFINER=CURRENT_USER TRIGGER `care_time_before_upd_tr` BEFORE UPDATE ON `care_time` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -833,7 +833,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contact_before_ins_tr_new` BEFORE INSERT ON `contact` ++CREATE DEFINER=CURRENT_USER TRIGGER `contact_before_ins_tr_new` BEFORE INSERT ON `contact` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -846,7 +846,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contact_before_upd_tr_new` BEFORE UPDATE ON `contact` ++CREATE DEFINER=CURRENT_USER TRIGGER `contact_before_upd_tr_new` BEFORE UPDATE ON `contact` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -934,7 +934,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `document_template_file_ins_tr_new` BEFORE INSERT ON `document_template_file` ++CREATE DEFINER=CURRENT_USER TRIGGER `document_template_file_ins_tr_new` BEFORE INSERT ON `document_template_file` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -945,7 +945,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `document_template_file_upd_tr_new` BEFORE UPDATE ON `document_template_file` ++CREATE DEFINER=CURRENT_USER TRIGGER `document_template_file_upd_tr_new` BEFORE UPDATE ON `document_template_file` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1085,7 +1085,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `certificate_before_ins_tr_new` BEFORE INSERT ON `certificate` ++CREATE DEFINER=CURRENT_USER TRIGGER `certificate_before_ins_tr_new` BEFORE INSERT ON `certificate` + FOR EACH ROW + BEGIN + +@@ -1101,7 +1101,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `certificate_before_upd_tr_new` BEFORE UPDATE ON `certificate` ++CREATE DEFINER=CURRENT_USER TRIGGER `certificate_before_upd_tr_new` BEFORE UPDATE ON `certificate` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1212,7 +1212,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_before_ins_tr_new` BEFORE INSERT ON `child` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_before_ins_tr_new` BEFORE INSERT ON `child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1223,7 +1223,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_before_upd_tr` BEFORE UPDATE ON `child` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_before_upd_tr` BEFORE UPDATE ON `child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1272,7 +1272,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_eat_meal_before_ins_tr_new` BEFORE INSERT ON `child_eat_meal` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_eat_meal_before_ins_tr_new` BEFORE INSERT ON `child_eat_meal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1302,7 +1302,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_has_child_as_sibling_before_ins_tr_new` BEFORE INSERT ON `child_has_child_as_sibling` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_has_child_as_sibling_before_ins_tr_new` BEFORE INSERT ON `child_has_child_as_sibling` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1312,7 +1312,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_has_child_as_sibling_before_upd_tr_new` BEFORE UPDATE ON `child_has_child_as_sibling` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_has_child_as_sibling_before_upd_tr_new` BEFORE UPDATE ON `child_has_child_as_sibling` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1349,7 +1349,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `doctor_before_ins_tr` BEFORE INSERT ON `doctor` ++CREATE DEFINER=CURRENT_USER TRIGGER `doctor_before_ins_tr` BEFORE INSERT ON `doctor` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1363,7 +1363,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `doctor_before_upd_tr` BEFORE UPDATE ON `doctor` ++CREATE DEFINER=CURRENT_USER TRIGGER `doctor_before_upd_tr` BEFORE UPDATE ON `doctor` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1466,7 +1466,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_tc_data_before_ins_tr_new` BEFORE INSERT ON `child_tc_data` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_tc_data_before_ins_tr_new` BEFORE INSERT ON `child_tc_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1502,7 +1502,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_trusted_before_ins_tr_new` BEFORE INSERT ON `child_trusted` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_trusted_before_ins_tr_new` BEFORE INSERT ON `child_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1512,7 +1512,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `child_trusted_before_upd_tr` BEFORE UPDATE ON `child_trusted` ++CREATE DEFINER=CURRENT_USER TRIGGER `child_trusted_before_upd_tr` BEFORE UPDATE ON `child_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1638,7 +1638,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `payer_before_ins_tr_new` BEFORE INSERT ON `payer` ++CREATE DEFINER=CURRENT_USER TRIGGER `payer_before_ins_tr_new` BEFORE INSERT ON `payer` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1648,7 +1648,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `payer_before_upd_tr` BEFORE UPDATE ON `payer` ++CREATE DEFINER=CURRENT_USER TRIGGER `payer_before_upd_tr` BEFORE UPDATE ON `payer` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1716,7 +1716,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contract_before_ins_tr_new` BEFORE INSERT ON `contract` ++CREATE DEFINER=CURRENT_USER TRIGGER `contract_before_ins_tr_new` BEFORE INSERT ON `contract` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1744,7 +1744,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `partner_firm_before_ins_tr_new` BEFORE INSERT ON `partner_firm` ++CREATE DEFINER=CURRENT_USER TRIGGER `partner_firm_before_ins_tr_new` BEFORE INSERT ON `partner_firm` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1811,7 +1811,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contract_finance_data_before_ins_tr_new` BEFORE INSERT ON `contract_finance_data` ++CREATE DEFINER=CURRENT_USER TRIGGER `contract_finance_data_before_ins_tr_new` BEFORE INSERT ON `contract_finance_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1825,7 +1825,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contract_finance_data_before_upd_tr_new` BEFORE UPDATE ON `contract_finance_data` ++CREATE DEFINER=CURRENT_USER TRIGGER `contract_finance_data_before_upd_tr_new` BEFORE UPDATE ON `contract_finance_data` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -1913,7 +1913,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_before_ins_tr_new` BEFORE INSERT ON `custody` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_before_ins_tr_new` BEFORE INSERT ON `custody` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2008,7 +2008,7 @@ + + DROP FUNCTION IF EXISTS `func_next_id`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_next_id`() ++CREATE DEFINER=CURRENT_USER FUNCTION `func_next_id`() + RETURNS bigint(20) + DETERMINISTIC + CONTAINS SQL +@@ -2025,7 +2025,7 @@ + + DROP FUNCTION IF EXISTS `setBooleanValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBooleanValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBooleanValue`( + valueid INTEGER(11), + setValue TINYINT(1), + validDate DATE, +@@ -2101,7 +2101,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contract_has_custody_as_contractpartner_before_ins_tr` BEFORE INSERT ON `contract_has_custody_as_contractpartner` ++CREATE DEFINER=CURRENT_USER TRIGGER `contract_has_custody_as_contractpartner_before_ins_tr` BEFORE INSERT ON `contract_has_custody_as_contractpartner` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2135,7 +2135,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `contract_has_meal_before_ins_tr` BEFORE INSERT ON `contract_has_meal` ++CREATE DEFINER=CURRENT_USER TRIGGER `contract_has_meal_before_ins_tr` BEFORE INSERT ON `contract_has_meal` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2186,7 +2186,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `group_before_ins_tr_new` BEFORE INSERT ON `institute_group` ++CREATE DEFINER=CURRENT_USER TRIGGER `group_before_ins_tr_new` BEFORE INSERT ON `institute_group` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2201,7 +2201,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `group_before_upd_tr_new` BEFORE UPDATE ON `institute_group` ++CREATE DEFINER=CURRENT_USER TRIGGER `group_before_upd_tr_new` BEFORE UPDATE ON `institute_group` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2246,7 +2246,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `place_before_ins_tr_new` BEFORE INSERT ON `place` ++CREATE DEFINER=CURRENT_USER TRIGGER `place_before_ins_tr_new` BEFORE INSERT ON `place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2259,7 +2259,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `place_before_upd_tr_new` BEFORE UPDATE ON `place` ++CREATE DEFINER=CURRENT_USER TRIGGER `place_before_upd_tr_new` BEFORE UPDATE ON `place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2375,7 +2375,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_has_child_before_ins_tr_new` BEFORE INSERT ON `custody_has_child` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_has_child_before_ins_tr_new` BEFORE INSERT ON `custody_has_child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2385,7 +2385,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_has_child_before_upd_tr_new` BEFORE UPDATE ON `custody_has_child` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_has_child_before_upd_tr_new` BEFORE UPDATE ON `custody_has_child` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2415,7 +2415,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_work_before_ins_tr` BEFORE INSERT ON `custody_work` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_work_before_ins_tr` BEFORE INSERT ON `custody_work` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2431,7 +2431,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_work_before_upd_tr` BEFORE UPDATE ON `custody_work` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_work_before_upd_tr` BEFORE UPDATE ON `custody_work` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2543,7 +2543,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_trusted_before_ins_tr_new` BEFORE INSERT ON `custody_trusted` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_trusted_before_ins_tr_new` BEFORE INSERT ON `custody_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2555,7 +2555,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `custody_trusted_before_upd_tr_new` BEFORE UPDATE ON `custody_trusted` ++CREATE DEFINER=CURRENT_USER TRIGGER `custody_trusted_before_upd_tr_new` BEFORE UPDATE ON `custody_trusted` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2668,7 +2668,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `disability_before_ins_tr_new` BEFORE INSERT ON `disability` ++CREATE DEFINER=CURRENT_USER TRIGGER `disability_before_ins_tr_new` BEFORE INSERT ON `disability` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2681,7 +2681,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `disability_before_upd_tr_new` BEFORE UPDATE ON `disability` ++CREATE DEFINER=CURRENT_USER TRIGGER `disability_before_upd_tr_new` BEFORE UPDATE ON `disability` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2796,7 +2796,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `emergency_person_before_ins_tr` BEFORE INSERT ON `emergency_person` ++CREATE DEFINER=CURRENT_USER TRIGGER `emergency_person_before_ins_tr` BEFORE INSERT ON `emergency_person` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2811,7 +2811,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `emergency_person_before_upd_tr` BEFORE UPDATE ON `emergency_person` ++CREATE DEFINER=CURRENT_USER TRIGGER `emergency_person_before_upd_tr` BEFORE UPDATE ON `emergency_person` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2989,7 +2989,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `religion_before_ins_tr_new` BEFORE INSERT ON `religion` ++CREATE DEFINER=CURRENT_USER TRIGGER `religion_before_ins_tr_new` BEFORE INSERT ON `religion` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -2998,7 +2998,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `religion_before_upd_tr_new` BEFORE UPDATE ON `religion` ++CREATE DEFINER=CURRENT_USER TRIGGER `religion_before_upd_tr_new` BEFORE UPDATE ON `religion` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3213,7 +3213,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `institute_has_care_time_before_ins_tr` BEFORE INSERT ON `institute_has_care_time` ++CREATE DEFINER=CURRENT_USER TRIGGER `institute_has_care_time_before_ins_tr` BEFORE INSERT ON `institute_has_care_time` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3309,7 +3309,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `insttitute_has_institute_type_before_ins_tr_new` BEFORE INSERT ON `institute_has_institute_type` ++CREATE DEFINER=CURRENT_USER TRIGGER `insttitute_has_institute_type_before_ins_tr_new` BEFORE INSERT ON `institute_has_institute_type` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3322,7 +3322,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `insttitute_has_institute_type_before_upd_tr_new` BEFORE UPDATE ON `institute_has_institute_type` ++CREATE DEFINER=CURRENT_USER TRIGGER `insttitute_has_institute_type_before_upd_tr_new` BEFORE UPDATE ON `institute_has_institute_type` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3463,7 +3463,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `prereservationlist_entry_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `prereservationlist_entry_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3479,7 +3479,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `prereservationlist_entry_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `prereservationlist_entry_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3683,7 +3683,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `management_hierarchy_object_before_ins_tr_new` BEFORE INSERT ON `management_hierarchy_object` ++CREATE DEFINER=CURRENT_USER TRIGGER `management_hierarchy_object_before_ins_tr_new` BEFORE INSERT ON `management_hierarchy_object` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3692,7 +3692,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `management_hierarchy_object_before_upd_tr_new` BEFORE UPDATE ON `management_hierarchy_object` ++CREATE DEFINER=CURRENT_USER TRIGGER `management_hierarchy_object_before_upd_tr_new` BEFORE UPDATE ON `management_hierarchy_object` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3932,7 +3932,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `portal_prereservationlist_entry_before_ins_tr` BEFORE INSERT ON `portal_prereservationlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `portal_prereservationlist_entry_before_ins_tr` BEFORE INSERT ON `portal_prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -3949,7 +3949,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `portal_prereservationlist_entry_before_upd_tr` BEFORE UPDATE ON `portal_prereservationlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `portal_prereservationlist_entry_before_upd_tr` BEFORE UPDATE ON `portal_prereservationlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4066,7 +4066,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `prereservationlist_entry_has_place_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry_has_place` ++CREATE DEFINER=CURRENT_USER TRIGGER `prereservationlist_entry_has_place_before_ins_tr_new` BEFORE INSERT ON `prereservationlist_entry_has_place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4076,7 +4076,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `prereservationlist_entry_has_place_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry_has_place` ++CREATE DEFINER=CURRENT_USER TRIGGER `prereservationlist_entry_has_place_before_upd_tr_new` BEFORE UPDATE ON `prereservationlist_entry_has_place` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4132,7 +4132,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `presentlist_entry_before_ins_tr_new` BEFORE INSERT ON `presentlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `presentlist_entry_before_ins_tr_new` BEFORE INSERT ON `presentlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4145,7 +4145,7 @@ + END IF ; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `presentlist_entry_before_upd_tr_new` BEFORE UPDATE ON `presentlist_entry` ++CREATE DEFINER=CURRENT_USER TRIGGER `presentlist_entry_before_upd_tr_new` BEFORE UPDATE ON `presentlist_entry` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4226,7 +4226,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `saved_contract_before_ins_tr_new` BEFORE INSERT ON `saved_contract` ++CREATE DEFINER=CURRENT_USER TRIGGER `saved_contract_before_ins_tr_new` BEFORE INSERT ON `saved_contract` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4243,7 +4243,7 @@ + END IF; + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `saved_contract_before_upd_tr_new` BEFORE UPDATE ON `saved_contract` ++CREATE DEFINER=CURRENT_USER TRIGGER `saved_contract_before_upd_tr_new` BEFORE UPDATE ON `saved_contract` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4373,7 +4373,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `statistic_taken_places_before_ins_tr` BEFORE INSERT ON `statistic_taken_places` ++CREATE DEFINER=CURRENT_USER TRIGGER `statistic_taken_places_before_ins_tr` BEFORE INSERT ON `statistic_taken_places` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4384,7 +4384,7 @@ + + END$$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `statistic_taken_places_before_upd_tr` BEFORE UPDATE ON `statistic_taken_places` ++CREATE DEFINER=CURRENT_USER TRIGGER `statistic_taken_places_before_upd_tr` BEFORE UPDATE ON `statistic_taken_places` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4426,7 +4426,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `user_has_tc_message_folder_before_ins_tr` BEFORE INSERT ON `user_has_tc_message_folder` ++CREATE DEFINER=CURRENT_USER TRIGGER `user_has_tc_message_folder_before_ins_tr` BEFORE INSERT ON `user_has_tc_message_folder` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4465,7 +4465,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `tc_message_before_ins_tr` BEFORE INSERT ON `tc_message` ++CREATE DEFINER=CURRENT_USER TRIGGER `tc_message_before_ins_tr` BEFORE INSERT ON `tc_message` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4492,7 +4492,7 @@ + + DELIMITER $$ + +-CREATE DEFINER = 'root'@'localhost' TRIGGER `trustcenter_before_ins_tr_new` BEFORE INSERT ON `trustcenter` ++CREATE DEFINER=CURRENT_USER TRIGGER `trustcenter_before_ins_tr_new` BEFORE INSERT ON `trustcenter` + FOR EACH ROW + BEGIN + IF(@triggerDisable IS NULL || @triggerDisable != true) +@@ -4663,7 +4663,7 @@ + + DROP FUNCTION IF EXISTS `func_count_prereservations_to_child`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_count_prereservations_to_child`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_count_prereservations_to_child`( + childIDValue INTEGER(11), + instituteTypeIDValue INTEGER(11), + getOnlyRejectedPrereservations TINYINT(1) +@@ -4751,7 +4751,7 @@ + + DROP FUNCTION IF EXISTS `func_count_sibling`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_count_sibling`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_count_sibling`( + childID INTEGER(11) + ) + RETURNS smallint(4) +@@ -4800,7 +4800,7 @@ + + DROP FUNCTION IF EXISTS `getBlobStringValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBlobStringValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBlobStringValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -4860,7 +4860,7 @@ + + DROP FUNCTION IF EXISTS `func_double_name_person_block_ok`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_double_name_person_block_ok`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_double_name_person_block_ok`( + typeValue ENUM('child','custody'), + lastName VARCHAR(255), + firstName3Chars VARCHAR(3) +@@ -4909,7 +4909,7 @@ + + DROP FUNCTION IF EXISTS `getBeginAndEndDate`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBeginAndEndDate`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBeginAndEndDate`( + my_id INTEGER(11), + lookTo DATETIME + ) +@@ -4937,7 +4937,7 @@ + + DROP FUNCTION IF EXISTS `func_get_actual_contract_has_place_ID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_actual_contract_has_place_ID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_actual_contract_has_place_ID`( + contractIDValue INTEGER(11), + lookToDate DATE + ) +@@ -4993,7 +4993,7 @@ + + DROP FUNCTION IF EXISTS `func_get_all_hours_from_care`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_all_hours_from_care`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_all_hours_from_care`( + hoursValue DECIMAL(3,1), + morningValue DECIMAL(3,1), + afternoonValue DECIMAL(3,1) +@@ -5030,7 +5030,7 @@ + + DROP FUNCTION IF EXISTS `func_get_care_timeIDs_by_prereservation`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_care_timeIDs_by_prereservation`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_care_timeIDs_by_prereservation`( + preresID INTEGER(11) + ) + RETURNS text CHARSET utf8 +@@ -5074,7 +5074,7 @@ + + DROP FUNCTION IF EXISTS `func_get_care_time_description_short`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_care_time_description_short`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_care_time_description_short`( + caretimeDescription VARCHAR(255), + additionalPaymentType INTEGER(11) + ) +@@ -5148,7 +5148,7 @@ + + DROP FUNCTION IF EXISTS `func_get_changes_to_contract_by_overview`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_changes_to_contract_by_overview`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_changes_to_contract_by_overview`( + contractIDValue INTEGER(11), + printedDatetimeValue DATETIME, + contractInCarrierIDValue INTEGER(11) +@@ -6732,7 +6732,7 @@ + + DROP FUNCTION IF EXISTS `getDateValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getDateValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getDateValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -6790,7 +6790,7 @@ + + DROP FUNCTION IF EXISTS `func_get_contracts_institute_name_by_childID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_contracts_institute_name_by_childID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_contracts_institute_name_by_childID`( + childIDValue INTEGER(11) + ) + RETURNS varchar(255) CHARSET utf8 +@@ -6865,7 +6865,7 @@ + + DROP FUNCTION IF EXISTS `func_get_contracts_institute_name_by_custodyID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_contracts_institute_name_by_custodyID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_contracts_institute_name_by_custodyID`( + custodyIDValue INTEGER(11) + ) + RETURNS varchar(255) CHARSET utf8 +@@ -6944,7 +6944,7 @@ + + DROP FUNCTION IF EXISTS `func_get_contract_has_place_ID_at_time`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_contract_has_place_ID_at_time`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_contract_has_place_ID_at_time`( + contractIDValue INTEGER(11), + lookTo DATE + ) +@@ -6983,7 +6983,7 @@ + + DROP FUNCTION IF EXISTS `func_get_contract_instituteID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_contract_instituteID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_contract_instituteID`( + contractValue INTEGER(11) + ) + RETURNS int(11) +@@ -7012,7 +7012,7 @@ + + DROP FUNCTION IF EXISTS `func_get_contract_instituteIDs_from_sibling`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_contract_instituteIDs_from_sibling`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_contract_instituteIDs_from_sibling`( + childIDValue INTEGER(11) + ) + RETURNS varchar(255) CHARSET utf8 +@@ -7063,7 +7063,7 @@ + + DROP FUNCTION IF EXISTS `func_get_count_active_places_in_group`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_count_active_places_in_group`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_count_active_places_in_group`( + groupIDValue INTEGER(11) + ) + RETURNS smallint(4) +@@ -7081,7 +7081,7 @@ + + DROP FUNCTION IF EXISTS `func_get_count_allocations_by_place`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_count_allocations_by_place`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_count_allocations_by_place`( + placeIDValue INTEGER(11) + ) + RETURNS tinyint(4) +@@ -7105,7 +7105,7 @@ + + DROP FUNCTION IF EXISTS `func_get_created_places_in_group`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_created_places_in_group`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_created_places_in_group`( + groupIDValue INTEGER(11) + ) + RETURNS int(11) +@@ -7123,7 +7123,7 @@ + + DROP FUNCTION IF EXISTS `func_get_crypt_id`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_crypt_id`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_crypt_id`( + colName VaRCHAR(255) + ) + RETURNS varchar(255) CHARSET utf8 +@@ -7142,7 +7142,7 @@ + + DROP FUNCTION IF EXISTS `func_get_custodies_by_child`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_custodies_by_child`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_custodies_by_child`( + childIDValue INTEGER(11) + ) + RETURNS text CHARSET utf8 +@@ -7190,7 +7190,7 @@ + + DROP FUNCTION IF EXISTS `func_get_prereservations_institute_name_by_childID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_prereservations_institute_name_by_childID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_prereservations_institute_name_by_childID`( + childIDValue INTEGER(11), + isReserved TINYINT(1) + ) +@@ -7309,7 +7309,7 @@ + + DROP FUNCTION IF EXISTS `func_get_prereservations_institute_name_by_custodyID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_prereservations_institute_name_by_custodyID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_prereservations_institute_name_by_custodyID`( + custodyIDValue INTEGER(11), + isReserved TINYINT(1) + ) +@@ -7428,7 +7428,7 @@ + + DROP FUNCTION IF EXISTS `func_get_prereservation_status_color`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_prereservation_status_color`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_prereservation_status_color`( + preStatus VARCHAR(255), + rejectionReason VARCHAR(255), + reservationRemoveReason VARCHAR(255), +@@ -7508,7 +7508,7 @@ + + DROP FUNCTION IF EXISTS `func_get_siblings_by_child`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_siblings_by_child`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_siblings_by_child`( + siblingIDValue INTEGER(11) + ) + RETURNS text CHARSET utf8 +@@ -7579,7 +7579,7 @@ + + DROP FUNCTION IF EXISTS `func_get_user_carrierID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_user_carrierID`() ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_user_carrierID`() + RETURNS int(11) + DETERMINISTIC + CONTAINS SQL +@@ -7596,7 +7596,7 @@ + + DROP FUNCTION IF EXISTS `func_get_user_instituteID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_user_instituteID`() ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_user_instituteID`() + RETURNS int(11) + DETERMINISTIC + CONTAINS SQL +@@ -7613,7 +7613,7 @@ + + DROP FUNCTION IF EXISTS `func_has_child_contract`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_has_child_contract`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_has_child_contract`( + childValue INTEGER(11), + instituteTypeIDValue INTEGER(11), + carrierIDValue INTEGER(11) +@@ -7719,7 +7719,7 @@ + + DROP FUNCTION IF EXISTS `func_is_address_in_institute_own_township`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_is_address_in_institute_own_township`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_is_address_in_institute_own_township`( + instituteIDValue INTEGER(11), + zipValue VARCHAR(255), + cityValue VARCHAR(255), +@@ -7759,7 +7759,7 @@ + + DROP FUNCTION IF EXISTS `getBlobDatetimeValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBlobDatetimeValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBlobDatetimeValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -7817,7 +7817,7 @@ + + DROP FUNCTION IF EXISTS `getBlobDateValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBlobDateValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBlobDateValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -7876,7 +7876,7 @@ + + DROP FUNCTION IF EXISTS `getBlobIntValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBlobIntValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBlobIntValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -7935,7 +7935,7 @@ + + DROP FUNCTION IF EXISTS `getBlobTextValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBlobTextValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBlobTextValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -7993,7 +7993,7 @@ + + DROP FUNCTION IF EXISTS `getBooleanValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getBooleanValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getBooleanValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -8051,7 +8051,7 @@ + + DROP FUNCTION IF EXISTS `getContractEndDate`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getContractEndDate`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getContractEndDate`( + contractIDValue INTEGER(11), + lookTo DATETIME + ) +@@ -8101,7 +8101,7 @@ + + DROP FUNCTION IF EXISTS `getContractPartner`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getContractPartner`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getContractPartner`( + contractIDValue BIGINT, + numberValue INTEGER(11), + validTo DATE, +@@ -8140,7 +8140,7 @@ + + DROP FUNCTION IF EXISTS `getContractStartDate`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getContractStartDate`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getContractStartDate`( + contractIDValue INTEGER(11), + lookTo DATETIME + ) +@@ -8194,7 +8194,7 @@ + + DROP FUNCTION IF EXISTS `getDatetimeValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getDatetimeValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getDatetimeValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -8252,7 +8252,7 @@ + + DROP FUNCTION IF EXISTS `getDecValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getDecValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getDecValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -8310,7 +8310,7 @@ + + DROP FUNCTION IF EXISTS `getFulltimeEquivalentValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getFulltimeEquivalentValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getFulltimeEquivalentValue`( + careTimeIDValue INTEGER(11), + calculativeInstituteTypeIDValue INTEGER(11), + checkInstituteTypeEqual TINYINT(1), +@@ -8383,7 +8383,7 @@ + + DROP FUNCTION IF EXISTS `isOverCare`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `isOverCare`( ++CREATE DEFINER=CURRENT_USER FUNCTION `isOverCare`( + hoursAfternoonValue DECIMAL(3,1), + hoursPerDayValue DECIMAL(3,1), + hoursMorningValue DECIMAL(3,1) +@@ -8428,7 +8428,7 @@ + + DROP FUNCTION IF EXISTS `getFulltimeEquivalentValueSum`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getFulltimeEquivalentValueSum`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getFulltimeEquivalentValueSum`( + sumChildsValue FLOAT, + isIntegratedValue TINYINT(1), + fevBasicValue DECIMAL(5,4), +@@ -8474,7 +8474,7 @@ + + DROP FUNCTION IF EXISTS `getIntValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getIntValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getIntValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME, +@@ -8533,7 +8533,7 @@ + + DROP FUNCTION IF EXISTS `getLastContractPrintedDatetime`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getLastContractPrintedDatetime`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getLastContractPrintedDatetime`( + contractIDValue INTEGER(11), + lookTo DATETIME + ) +@@ -8567,7 +8567,7 @@ + + DROP FUNCTION IF EXISTS `getNextGroupName`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getNextGroupName`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getNextGroupName`( + contractIDValue INTEGER(11), + dayValue DATE + ) +@@ -8600,7 +8600,7 @@ + + DROP FUNCTION IF EXISTS `getOrderPositionToInstituteTypeID`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getOrderPositionToInstituteTypeID`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getOrderPositionToInstituteTypeID`( + instTypeIDValue INTEGER(11) + ) + RETURNS int(11) +@@ -8619,7 +8619,7 @@ + + DROP FUNCTION IF EXISTS `getStringValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getStringValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getStringValue`( + my_id BIGINT(20), + validTo DATE, + lookTo DATETIME +@@ -8677,7 +8677,7 @@ + + DROP FUNCTION IF EXISTS `getValidFrom`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `getValidFrom`( ++CREATE DEFINER=CURRENT_USER FUNCTION `getValidFrom`( + contractIDValue INTEGER(11) + ) + RETURNS date +@@ -8704,7 +8704,7 @@ + + DROP FUNCTION IF EXISTS `hasContractUnconfirmedChanges`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `hasContractUnconfirmedChanges`( ++CREATE DEFINER=CURRENT_USER FUNCTION `hasContractUnconfirmedChanges`( + contractIDValue INTEGER(11) + ) + RETURNS tinyint(1) +@@ -8732,7 +8732,7 @@ + + DROP FUNCTION IF EXISTS `months_between`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `months_between`( ++CREATE DEFINER=CURRENT_USER FUNCTION `months_between`( + olderDate DATE, + newerDate DATE + ) +@@ -8781,7 +8781,7 @@ + + DROP FUNCTION IF EXISTS `setBlobDatetimeValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBlobDatetimeValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBlobDatetimeValue`( + valueid INTEGER(11), + setValue DATETIME, + validDate DATE, +@@ -8839,7 +8839,7 @@ + + DROP FUNCTION IF EXISTS `setBlobDateValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBlobDateValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBlobDateValue`( + valueid INTEGER(11), + setValue DATE, + validDate DATE, +@@ -8896,7 +8896,7 @@ + + DROP FUNCTION IF EXISTS `setBlobIntValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBlobIntValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBlobIntValue`( + valueid INTEGER(11), + setValue INTEGER(11), + validDate DATE, +@@ -8954,7 +8954,7 @@ + + DROP FUNCTION IF EXISTS `setBlobStringValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBlobStringValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBlobStringValue`( + valueid INTEGER(11), + setValue VARCHAR(255), + validDate DATE, +@@ -9012,7 +9012,7 @@ + + DROP FUNCTION IF EXISTS `setBlobTextValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setBlobTextValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setBlobTextValue`( + valueid INTEGER(11), + setValue TEXT, + validDate DATE, +@@ -9070,7 +9070,7 @@ + + DROP FUNCTION IF EXISTS `setDatetimeValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setDatetimeValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setDatetimeValue`( + valueid INTEGER(11), + setValue DATETIME, + validDate DATE, +@@ -9127,7 +9127,7 @@ + + DROP FUNCTION IF EXISTS `setDateValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setDateValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setDateValue`( + valueid INTEGER(11), + setValue DATE, + validDate DATE, +@@ -9185,7 +9185,7 @@ + + DROP FUNCTION IF EXISTS `setDecValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setDecValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setDecValue`( + valueid BIGINT(20), + setValue DECIMAL(15,5), + validDate DATE, +@@ -9245,7 +9245,7 @@ + + DROP FUNCTION IF EXISTS `setIntValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setIntValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setIntValue`( + valueid INTEGER(11), + setValue INTEGER(11), + validDate DATE, +@@ -9303,7 +9303,7 @@ + + DROP FUNCTION IF EXISTS `setStringValue`$$ + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `setStringValue`( ++CREATE DEFINER=CURRENT_USER FUNCTION `setStringValue`( + valueid INTEGER(11), + setValue VARCHAR(255), + validDate DATE, +@@ -9361,7 +9361,7 @@ + + DROP PROCEDURE IF EXISTS `proc_change_contract_end_date`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_change_contract_end_date`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_change_contract_end_date`( + IN cryptContractIDValue VARCHAR(255), + IN endDateValue DATE + ) +@@ -9415,7 +9415,7 @@ + + DROP PROCEDURE IF EXISTS `proc_child_double_occupancy`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_child_double_occupancy`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_child_double_occupancy`( + IN year INTEGER(11) + ) + NOT DETERMINISTIC +@@ -9835,7 +9835,7 @@ + + DROP PROCEDURE IF EXISTS `proc_child_older_max_age`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_child_older_max_age`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_child_older_max_age`( + IN lookDateValue DATE + ) + NOT DETERMINISTIC +@@ -9882,7 +9882,7 @@ + + DROP PROCEDURE IF EXISTS `proc_clear_acl`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_clear_acl`() ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_clear_acl`() + NOT DETERMINISTIC + CONTAINS SQL + SQL SECURITY DEFINER +@@ -9909,7 +9909,7 @@ + + DROP PROCEDURE IF EXISTS `proc_clear_acl_action_deny_by_user`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_clear_acl_action_deny_by_user`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_clear_acl_action_deny_by_user`( + IN userIDValue INTEGER(11) + ) + NOT DETERMINISTIC +@@ -9955,7 +9955,7 @@ + + DROP PROCEDURE IF EXISTS `proc_correct_multicreated_child`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_correct_multicreated_child`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_correct_multicreated_child`( + IN showSelects TINYINT, + IN cryptMasterChild TEXT, + IN cryptSlave1 TEXT, +@@ -10378,7 +10378,7 @@ + + DROP PROCEDURE IF EXISTS `proc_correct_multicreated_custody`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_correct_multicreated_custody`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_correct_multicreated_custody`( + IN showSelects TINYINT(1), + IN cryptMasterCustody TEXT, + IN cryptSlave1 TEXT, +@@ -10731,7 +10731,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_carrier`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_carrier`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_carrier`( + IN carrierCryptIDValue VARCHAR(255) + ) + NOT DETERMINISTIC +@@ -10875,7 +10875,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_contract`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_contract`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_contract`( + IN contractIDValue INTEGER(11), + IN cryptContractIDValue VARCHAR(255) + ) +@@ -10995,7 +10995,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_custody`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_custody`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_custody`( + IN custodyValue INTEGER(11) + ) + NOT DETERMINISTIC +@@ -11173,7 +11173,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_prereservationlist_entry`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_prereservationlist_entry`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_prereservationlist_entry`( + IN prereservationlistEntryIDValue TEXT + ) + NOT DETERMINISTIC +@@ -11247,7 +11247,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_child`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_child`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_child`( + IN childValue INTEGER(11), + IN deleteChild BOOLEAN, + IN deleteContract BOOLEAN, +@@ -11625,7 +11625,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_contractFinanceData`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_contractFinanceData`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_contractFinanceData`( + IN contractIDValue INTEGER(11) + ) + NOT DETERMINISTIC +@@ -11683,7 +11683,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_doctor`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_doctor`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_doctor`( + IN doctorIDValue TEXT + ) + NOT DETERMINISTIC +@@ -11809,7 +11809,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_group`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_group`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_group`( + IN groupCryptIDValue VARCHAR(255) + ) + NOT DETERMINISTIC +@@ -11877,7 +11877,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_institute`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_institute`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_institute`( + IN instituteIDValue TEXT + ) + NOT DETERMINISTIC +@@ -12150,7 +12150,7 @@ + + DROP PROCEDURE IF EXISTS `proc_delete_user_has_role`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_delete_user_has_role`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_delete_user_has_role`( + IN userIDValue INTEGER(11), + IN roleIDValue INTEGER(11) + ) +@@ -12197,7 +12197,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_child_custody_data_changes_iO_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_child_custody_data_changes_iO_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_child_custody_data_changes_iO_anke`( + IN personType ENUM('child','custody'), + IN personID INTEGER(11), + IN startDate DATE, +@@ -13317,7 +13317,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_child_custody_data_changes_iO_end_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_child_custody_data_changes_iO_end_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_child_custody_data_changes_iO_end_anke`( + IN personType ENUM('child','custody'), + IN personID INTEGER(11), + IN startDate DATE, +@@ -14412,7 +14412,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_child_custody_data_changes_vF_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_child_custody_data_changes_vF_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_child_custody_data_changes_vF_anke`( + IN personType ENUM('child','custody'), + IN personID INTEGER(11), + IN startDate DATE, +@@ -15575,7 +15575,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_contract_data_changes_iO_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_contract_data_changes_iO_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_contract_data_changes_iO_anke`( + IN contractIDValue INTEGER(11), + IN startDate DATE, + IN endDate DATE +@@ -16177,7 +16177,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_contract_data_changes_iO_end_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_contract_data_changes_iO_end_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_contract_data_changes_iO_end_anke`( + IN contractIDValue INTEGER, + IN startDate DATE, + IN endDate DATE +@@ -16779,7 +16779,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_contract_data_changes_vF_anke`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_contract_data_changes_vF_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_contract_data_changes_vF_anke`( + IN contractIDValue INTEGER(11), + IN startDate DATE, + IN endDate DATE +@@ -17394,7 +17394,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_all_contract_changes_in_period`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_all_contract_changes_in_period`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_all_contract_changes_in_period`( + IN contractIDValue INTEGER(11), + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), +@@ -19810,7 +19810,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_caretimes_to_all_institute_types`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_caretimes_to_all_institute_types`() ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_caretimes_to_all_institute_types`() + NOT DETERMINISTIC + CONTAINS SQL + SQL SECURITY DEFINER +@@ -19896,7 +19896,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_changes_info_to_contract_by_printedDatetime`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_changes_info_to_contract_by_printedDatetime`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_changes_info_to_contract_by_printedDatetime`( + IN contractIDValue INTEGER(11), + IN printedDatetime DATETIME, + IN printedDatetimeLast DATETIME +@@ -23728,7 +23728,7 @@ + + DROP VIEW IF EXISTS `view_user`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_user` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_user` AS + select + `getBlobStringValue`(`pd`.`firstName`,NULL,NULL) AS `person_data_firstName`, + `getBlobStringValue`(`pd`.`lastName`,NULL,NULL) AS `person_data_lastName`, +@@ -23775,7 +23775,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_history_entries_for_id`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_history_entries_for_id`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_history_entries_for_id`( + IN cryptHistoryIDValue TEXT + ) + NOT DETERMINISTIC +@@ -23980,7 +23980,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_carrier`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_carrier`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_carrier`( + IN carrierIDValue TEXT, + IN nameValue VARCHAR(255), + IN hasAddressValue TINYINT(1), +@@ -24114,7 +24114,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_child`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_child`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_child`( + IN childIDValue TEXT, + IN hashValue TEXT, + IN streetValue VARCHAR(255), +@@ -24386,7 +24386,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_child_tc_data`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_child_tc_data`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_child_tc_data`( + IN childIDValue TEXT, + IN healthInsuranceValue TEXT, + IN healthInsuranceNoValue TEXT, +@@ -24476,7 +24476,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_contract`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_contract`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_contract`( + IN cryptContractIDValue VARCHAR(255), + IN childIDValue INTEGER(11), + IN payerIDValue INTEGER(11), +@@ -24694,7 +24694,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_contract_has_place`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_contract_has_place`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_contract_has_place`( + IN contractIDValue INTEGER(11), + IN cryptPlaceIDValue VARCHAR(255), + IN validFromDateValue DATE, +@@ -24768,7 +24768,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_custody`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_custody`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_custody`( + IN custodyIDValue TEXT, + IN hashValue TEXT, + IN streetValue VARCHAR(255), +@@ -24954,7 +24954,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_custody_work`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_custody_work`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_custody_work`( + IN custodyIDValue TEXT, + IN workNameValue TEXT, + IN workTypeValue TEXT, +@@ -25141,7 +25141,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_doctor`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_doctor`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_doctor`( + IN doctorIDValue TEXT, + IN childIDValue INTEGER(11), + IN nameValue TEXT, +@@ -25320,7 +25320,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_emergency_person`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_emergency_person`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_emergency_person`( + IN emergencyPersonIDValue TEXT, + IN firstNameValue VARCHAR(255), + IN lastNameValue VARCHAR(255), +@@ -25469,7 +25469,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_fev`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_fev`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_fev`( + IN instituteTypeIDValue INTEGER(11), + IN careTimeIDValue INTEGER(11), + IN basicValue DECIMAL(5,4), +@@ -25513,7 +25513,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_group`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_group`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_group`( + IN groupIDValue TEXT, + IN instituteIDValue INTEGER(11), + IN groupNameValue VARCHAR(255), +@@ -25606,7 +25606,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_institute`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_institute`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_institute`( + IN instituteIDValue TEXT, + IN carrierIDValue INTEGER(11), + IN inCarrierFromDateValue DATE, +@@ -25781,7 +25781,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_institute_has_institute_type`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_institute_has_institute_type`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_institute_has_institute_type`( + IN instituteIDValue INTEGER(11), + IN instituteTypeIDValue INTEGER(11), + IN validFromDateValue DATE, +@@ -25884,7 +25884,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_payer`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_payer`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_payer`( + IN payerIDValue INTEGER(11), + IN payerNameValue VARCHAR(255), + IN payerNoValue INTEGER(11), +@@ -26017,7 +26017,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_prereservationlist_entry`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_prereservationlist_entry`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_prereservationlist_entry`( + IN prereservationlistEntryIDValue TEXT, + IN childIDValue INTEGER(11), + IN setByPortaluserIDValue INTEGER(11), +@@ -26158,7 +26158,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_sibling`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_sibling`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_sibling`( + IN cryptSiblingChildIDValue TEXT, + IN hashValue TEXT, + IN hashValuesCorrectValue TINYINT(1), +@@ -26299,7 +26299,7 @@ + + DROP PROCEDURE IF EXISTS `proc_insert_user`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_insert_user`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_insert_user`( + IN userIDValue TEXT, + IN loginNameValue VARCHAR(255), + IN passwdValue VARCHAR(255), +@@ -26460,7 +26460,7 @@ + + DROP PROCEDURE IF EXISTS `proc_multicreated_person`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_multicreated_person`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_multicreated_person`( + IN typeValue ENUM('child','custody'), + IN limitBlocksValue INTEGER(11), + IN limitPerPageValue INTEGER(11) +@@ -26755,7 +26755,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_change_age`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_change_age`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_change_age`( + IN dayValue DATE, + IN minAge INTEGER(11), + IN maxAge INTEGER(11) +@@ -26843,7 +26843,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_child_per_age_calc_type_own_ca`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_child_per_age_calc_type_own_ca`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_child_per_age_calc_type_own_ca`( + IN dayValue DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11) +@@ -28240,7 +28240,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_child_per_care_time`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_child_per_care_time`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_child_per_care_time`( + IN monthStart DATE, + IN monthEnd DATE + ) +@@ -28503,7 +28503,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_child_per_care_time2`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_child_per_care_time2`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_child_per_care_time2`( + IN monthStart DATE, + IN monthEnd DATE + ) +@@ -28738,7 +28738,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_classlevel`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_classlevel`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_classlevel`( + IN dayValue DATE + ) + NOT DETERMINISTIC +@@ -28842,7 +28842,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_contracts_ending`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_contracts_ending`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_contracts_ending`( + IN dayValue DATE, + IN intervall INTEGER(11) + ) +@@ -28905,7 +28905,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_contracts_per_month`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_contracts_per_month`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_contracts_per_month`( + IN monthStart DATE, + IN monthEnd DATE, + IN status ENUM('new','closed') +@@ -29150,7 +29150,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_ending_finance_data`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_ending_finance_data`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_ending_finance_data`( + IN endingType ENUM('expired','ending'), + IN dayValue DATE, + IN intervall INTEGER(11) +@@ -29321,7 +29321,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_institute_has_child_per_age_and_township`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_institute_has_child_per_age_and_township`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_institute_has_child_per_age_and_township`( + IN dayValue DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), +@@ -30079,7 +30079,7 @@ + + DROP PROCEDURE IF EXISTS `proc_statistic_siblings_outside`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_siblings_outside`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_siblings_outside`( + IN dayValue DATE + ) + NOT DETERMINISTIC +@@ -30266,7 +30266,7 @@ + + DROP PROCEDURE IF EXISTS `proc_update_user_profile`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_update_user_profile`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_update_user_profile`( + IN personalIDValue TEXT, + IN firstNameValue VARCHAR(255), + IN lastNameValue VARCHAR(255), +@@ -30330,7 +30330,7 @@ + + DROP PROCEDURE IF EXISTS `statistic_tp`$$ + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `statistic_tp`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `statistic_tp`( + IN instValue INTEGER(11), + IN typeValue INTEGER(11), + IN dayValue DATE +@@ -31327,7 +31327,7 @@ + + DROP VIEW IF EXISTS `check_contract_and_place_end_dates`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `check_contract_and_place_end_dates` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `check_contract_and_place_end_dates` AS + select + `contract`.`contractID` AS `contract_contractID`, + `getBeginAndEndDate`(`contract`.`startDate`,now()) AS `contract_startDate`, +@@ -31355,7 +31355,7 @@ + + DROP VIEW IF EXISTS `view_acl_rule`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_acl_rule` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_acl_rule` AS + select + `role`.`roleID` AS `role_roleID`, + `role`.`name` AS `role_name`, +@@ -31379,7 +31379,7 @@ + + DROP VIEW IF EXISTS `view_address`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_address` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_address` AS + select + `a`.`addressID` AS `address_addressID`, + `getBlobStringValue`(`a`.`street`,NULL,NULL) AS `address_street`, +@@ -31403,7 +31403,7 @@ + + DROP VIEW IF EXISTS `view_carrier`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_carrier` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_carrier` AS + select + `carrier`.`carrierID` AS `carrier_carrierID`, + `carrier`.`name` AS `carrier_name`, +@@ -31431,7 +31431,7 @@ + + DROP VIEW IF EXISTS `view_child`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_child` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_child` AS + select + `child`.`childID` AS `child_childID`, + `child`.`zcode` AS `child_zcode`, +@@ -31511,7 +31511,7 @@ + + DROP VIEW IF EXISTS `view_params`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_params` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_params` AS + select + `contract`.`contractID` AS `con_ID`, + `getValidFrom`(`contract`.`contractID`) AS `validFrom`, +@@ -31525,7 +31525,7 @@ + + DROP VIEW IF EXISTS `view_contract`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_contract` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_contract` AS + select + `view_params`.`validFrom` AS `validFrom`, + `view_params`.`lastPrinted` AS `lastPrinted`, +@@ -31598,7 +31598,7 @@ + + DROP VIEW IF EXISTS `view_contract_changes_overview`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_contract_changes_overview` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_contract_changes_overview` AS + select + `contract_printed`.`contractID` AS `contractID`, + `contract_printed`.`printedDatetime` AS `printedDatetime`, +@@ -31616,7 +31616,7 @@ + + DROP VIEW IF EXISTS `view_count_child`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_count_child` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_count_child` AS + select + distinct `contract`.`childID` AS `childID`, + `getBlobIntValue`(`child`.`countChildNumber`,NULL,NULL) AS `childCountNumber`, +@@ -31651,7 +31651,7 @@ + + DROP VIEW IF EXISTS `view_custody`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_custody` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_custody` AS + select + `cus`.`custodyID` AS `custody_custodyID`, + `getBlobStringValue`(`cus`.`hash`,NULL,NULL) AS `custody_hash`, +@@ -31707,7 +31707,7 @@ + + DROP VIEW IF EXISTS `view_emergency_person`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_emergency_person` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_emergency_person` AS + select + `contract`.`childID` AS `child_childID`, + `contract`.`contractID` AS `contract_contractID`, +@@ -31740,7 +31740,7 @@ + + DROP VIEW IF EXISTS `view_group`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_group` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_group` AS + select + `institute_group`.`groupID` AS `institute_group_groupID`, + `institute_group`.`groupName` AS `institute_group_groupName`, +@@ -31773,7 +31773,7 @@ + + DROP VIEW IF EXISTS `view_institute`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_institute` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_institute` AS + select + `institute`.`instituteID` AS `institute_instituteID`, + `institute`.`name` AS `institute_name`, +@@ -31815,7 +31815,7 @@ + + DROP VIEW IF EXISTS `view_personal_key_list`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_personal_key_list` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_personal_key_list` AS + select + `contract`.`contractID` AS `contract_contractID`, + `child`.`childID` AS `child_childID`, +@@ -31866,7 +31866,7 @@ + + DROP VIEW IF EXISTS `view_place`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_place` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_place` AS + select + `place`.`placeID` AS `place_placeID`, + `place`.`placeName` AS `place_placeName`, +@@ -31890,7 +31890,7 @@ + + DROP VIEW IF EXISTS `view_place_taken`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_place_taken` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_place_taken` AS + select + `contract`.`contractID` AS `contract_contractID`, + `child`.`childID` AS `child_childID`, +@@ -31976,7 +31976,7 @@ + + DROP VIEW IF EXISTS `view_portal_prereservationlist_entry`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_portal_prereservationlist_entry` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_portal_prereservationlist_entry` AS + select + `portal_prereservationlist_entry`.`portalPrereservationListID` AS `portal_prereservationlist_entry_portalPrereservationListID`, + `getXmlValue`(`portal_prereservationlist_entry`.`prereservationData`) AS `portal_prereservationlist_entry_prereservationData`, +@@ -32007,7 +32007,7 @@ + + DROP VIEW IF EXISTS `view_prereservationlist_entry`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_prereservationlist_entry` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_prereservationlist_entry` AS + select + `prereservationlist_entry`.`prereservationlistEntryID` AS `prereservationlist_entry_prereservationlistEntryID`, + `institutepre`.`instituteID` AS `institute_instituteID`, +@@ -32108,7 +32108,7 @@ + + DROP VIEW IF EXISTS `view_saved_contract`; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_saved_contract` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_saved_contract` AS + select + `saved_contract`.`savedContractID` AS `saved_contract_savedContractID`, + `getXmlValue`(`saved_contract`.`contractData`) AS `saved_contract_contractData`, +--- a/Database/update_install_dev_tc_2011-04-30_023.sql ++++ b/Database/update_install_dev_tc_2011-04-30_023.sql +@@ -25,7 +25,7 @@ + + drop function if exists getFulltimeEquivalentValueSum;; + +-CREATE DEFINER=`root`@`localhost` FUNCTION getFulltimeEquivalentValueSum (sumChildsValue FLOAT, ++CREATE DEFINER=CURRENT_USER FUNCTION getFulltimeEquivalentValueSum (sumChildsValue FLOAT, + isIntegratedValue TINYINT(1), + fevBasicValue DECIMAL(5,4), + fevOverValue DECIMAL(5,4), +--- a/Database/update_trustcenter_history_2010-12-31_017.sql ++++ b/Database/update_trustcenter_history_2010-12-31_017.sql +@@ -6,7 +6,7 @@ + + DROP FUNCTION IF EXISTS func_get_not_printed_contract_to_child;; + +-CREATE DEFINER=`root`@`localhost` FUNCTION func_get_not_printed_contract_to_child (childIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER FUNCTION func_get_not_printed_contract_to_child (childIDValue INTEGER(11), + inCarrierID INTEGER(11), + inInstituteID INTEGER(11)) + RETURNS int(11) +@@ -67,7 +67,7 @@ + + DROP FUNCTION IF EXISTS func_get_not_printed_contract_to_custody;; + +-CREATE DEFINER=`root`@`localhost` FUNCTION func_get_not_printed_contract_to_custody (custodyValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER FUNCTION func_get_not_printed_contract_to_custody (custodyValue INTEGER(11), + inCarrierID INTEGER(11), + inInstituteID INTEGER(11)) + RETURNS int(11) +--- a/Database/update_trustcenter_history_2010-12-31_018.sql ++++ b/Database/update_trustcenter_history_2010-12-31_018.sql +@@ -6,7 +6,7 @@ + + DROP PROCEDURE IF EXISTS proc_view_place_taken;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_view_place_taken`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_view_place_taken`( + IN groupValue TEXT, + IN beginValue DATE, + IN endValue DATE +--- a/Database/update_trustcenter_history_2011-02-28_011.sql ++++ b/Database/update_trustcenter_history_2011-02-28_011.sql +@@ -4,7 +4,7 @@ + + DELIMITER ;; + drop procedure if exists proc_child_double_occupancy;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_child_double_occupancy (IN year INTEGER(11)) ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_child_double_occupancy (IN year INTEGER(11)) + NOT DETERMINISTIC + CONTAINS SQL + SQL SECURITY DEFINER +@@ -415,7 +415,7 @@ + + END double_occupancy;; + drop procedure if exists proc_multicreated_person;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_multicreated_person (IN typeValue ENUM('child','custody'), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_multicreated_person (IN typeValue ENUM('child','custody'), + IN limitBlocksValue INTEGER(11), + IN limitPerPageValue INTEGER(11)) + NOT DETERMINISTIC +@@ -703,7 +703,7 @@ + + END;; + drop procedure if exists statistic_tp;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE statistic_tp (IN instValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE statistic_tp (IN instValue INTEGER(11), + IN typeValue INTEGER(11), + IN dayValue DATE) + NOT DETERMINISTIC +--- a/Database/update_trustcenter_history_2011-02-28_012.sql ++++ b/Database/update_trustcenter_history_2011-02-28_012.sql +@@ -4,7 +4,7 @@ + + DELIMITER ;; + drop procedure if exists proc_statistic_child_per_care_time;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_statistic_child_per_care_time (IN monthStart DATE, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_statistic_child_per_care_time (IN monthStart DATE, + IN monthEnd DATE) + NOT DETERMINISTIC + CONTAINS SQL +@@ -260,7 +260,7 @@ + + END stat_vza;; + drop procedure if exists proc_statistic_child_per_care_time2;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_statistic_child_per_care_time2 (IN monthStart DATE, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_statistic_child_per_care_time2 (IN monthStart DATE, + IN monthEnd DATE) + NOT DETERMINISTIC + CONTAINS SQL +--- a/Database/update_trustcenter_history_2011-02-28_013.sql ++++ b/Database/update_trustcenter_history_2011-02-28_013.sql +@@ -10,7 +10,7 @@ + + drop function if exists getFulltimeEquivalentValue;; + +-CREATE DEFINER=`root`@`localhost` FUNCTION getFulltimeEquivalentValue (careTimeIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER FUNCTION getFulltimeEquivalentValue (careTimeIDValue INTEGER(11), + fevType ENUM('basic','over','integrated','additional'), + validTo DATE, + lookTo DATETIME) +@@ -48,14 +48,14 @@ + DELIMITER ; + + drop view if exists view_personal_key_list; +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` VIEW view_personal_key_list ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER VIEW view_personal_key_list + AS + select `contract`.`contractID` AS `contract_contractID`,`child`.`childID` AS `child_childID`,`getBlobStringValue`(`person_data`.`lastName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_lastName`,`getBlobStringValue`(`person_data`.`firstName`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_firstName`,`getDateValue`(`person_data`.`birthday`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `person_data_birthday`,`getBlobIntValue`(`child`.`countChildNumber`,NULL,NULL) AS `child_countChildNumber`,`view_params`.`lastPrinted` AS `contract_lastValidPrintedDatetime`,`institute`.`instituteID` AS `contract_instituteID`,`contract`.`createDatetime` AS `contract_createDatetime`,`contract`.`careTimeID` AS `contract_careTimeIDHistoryID`,`institute`.`instituteID` AS `institute_instituteID`,`institute_group`.`instituteTypeID` AS `contract_instituteTypeID`,`institute_type`.`orderPosition` AS `institute_type_orderPosition`,`institute_type`.`orderPosition2` AS `institute_type_orderPosition2`,`institute_group`.`groupID` AS `contract_groupID`,`contract`.`contractNumber` AS `contract_contractNumber`,`institute_group`.`groupName` AS `institute_group_groupName`,`institute`.`name` AS `institute_name`,`institute`.`instituteKind` AS `institute_instituteKind`,`carrier`.`name` AS `carrier_name`,`institute`.`carrierID` AS `institute_carrierID`,`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) AS `contract_careTimeID`,`care_time`.`description` AS `care_time_description`,`func_get_care_time_description_short`(`care_time`.`description`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1)) AS `care_time_descriptionShort`,`contract`.`status` AS `contract_status`,`contract_has_place`.`placeID` AS `contract_has_place_placeID`,`getContractStartDate`(`contract`.`contractID`,NULL) AS `contract_startDate`,`getContractEndDate`(`contract`.`contractID`,NULL) AS `contract_endDate`,`getBlobStringValue`(`contract`.`pkn`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_pkn`,`getBooleanValue`(`contract`.`isIntegrated`,`view_params`.`validFrom`,`view_params`.`lastPrinted`) AS `contract_isIntegrated`,`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) AS `contract_additionalPaymentType`,`getOrderPositionToInstituteTypeID`(`getIntValue`(`contract`.`additionalPaymentType`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1)) AS `contract_additionalPaymentTypeOrderPosition`,`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'basic',NULL,NULL) AS `fevBasicValue`,`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'over',NULL,NULL) AS `fevOverValue`,`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'integrated',NULL,NULL) AS `fevIntegratedValue`,`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'additional',NULL,NULL) AS `fevAdditionalValue`,`getFulltimeEquivalentValueSum`(1,`getBooleanValue`(`contract`.`isIntegrated`,`view_params`.`validFrom`,`view_params`.`lastPrinted`),`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'basic',NULL,NULL),`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'over',NULL,NULL),`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'integrated',NULL,NULL),`getFulltimeEquivalentValue`(`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1),'additional',NULL,NULL),`care_time`.`hoursAfternoon`,`care_time`.`hoursDay`,`care_time`.`hoursMorning`) AS `fevSum`,`isOverCare`(`care_time`.`hoursAfternoon`,`care_time`.`hoursDay`,`care_time`.`hoursMorning`) AS `isOverCare` from ((((((((((`child` join `contract`) join `view_params`) join `person_data`) join `place`) join `care_time`) join `contract_has_place`) join `institute_group`) join `institute_type`) join `institute`) join `carrier`) where ((`child`.`status` <> 'deleted') and (`child`.`personDataID` = `person_data`.`personDataID`) and (`institute`.`carrierID` = `carrier`.`carrierID`) and (`institute`.`instituteID` = `institute_group`.`instituteID`) and (`institute_group`.`groupID` = `place`.`groupID`) and (`institute_group`.`instituteTypeID` = `institute_type`.`instituteTypeID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`place`.`placeID` = `contract_has_place`.`placeID`) and (`contract_has_place`.`ID` = `func_get_actual_contract_has_place_ID`(`contract`.`contractID`,`view_params`.`validFrom`)) and (`contract`.`contractID` = `contract_has_place`.`contractID`) and (`view_params`.`con_ID` = `contract`.`contractID`) and (`contract`.`childID` = `child`.`childID`) and (`getIntValue`(`contract`.`careTimeID`,`view_params`.`validFrom`,`view_params`.`lastPrinted`,1) = `care_time`.`careTimeID`)); + DELIMITER ;; + + drop procedure if exists proc_insert_fev;; + +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_insert_fev (IN careTimeIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_insert_fev (IN careTimeIDValue INTEGER(11), + IN basicValue DECIMAL(5,4), + IN overValue DECIMAL(5,4), + IN integratedValue DECIMAL(5,4), +@@ -92,7 +92,7 @@ + + drop procedure if exists proc_statistic_child_per_care_time;; + +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_statistic_child_per_care_time (IN monthStart DATE, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_statistic_child_per_care_time (IN monthStart DATE, + IN monthEnd DATE) + NOT DETERMINISTIC + CONTAINS SQL +@@ -335,7 +335,7 @@ + + drop procedure if exists proc_statistic_child_per_care_time2;; + +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_statistic_child_per_care_time2 (IN monthStart DATE, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_statistic_child_per_care_time2 (IN monthStart DATE, + IN monthEnd DATE) + NOT DETERMINISTIC + CONTAINS SQL +--- a/Database/update_trustcenter_history_2011-02-28_015.sql ++++ b/Database/update_trustcenter_history_2011-02-28_015.sql +@@ -6,7 +6,7 @@ + + DROP FUNCTION IF EXISTS `getServiceHoursSumByFev`;; + +-CREATE DEFINER=`root`@`localhost` FUNCTION getServiceHoursSumByFev (dateValue DATE, ++CREATE DEFINER=CURRENT_USER FUNCTION getServiceHoursSumByFev (dateValue DATE, + sumChildsValue FLOAT, + isIntegratedValue TINYINT(1), + fevBasicValue DECIMAL(5,4), +@@ -103,7 +103,7 @@ + END;; + + drop procedure if exists proc_statistic_child_per_care_time;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_statistic_child_per_care_time (IN monthStart DATE, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_statistic_child_per_care_time (IN monthStart DATE, + IN monthEnd DATE) + NOT DETERMINISTIC + CONTAINS SQL +@@ -309,7 +309,7 @@ + + END stat_vza;; + drop procedure if exists proc_statistic_child_per_care_time2;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_statistic_child_per_care_time2 (IN monthStart DATE, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_statistic_child_per_care_time2 (IN monthStart DATE, + IN monthEnd DATE, + IN mandantIDValue INTEGER(11)) + NOT DETERMINISTIC +--- a/Database/update_trustcenter_history_2011-02-28_019.sql ++++ b/Database/update_trustcenter_history_2011-02-28_019.sql +@@ -6,7 +6,7 @@ + + DELIMITER ;; + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_has_child_contract`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_has_child_contract`( + childValue INTEGER(11), + instituteTypeIDValue INTEGER(11), + carrierIDValue INTEGER(11) +--- a/Database/update_trustcenter_history_2011-02-28_021.sql ++++ b/Database/update_trustcenter_history_2011-02-28_021.sql +@@ -4,7 +4,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_contract_data_changes_vF_anke`;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_contract_data_changes_vF_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_contract_data_changes_vF_anke`( + IN contractIDValue INTEGER(11), + IN startDate DATE, + IN endDate DATE +@@ -616,7 +616,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_contract_data_changes_iO_anke`;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_contract_data_changes_iO_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_contract_data_changes_iO_anke`( + IN contractIDValue INTEGER(11), + IN startDate DATE, + IN endDate DATE +@@ -1216,7 +1216,7 @@ + + DROP PROCEDURE IF EXISTS `proc_get_contract_data_changes_iO_end_anke`;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_get_contract_data_changes_iO_end_anke`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_get_contract_data_changes_iO_end_anke`( + IN contractIDValue INTEGER, + IN startDate DATE, + IN endDate DATE +--- a/Database/update_trustcenter_history_2011-02-28_022.sql ++++ b/Database/update_trustcenter_history_2011-02-28_022.sql +@@ -5,13 +5,13 @@ + alter table `contract_printed` add column `changedByCorrectMulticreatedPerson` tinyint unsigned not null default 0 after `editorID`; + + drop view if exists view_contract_changes_overview; +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` VIEW view_contract_changes_overview ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER VIEW view_contract_changes_overview + AS + select `contract_printed`.`contractID` AS `contractID`,`contract_printed`.`printedDatetime` AS `printedDatetime`,`contract_printed`.`valid` AS `valid`,`contract_printed`.`validDate` AS `validDate`,`contract_printed`.`changedByCorrectMulticreatedPerson` AS `changedByCorrectMulticreatedPerson`,`func_get_changes_to_contract_by_overview`(`contract_printed`.`contractID`,`contract_printed`.`printedDatetime`,`institute`.`carrierID`) AS `changeTypes` from ((((`contract_printed` join `contract_has_place`) join `place`) join `institute_group`) join `institute`) where ((`contract_printed`.`contractID` = `contract_has_place`.`contractID`) and (`func_get_actual_contract_has_place_ID`(`contract_printed`.`contractID`,curdate()) = `contract_has_place`.`ID`) and (`contract_has_place`.`placeID` = `place`.`placeID`) and (`place`.`groupID` = `institute_group`.`groupID`) and (`institute_group`.`instituteID` = `institute`.`instituteID`)); + DELIMITER ;; + + drop procedure if exists proc_correct_multicreated_child;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_correct_multicreated_child (IN showSelects TINYINT, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_correct_multicreated_child (IN showSelects TINYINT, + IN cryptMasterChild TEXT, + IN cryptSlave1 TEXT, + IN cryptSlave2 TEXT, +@@ -458,7 +458,7 @@ + END correct_multicreated_child;; + + drop procedure if exists proc_correct_multicreated_custody;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_correct_multicreated_custody (IN showSelects TINYINT(1), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_correct_multicreated_custody (IN showSelects TINYINT(1), + IN cryptMasterCustody TEXT, + IN cryptSlave1 TEXT, + IN cryptSlave2 TEXT, +@@ -832,7 +832,7 @@ + + drop procedure if exists proc_multicreated_person;; + +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_multicreated_person (IN typeValue ENUM('child','custody'), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_multicreated_person (IN typeValue ENUM('child','custody'), + IN limitBlocksValue INTEGER(11), + IN limitPerPageValue INTEGER(11)) + NOT DETERMINISTIC +--- a/Database/update_trustcenter_history_2011-02-28_023.sql ++++ b/Database/update_trustcenter_history_2011-02-28_023.sql +@@ -6,7 +6,7 @@ + + DROP PROCEDURE IF EXISTS proc_correct_multicreated_custody;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_correct_multicreated_custody`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_correct_multicreated_custody`( + IN showSelects TINYINT(1), + IN cryptMasterCustody TEXT, + IN cryptSlave1 TEXT, +@@ -385,7 +385,7 @@ + + DROP PROCEDURE IF EXISTS proc_correct_multicreated_child;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_correct_multicreated_child`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_correct_multicreated_child`( + IN showSelects TINYINT, + IN cryptMasterChild TEXT, + IN cryptSlave1 TEXT, +--- a/Database/update_trustcenter_history_2011-02-28_024.sql ++++ b/Database/update_trustcenter_history_2011-02-28_024.sql +@@ -6,7 +6,7 @@ + + DROP PROCEDURE IF EXISTS proc_statistic_child_per_care_time;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_child_per_care_time`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_child_per_care_time`( + IN monthStart DATE, + IN monthEnd DATE + ) +@@ -217,7 +217,7 @@ + + DROP PROCEDURE IF EXISTS proc_statistic_child_per_care_time2;; + +- CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_child_per_care_time2`( ++ CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_child_per_care_time2`( + IN monthStart DATE, + IN monthEnd DATE, + IN mandantIDValue INTEGER(11) +--- a/Database/update_trustcenter_history_2011-02-28_025.sql ++++ b/Database/update_trustcenter_history_2011-02-28_025.sql +@@ -6,7 +6,7 @@ + drop procedure if exists proc_correct_copy_pkz; + + DELIMITER ;; +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_correct_copy_pkz`() ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_correct_copy_pkz`() + NOT DETERMINISTIC + CONTAINS SQL + SQL SECURITY DEFINER +--- a/Database/update_trustcenter_history_2011-02-28_026.sql ++++ b/Database/update_trustcenter_history_2011-02-28_026.sql +@@ -7,7 +7,7 @@ + + DELIMITER ;; + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_has_child_contract`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_has_child_contract`( + childValue INTEGER(11), + instituteTypeIDValue INTEGER(11), + carrierIDValue INTEGER(11) +--- a/Database/update_trustcenter_history_2011-02-28_028.sql ++++ b/Database/update_trustcenter_history_2011-02-28_028.sql +@@ -4,7 +4,7 @@ + + DELIMITER ;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_child_double_occupancy`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_child_double_occupancy`( + IN year INTEGER + ) + NOT DETERMINISTIC +--- a/Database/update_trustcenter_history_2011-02-28_029.sql ++++ b/Database/update_trustcenter_history_2011-02-28_029.sql +@@ -5,7 +5,7 @@ + + DELIMITER ;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_institute_has_child_per_age_and_township`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_institute_has_child_per_age_and_township`( + IN dayValue DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), +--- a/Database/update_trustcenter_history_2011-02-28_031.sq ++++ b/Database/update_trustcenter_history_2011-02-28_031.sq +@@ -4,7 +4,7 @@ + + DELIMITER ;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_view_place_taken`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_view_place_taken`( + IN groupValue TEXT, + IN beginValue DATE, + IN endValue DATE +--- a/Database/update_trustcenter_history_2011-02-28_031.sql ++++ b/Database/update_trustcenter_history_2011-02-28_031.sql +@@ -4,7 +4,7 @@ + + DELIMITER ;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_view_place_taken`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_view_place_taken`( + IN groupValue TEXT, + IN beginValue DATE, + IN endValue DATE +--- a/Database/update_trustcenter_history_2011-04-30_010.sql ++++ b/Database/update_trustcenter_history_2011-04-30_010.sql +@@ -16,7 +16,7 @@ + + drop procedure if exists proc_insert_institute_has_institute_type;; + +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_insert_institute_has_institute_type (IN instituteIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_insert_institute_has_institute_type (IN instituteIDValue INTEGER(11), + IN instituteTypeIDValue INTEGER(11), + IN validFromDateValue DATE, + IN validUntilDateValue DATE, +@@ -144,7 +144,7 @@ + END insert_institute_has_institute_type;; + + drop procedure if exists statistic_tp;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE statistic_tp (IN instValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE statistic_tp (IN instValue INTEGER(11), + IN typeValue INTEGER(11), + IN dayValue DATE) + NOT DETERMINISTIC +--- a/Database/update_trustcenter_history_2011-04-30_013.sql ++++ b/Database/update_trustcenter_history_2011-04-30_013.sql +@@ -142,7 +142,7 @@ + DELIMITER ;; + DROP FUNCTION IF EXISTS func_get_recipient;; + +-CREATE DEFINER=`root`@`localhost` FUNCTION func_get_recipient (financeDataValue INTEGER(11)) ++CREATE DEFINER=CURRENT_USER FUNCTION func_get_recipient (financeDataValue INTEGER(11)) + RETURNS varchar(255) CHARSET utf8 + DETERMINISTIC + CONTAINS SQL +@@ -163,7 +163,7 @@ + + DROP PROCEDURE IF EXISTS proc_calculation_feeundependent_payables;; + +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_calculation_feeundependent_payables (IN clientIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_calculation_feeundependent_payables (IN clientIDValue INTEGER(11), + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), + IN monthValue INTEGER, +--- a/Database/update_trustcenter_history_2011-04-30_014.sql ++++ b/Database/update_trustcenter_history_2011-04-30_014.sql +@@ -7,7 +7,7 @@ + alter table `role_has_action` add column `isTcAllow` tinyint unsigned not null default 1 after `isAllow`; + DELIMITER ;; + drop procedure if exists proc_calculation_feeundependent_payables;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_calculation_feeundependent_payables (IN clientIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_calculation_feeundependent_payables (IN clientIDValue INTEGER(11), + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), + IN monthValue INTEGER, +@@ -447,7 +447,7 @@ + + END calc_fup;; + drop procedure if exists proc_get_all_contract_changes_in_period;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_get_all_contract_changes_in_period (IN contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_get_all_contract_changes_in_period (IN contractIDValue INTEGER(11), + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), + IN insertOnStartDate DATE, +@@ -2735,7 +2735,7 @@ + END all_changes;; + + drop procedure if exists proc_get_contract_data_changes_iO_anke;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_get_contract_data_changes_iO_anke (IN contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_get_contract_data_changes_iO_anke (IN contractIDValue INTEGER(11), + IN startDate DATE, + IN endDate DATE) + NOT DETERMINISTIC +@@ -3330,7 +3330,7 @@ + END;; + + drop procedure if exists proc_get_contract_data_changes_iO_end_anke;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_get_contract_data_changes_iO_end_anke (IN contractIDValue INTEGER, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_get_contract_data_changes_iO_end_anke (IN contractIDValue INTEGER, + IN startDate DATE, + IN endDate DATE) + NOT DETERMINISTIC +@@ -3925,7 +3925,7 @@ + END;; + + drop procedure if exists proc_get_contract_data_changes_vF_anke;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_get_contract_data_changes_vF_anke (IN contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_get_contract_data_changes_vF_anke (IN contractIDValue INTEGER(11), + IN startDate DATE, + IN endDate DATE) + NOT DETERMINISTIC +@@ -4533,7 +4533,7 @@ + END;; + + drop procedure if exists proc_insert_fev;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_insert_fev (IN careTimeIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_insert_fev (IN careTimeIDValue INTEGER(11), + IN basicValue DECIMAL(15,5), + IN overValue DECIMAL(15,5), + IN integratedValue DECIMAL(15,5), +@@ -4569,7 +4569,7 @@ + END;; + + drop procedure if exists proc_statistic_contracts_per_month;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_statistic_contracts_per_month (IN monthStart DATE, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_statistic_contracts_per_month (IN monthStart DATE, + IN monthEnd DATE, + IN status ENUM('new','start','closed'), + IN carrierIDValue INTEGER(11), +@@ -4697,7 +4697,7 @@ + + END procNewEnd;; + +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_statistic_contracts_per_month_old (IN monthStart DATE, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_statistic_contracts_per_month_old (IN monthStart DATE, + IN monthEnd DATE, + IN status ENUM('new','start','closed')) + NOT DETERMINISTIC +--- a/Database/update_trustcenter_history_2011-04-30_015.sql ++++ b/Database/update_trustcenter_history_2011-04-30_015.sql +@@ -3,7 +3,7 @@ + set foreign_key_checks=0; + + drop view if exists view_acl_rule; +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` VIEW view_acl_rule ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER VIEW view_acl_rule + AS + select `role`.`roleID` AS `role_roleID`,`role`.`name` AS `role_name`,`role`.`isAbstract` AS `role_isAbstract`,`role`.`level` AS `role_level`,`role_has_action`.`isAllow` AS `role_has_action_isAllow`,`role_has_action`.`isTcAllow` AS `role_has_action_isTcAllow`,`action`.`actionID` AS `action_actionID`,`action`.`name` AS `action_name`,`controller`.`controllerID` AS `controller_controllerID`,`controller`.`name` AS `controller_name`,`module`.`moduleID` AS `module_moduleID`,`module`.`name` AS `module_name` from ((((`role` join `role_has_action`) join `action`) join `controller`) join `module`) where ((`role`.`roleID` = `role_has_action`.`roleID`) and (`role_has_action`.`actionID` = `action`.`actionID`) and (`action`.`controllerID` = `controller`.`controllerID`) and (`controller`.`moduleID` = `module`.`moduleID`)); + +--- a/Database/update_trustcenter_history_2011-04-30_019.sql ++++ b/Database/update_trustcenter_history_2011-04-30_019.sql +@@ -6,7 +6,7 @@ + + drop view if exists view_contract_changes_overview; + +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` VIEW view_contract_changes_overview ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER VIEW view_contract_changes_overview + AS + select `contract_printed`.`contractID` AS `contractID`,`contract_printed`.`printedDatetime` AS `printedDatetime`,`contract_printed`.`valid` AS `valid`,`contract_printed`.`validDate` AS `validDate`,`contract_printed`.`changedByCorrectMulticreatedPerson` AS `changedByCorrectMulticreatedPerson`,`func_get_changes_to_contract_by_overview`(`contract_printed`.`contractID`,`contract_printed`.`printedDatetime`,`institute`.`carrierID`) AS `changeTypes` from ((((`contract_printed` join `contract_has_place`) join `place`) join `institute_group`) join `institute`) where ((`contract_printed`.`contractID` = `contract_has_place`.`contractID`) and (`func_get_actual_contract_has_place_ID`(`contract_printed`.`contractID`,curdate()) = `contract_has_place`.`ID`) and (`contract_has_place`.`placeID` = `place`.`placeID`) and (`place`.`groupID` = `institute_group`.`groupID`) and (`institute_group`.`instituteID` = `institute`.`instituteID`)); + +@@ -14,7 +14,7 @@ + + DELIMITER ;; + drop procedure if exists proc_calculation_feeundependent_payables;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_calculation_feeundependent_payables (IN clientIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_calculation_feeundependent_payables (IN clientIDValue INTEGER(11), + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), + IN monthValue INTEGER, +@@ -456,7 +456,7 @@ + + drop procedure if exists proc_correct_multicreated_child;; + +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_correct_multicreated_child (IN showSelects TINYINT, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_correct_multicreated_child (IN showSelects TINYINT, + IN cryptMasterChild TEXT, + IN cryptSlave1 TEXT, + IN cryptSlave2 TEXT, +@@ -904,7 +904,7 @@ + + drop procedure if exists proc_correct_multicreated_custody;; + +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_correct_multicreated_custody (IN showSelects TINYINT(1), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_correct_multicreated_custody (IN showSelects TINYINT(1), + IN cryptMasterCustody TEXT, + IN cryptSlave1 TEXT, + IN cryptSlave2 TEXT, +@@ -1278,7 +1278,7 @@ + + drop procedure if exists proc_multicreated_person;; + +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_multicreated_person (IN typeValue ENUM('child','custody'), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_multicreated_person (IN typeValue ENUM('child','custody'), + IN limitBlocksValue INTEGER(11), + IN limitPerPageValue INTEGER(11)) + NOT DETERMINISTIC +@@ -1568,7 +1568,7 @@ + + END;; + +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_print_new_ending_contracts (IN monthStart DATE, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_print_new_ending_contracts (IN monthStart DATE, + IN monthEnd DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11)) +--- a/Database/update_trustcenter_history_2011-04-30_020.sql ++++ b/Database/update_trustcenter_history_2011-04-30_020.sql +@@ -6,7 +6,7 @@ + + DROP PROCEDURE IF EXISTS proc_correct_multicreated_custody;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_correct_multicreated_custody`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_correct_multicreated_custody`( + IN showSelects TINYINT(1), + IN cryptMasterCustody TEXT, + IN cryptSlave1 TEXT, +@@ -385,7 +385,7 @@ + + DROP PROCEDURE IF EXISTS proc_correct_multicreated_child;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_correct_multicreated_child`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_correct_multicreated_child`( + IN showSelects TINYINT, + IN cryptMasterChild TEXT, + IN cryptSlave1 TEXT, +--- a/Database/update_trustcenter_history_2011-04-30_021.sql ++++ b/Database/update_trustcenter_history_2011-04-30_021.sql +@@ -6,7 +6,7 @@ + + DROP PROCEDURE IF EXISTS proc_statistic_child_per_care_time;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_child_per_care_time`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_child_per_care_time`( + IN monthStart DATE, + IN monthEnd DATE + ) +@@ -217,7 +217,7 @@ + + DROP PROCEDURE IF EXISTS proc_statistic_child_per_care_time2;; + +- CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_statistic_child_per_care_time2`( ++ CREATE DEFINER=CURRENT_USER PROCEDURE `proc_statistic_child_per_care_time2`( + IN monthStart DATE, + IN monthEnd DATE, + IN mandantIDValue INTEGER(11) +--- a/Database/update_trustcenter_history_2011-04-30_022.sql ++++ b/Database/update_trustcenter_history_2011-04-30_022.sql +@@ -4,7 +4,7 @@ + DROP PROCEDURE IF EXISTS proc_calculation_feeundependent_payables; + DELIMITER ;; + +-CREATE DEFINER = 'root'@'localhost' PROCEDURE `proc_calculation_feeundependent_payables`( ++CREATE DEFINER=CURRENT_USER PROCEDURE `proc_calculation_feeundependent_payables`( + IN clientIDValue INTEGER(11), + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), +--- a/Database/update_trustcenter_history_2011-04-30_025.sql ++++ b/Database/update_trustcenter_history_2011-04-30_025.sql +@@ -20,7 +20,7 @@ + alter table `payer` add constraint `payer_fk18` foreign key(`contributorPkz`) references `history_blob_string`(`ID`); + DELIMITER ;; + drop procedure if exists proc_delete_contract;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_delete_contract (IN contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_delete_contract (IN contractIDValue INTEGER(11), + IN cryptContractIDValue VARCHAR(255)) + NOT DETERMINISTIC + CONTAINS SQL +@@ -139,7 +139,7 @@ + + END delete_contract;; + drop procedure if exists proc_get_changes_info_to_contract_by_printedDatetime;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_get_changes_info_to_contract_by_printedDatetime (IN contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_get_changes_info_to_contract_by_printedDatetime (IN contractIDValue INTEGER(11), + IN printedDatetime DATETIME, + IN printedDatetimeLast DATETIME) + NOT DETERMINISTIC +@@ -4134,7 +4134,7 @@ + + END;; + drop procedure if exists proc_get_contract_data_changes_iO_anke;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_get_contract_data_changes_iO_anke (IN contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_get_contract_data_changes_iO_anke (IN contractIDValue INTEGER(11), + IN startDate DATE, + IN endDate DATE) + NOT DETERMINISTIC +@@ -4633,7 +4633,7 @@ + + END;; + drop procedure if exists proc_get_contract_data_changes_iO_end_anke;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_get_contract_data_changes_iO_end_anke (IN contractIDValue INTEGER, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_get_contract_data_changes_iO_end_anke (IN contractIDValue INTEGER, + IN startDate DATE, + IN endDate DATE) + NOT DETERMINISTIC +@@ -5275,7 +5275,7 @@ + + END;; + drop procedure if exists proc_get_contract_data_changes_vF_anke;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_get_contract_data_changes_vF_anke (IN contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_get_contract_data_changes_vF_anke (IN contractIDValue INTEGER(11), + IN startDate DATE, + IN endDate DATE) + NOT DETERMINISTIC +@@ -5929,7 +5929,7 @@ + + END;; + drop procedure if exists proc_insert_payer;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_insert_payer (IN payerIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_insert_payer (IN payerIDValue INTEGER(11), + IN contributorTypeValue VARCHAR(255), + IN contributorCustodyIDValue INTEGER(11), + IN contributorFirstNameValue VARCHAR(255), +@@ -6092,7 +6092,7 @@ + + END insert_payer;; + drop function if exists func_get_changes_to_contract_by_overview;; +-CREATE DEFINER=`root`@`localhost` FUNCTION func_get_changes_to_contract_by_overview (contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER FUNCTION func_get_changes_to_contract_by_overview (contractIDValue INTEGER(11), + printedDatetimeValue DATETIME, + contractInCarrierIDValue INTEGER(11)) + RETURNS text CHARSET utf8 +--- a/Database/update_trustcenter_history_2011-04-30_026.sql ++++ b/Database/update_trustcenter_history_2011-04-30_026.sql +@@ -4,7 +4,7 @@ + + DELIMITER ;; + drop procedure if exists proc_get_all_contract_changes_in_period;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_get_all_contract_changes_in_period (IN contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_get_all_contract_changes_in_period (IN contractIDValue INTEGER(11), + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), + IN insertOnStartDate DATE, +@@ -2279,7 +2279,7 @@ + + END all_changes;; + drop procedure if exists proc_get_contract_data_changes_vF_anke;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_get_contract_data_changes_vF_anke (IN contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_get_contract_data_changes_vF_anke (IN contractIDValue INTEGER(11), + IN startDate DATE, + IN endDate DATE) + NOT DETERMINISTIC +@@ -2929,7 +2929,7 @@ + + END;; + drop procedure if exists proc_print_new_ending_contracts;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_print_new_ending_contracts (IN monthStart DATE, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_print_new_ending_contracts (IN monthStart DATE, + IN monthEnd DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11)) +@@ -3026,7 +3026,7 @@ + + + END procNewEnd;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_print_all_changes (IN carrierIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_print_all_changes (IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), + IN validFromStartDateValue DATE, + IN validFromEndDateValue DATE) +@@ -3099,7 +3099,7 @@ + EXECUTE stmt; + DEALLOCATE PREPARE stmt; + END;; +-CREATE DEFINER=`root`@`localhost` FUNCTION func_get_print_all_changes (contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER FUNCTION func_get_print_all_changes (contractIDValue INTEGER(11), + childIDValue INTEGER(11), + custody1IDValue INTEGER(11), + validFromStartDateValue DATE, +--- a/Database/update_trustcenter_history_2011-04-30_028.sql ++++ b/Database/update_trustcenter_history_2011-04-30_028.sql +@@ -8,7 +8,7 @@ + + DELIMITER ;; + drop procedure if exists proc_delete_contract;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_delete_contract (IN contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_delete_contract (IN contractIDValue INTEGER(11), + IN cryptContractIDValue VARCHAR(255)) + NOT DETERMINISTIC + CONTAINS SQL +@@ -126,7 +126,7 @@ + + END delete_contract;; + drop procedure if exists proc_get_changes_info_to_contract_by_printedDatetime;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_get_changes_info_to_contract_by_printedDatetime (IN contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_get_changes_info_to_contract_by_printedDatetime (IN contractIDValue INTEGER(11), + IN printedDatetime DATETIME, + IN printedDatetimeLast DATETIME) + NOT DETERMINISTIC +@@ -4065,7 +4065,7 @@ + + END;; + drop procedure if exists proc_insert_payer;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_insert_payer (IN payerIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_insert_payer (IN payerIDValue INTEGER(11), + IN contributorTypeValue VARCHAR(255), + IN contributorCustodyIDValue INTEGER(11), + IN contributorFirstNameValue VARCHAR(255), +@@ -4225,7 +4225,7 @@ + + END insert_payer;; + drop procedure if exists proc_statistic_contracts_per_month;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_statistic_contracts_per_month (IN monthStart DATE, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_statistic_contracts_per_month (IN monthStart DATE, + IN monthEnd DATE, + IN status ENUM('new','start','closed'), + IN carrierIDValue INTEGER(11), +@@ -4352,7 +4352,7 @@ + + END procNewEnd;; + drop function if exists func_get_changes_to_contract_by_overview;; +-CREATE DEFINER=`root`@`localhost` FUNCTION func_get_changes_to_contract_by_overview (contractIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER FUNCTION func_get_changes_to_contract_by_overview (contractIDValue INTEGER(11), + printedDatetimeValue DATETIME, + contractInCarrierIDValue INTEGER(11)) + RETURNS text CHARSET utf8 +--- a/Database/update_trustcenter_history_2011-04-30_032.sql ++++ b/Database/update_trustcenter_history_2011-04-30_032.sql +@@ -6,7 +6,7 @@ + + DELIMITER ;; + +-CREATE DEFINER = 'root'@'localhost' FUNCTION `func_get_care_time_description_short`( ++CREATE DEFINER=CURRENT_USER FUNCTION `func_get_care_time_description_short`( + caretimeDescription VARCHAR(255), + additionalPaymentType INTEGER(11) + ) +--- a/Database/update_trustcenter_history_2011-04-30_033.sql ++++ b/Database/update_trustcenter_history_2011-04-30_033.sql +@@ -5,7 +5,7 @@ + + DELIMITER ;; + drop procedure if exists proc_statistic_child_per_care_time;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_statistic_child_per_care_time (IN monthStart DATE, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_statistic_child_per_care_time (IN monthStart DATE, + IN monthEnd DATE) + NOT DETERMINISTIC + CONTAINS SQL +@@ -211,7 +211,7 @@ + + END stat_vza;; + drop procedure if exists proc_statistic_child_per_care_time2;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_statistic_child_per_care_time2 (IN monthStart DATE, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_statistic_child_per_care_time2 (IN monthStart DATE, + IN monthEnd DATE, + IN mandantIDValue INTEGER(11)) + NOT DETERMINISTIC +@@ -431,7 +431,7 @@ + + END stat_vza2;; + drop function if exists getFulltimeEquivalentValue;; +-CREATE DEFINER=`root`@`localhost` FUNCTION getFulltimeEquivalentValue (careTimeIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER FUNCTION getFulltimeEquivalentValue (careTimeIDValue INTEGER(11), + fevType ENUM('basic','over','integrated','additional'), + validTo DATE, + lookTo DATETIME) +@@ -467,7 +467,7 @@ + + END;; + drop function if exists getFulltimeEquivalentValueSum;; +-CREATE DEFINER=`root`@`localhost` FUNCTION getFulltimeEquivalentValueSum (sumChildsValue FLOAT, ++CREATE DEFINER=CURRENT_USER FUNCTION getFulltimeEquivalentValueSum (sumChildsValue FLOAT, + isIntegratedValue TINYINT(1), + fevBasicValue DECIMAL(15,5), + fevOverValue DECIMAL(15,5), +--- a/Database/update_trustcenter_history_2011-04-30_034.sql ++++ b/Database/update_trustcenter_history_2011-04-30_034.sql +@@ -2,7 +2,7 @@ + set foreign_key_checks=0; + + drop view if exists view_contract; +-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_contract` AS ++CREATE ALGORITHM=UNDEFINED DEFINER=CURRENT_USER SQL SECURITY DEFINER VIEW `view_contract` AS + select + `view_params`.`validFrom` AS `validFrom`, + `view_params`.`lastPrinted` AS `lastPrinted`, +--- a/Database/update_trustcenter_history_2011-04-30_036.sql ++++ b/Database/update_trustcenter_history_2011-04-30_036.sql +@@ -8,7 +8,7 @@ + + DELIMITER ;; + drop procedure if exists proc_insert_institute_has_institute_type;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_insert_institute_has_institute_type (IN instituteIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_insert_institute_has_institute_type (IN instituteIDValue INTEGER(11), + IN instituteTypeIDValue INTEGER(11), + IN validFromDateValue DATE, + IN validUntilDateValue DATE, +--- a/Database/update_trustcenter_history_2011-06-30_001.sql ++++ b/Database/update_trustcenter_history_2011-06-30_001.sql +@@ -2,7 +2,7 @@ + + DELIMITER ;; + drop procedure if exists proc_print_all_changes;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_print_all_changes (IN carrierIDValue INTEGER(11), ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_print_all_changes (IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11), + IN validFromStartDateValue DATE, + IN validFromEndDateValue DATE) +@@ -81,7 +81,7 @@ + DEALLOCATE PREPARE stmt; + END;; + drop procedure if exists proc_print_new_ending_contracts;; +-CREATE DEFINER=`root`@`localhost` PROCEDURE proc_print_new_ending_contracts (IN monthStart DATE, ++CREATE DEFINER=CURRENT_USER PROCEDURE proc_print_new_ending_contracts (IN monthStart DATE, + IN monthEnd DATE, + IN carrierIDValue INTEGER(11), + IN instituteIDValue INTEGER(11))