From 03ca3d37ea939ffb394273b268402d5df3fdf0bd Mon Sep 17 00:00:00 2001 From: Marcel Hirschle Date: Fri, 11 Feb 2022 15:19:45 +0100 Subject: [PATCH] MH: Insert und Updates in Model gepackt --- Model/Changes_2022_02_11_ContractHistory.txt | 36 ++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Model/Changes_2022_02_11_ContractHistory.txt diff --git a/Model/Changes_2022_02_11_ContractHistory.txt b/Model/Changes_2022_02_11_ContractHistory.txt new file mode 100644 index 000000000..33377acd5 --- /dev/null +++ b/Model/Changes_2022_02_11_ContractHistory.txt @@ -0,0 +1,36 @@ +CREATE TABLE `contracthistory` ( + `Oid` bigint NOT NULL AUTO_INCREMENT, + `Tid` int NOT NULL, + `ContractHistoryEmployeeOid` bigint DEFAULT NULL, + `ContractHistoryEmploymentTypeOid` bigint DEFAULT NULL, + `Notice` mediumtext, + `ChangeType` tinyint NOT NULL DEFAULT '0', + `ContractHistoryHourlyRate` decimal(18,10) DEFAULT NULL, + `ContractHistoryEntryDate` datetime DEFAULT NULL, + `ContractHistoryContractEndDate` datetime DEFAULT NULL, + `ContractHistoryCancellationPeriod` int DEFAULT NULL, + `ContractHistoryProbationPeriod` int DEFAULT NULL, + `ContractHistoryWeeklyFls` decimal(18,10) DEFAULT NULL, + `ContractHistoryWeeklyTotalhours` decimal(18,10) DEFAULT NULL, + `ContractHistoryLeaveDays` decimal(18,10) DEFAULT NULL, + `InsTs` datetime DEFAULT NULL, + `InsUser` varchar(256) DEFAULT NULL, + `Version` bigint DEFAULT NULL, + `UdpUser` varchar(256) DEFAULT NULL, + `IsActive` tinyint DEFAULT NULL, + `SystemEntryID` int DEFAULT NULL, + `ContractHistoryWeeklyDays` int DEFAULT NULL, + `ContractHistoryMonthlyTotalHours` decimal(18,10) DEFAULT NULL, + `ContractHistoryMonthlyFLS` decimal(18,10) DEFAULT NULL, + `ContractHistoryHourlyRateCostRateValueOid` bigint DEFAULT NULL, + `ContractHistoryProbationPeriod2` decimal(18,10) DEFAULT NULL, + `ContractHistoryContractTypeValueListEntryOid` bigint DEFAULT NULL, + `ContractHistoryQualifikationsBedarfValueListEntryOid` bigint DEFAULT NULL, + PRIMARY KEY (`Oid`)) + ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; + +ALTER TABLE `bewodemo`.`contracthistory` +ADD COLUMN `UpdTs` DATETIME NULL DEFAULT NULL AFTER `ContractHistoryQualifikationsBedarfValueListEntryOid`; + +ALTER TABLE `bewodemo`.`contracthistory` +CHANGE COLUMN `UpdTs` `UpdTs` DATETIME NULL DEFAULT NULL AFTER `UdpUser`;