ALTER TABLE `Contract` ADD COLUMN `UpdTs` datetime NULL DEFAULT NULL; ALTER TABLE `ContractHistory` ADD COLUMN `ContractOid` bigint NULL DEFAULT NULL; ALTER TABLE `AbsenceTime` ADD COLUMN `UpdTs` datetime NULL DEFAULT NULL; CREATE TABLE IF NOT EXISTS `AbsenceTimeHistory` ( `Oid` bigint NOT NULL AUTO_INCREMENT, `Tid` int NOT NULL, `Notice` varchar(1024) DEFAULT NULL, `InsTs` datetime DEFAULT NULL, `InsUser` varchar(256) DEFAULT NULL, `Version` bigint DEFAULT NULL, `UdpUser` varchar(256) DEFAULT NULL, `UpdTs` datetime DEFAULT NULL, `IsActive` tinyint DEFAULT NULL, `SystemEntryID` int DEFAULT NULL, `ChangeType` tinyint NULL DEFAULT NULL, `AbsenceTimeOid` bigint NULL DEFAULT NULL, `AbsenceReasonOid` bigint DEFAULT NULL, `AbsenceTimeStart` datetime DEFAULT NULL, `AbsenceTimeEnd` datetime DEFAULT NULL, `AbsenceTimeKrankheitsMeldung` datetime DEFAULT NULL, `AbsenceTimeNotice` varchar(1024) DEFAULT NULL, `AbsenceTimeEmployeeOid` bigint DEFAULT NULL, `AbsenceTimeCustomerOid` bigint DEFAULT NULL, PRIMARY KEY (`Oid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;