Files
BeWoPlaner/Model/Changes_alle_fuer_neue_db.txt

1080 lines
40 KiB
Plaintext

ALTER TABLE `Customer` ADD COLUMN AusweisAktenzeichen VARCHAR(128) NULL DEFAULT NULL;
ALTER TABLE `temporarytoken` CHANGE COLUMN `RequestedLink` `RequestedLink` MEDIUMTEXT NULL DEFAULT NULL;
ALTER TABLE `notizeneintrag` CHANGE COLUMN `Notice` `Notice` MEDIUMTEXT NULL DEFAULT NULL ;
CREATE TABLE `confirmationreceiptsignature` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`SignatureImage` longtext,
`EmployeeOid` bigint(19) DEFAULT NULL,
PRIMARY KEY (`Oid`),
KEY `CONFIRMATIONRECEIPTSIGNATURE_EMPLOYEE_FK` (`EmployeeOid`),
CONSTRAINT `FK_CONFIRMATIONRECEIPTSIGNATURE2EMPLOYEE` FOREIGN KEY (`EmployeeOid`) REFERENCES `Employee` (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `confirmationreceiptsignature2servicerecord` (
`ConfirmationReceiptSignatureOid` bigint(19) DEFAULT NULL,
`ServiceRecordOid` bigint(19) DEFAULT NULL,
KEY `CONFSIG2SERVREC_CONFSIG_FK` (`ConfirmationReceiptSignatureOid`),
CONSTRAINT `FK_CONFSIG2SERVREC_CONFSIG` FOREIGN KEY (`ConfirmationReceiptSignatureOid`) REFERENCES `confirmationreceiptsignature` (`Oid`),
KEY `CONFSIG2SERVREC_SERVREC_FK` (`ServiceRecordOid`),
CONSTRAINT `FK_CONFSIG2SERVREC_SERVREC` FOREIGN KEY (`ServiceRecordOid`) REFERENCES `servicerecord` (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `quittierungsbelegsstatus` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`CustomerOid` bigint DEFAULT NULL,
`Startdatum` datetime DEFAULT NULL,
`Enddatum` datetime DEFAULT NULL,
`Erstellt` tinyint DEFAULT '0',
`ErstelltVon` varchar(50) DEFAULT NULL,
`ErstelltAm` datetime DEFAULT NULL,
`OrganisationOid` bigint DEFAULT '0',
`EmployeeOid` bigint DEFAULT '0',
`ServiceCategoryOid` bigint DEFAULT '0',
`Unterschrieben` tinyint DEFAULT '0',
`UnterschriebenAm` datetime DEFAULT NULL,
`UnterschriebenVon` varchar(50) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=735 DEFAULT CHARSET=latin1;
CREATE TABLE `diensteintrag` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`EmployeeOid` bigint(19) DEFAULT NULL,
`WohnheimOid` bigint(19) DEFAULT NULL,
`DienstOid` bigint(19) DEFAULT NULL,
`Zeile` int(10) DEFAULT NULL,
`Datum` datetime DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `dienstinfo` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`Dienstname` varchar(1024) DEFAULT NULL,
`Kurz` varchar(128) DEFAULT NULL,
`Farbe` varchar(16) DEFAULT NULL,
`Start` datetime DEFAULT NULL,
`Ende` datetime DEFAULT NULL,
`Pause` int(10) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `servicerecord` ADD COLUMN Betrag DECIMAL(18,10) NULL DEFAULT NULL;
ALTER TABLE newschedulerappointment ADD COLUMN HasServiceRecordEntry TINYINT(1);
ALTER TABLE `customerhistory` CHANGE COLUMN `Medication` `Medication` MEDIUMTEXT NULL DEFAULT NULL ;
ALTER TABLE `customer` CHANGE COLUMN `Medication` `Medication` MEDIUMTEXT NULL DEFAULT NULL ;
ALTER TABLE `Textbaustein` CHANGE COLUMN `Text` `Text` MEDIUMTEXT NULL DEFAULT NULL ;
ALTER TABLE `valuelistentry2object` ADD COLUMN `RatingTypeOid` BIGINT(19) NULL DEFAULT NULL;
ALTER TABLE `valuelistentry2object` ADD COLUMN `Rating` BIGINT(19) NULL DEFAULT NULL;
CREATE TABLE `ratingtype` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`DisplayName` varchar(1024) DEFAULT NULL,
`RatingId` int(10) DEFAULT NULL,
`Position` int(10) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `rating` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` MEDIUMTEXT DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`StartDate` datetime DEFAULT NULL,
`DisplayName` varchar(1024) DEFAULT NULL,
`RatingId` int(10) DEFAULT NULL,
`RTFNotice` MEDIUMTEXT NULL DEFAULT NULL,
`SupportConceptOid` bigint(19) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `goalrating` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(4096) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`RatingOid` bigint(19) DEFAULT NULL,
`ValueListEntryOid` bigint(19) DEFAULT NULL,
`RatingTypeOid` bigint(19) DEFAULT NULL,
PRIMARY KEY(`Oid`),
KEY `GOALRATING_RATING_FK` (`RatingOid`),
CONSTRAINT `FK_GOALRATING_RATING` FOREIGN KEY (`RatingOid`) REFERENCES `rating` (`Oid`) ON DELETE NO ACTION ON UPDATE NO ACTION
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `bargeldkasse`
ADD COLUMN `Anfangsbestand` DECIMAL(18,10) NULL DEFAULT NULL AFTER `Auszahlungsintervall`;
ALTER TABLE `Query` CHANGE COLUMN `SQL` `SQL` VARCHAR(8000) NULL DEFAULT NULL ;
ALTER TABLE `Customer` ADD COLUMN SubstitutionNeed TINYINT(4);
ALTER TABLE `valuelistentry` CHANGE COLUMN `Abbreviation` `Abbreviation` VARCHAR(256) NULL DEFAULT NULL ;
ALTER TABLE `invoicebase` CHANGE COLUMN `RecipientDivision` `RecipientDivision` VARCHAR(256) NULL DEFAULT NULL ;
ALTER TABLE `notizeneintrag`
ADD COLUMN `EintragKategorieOid` BIGINT(19) NULL DEFAULT NULL;
ALTER TABLE `supportconceptapprovalperiod`
ADD COLUMN `BudgetOid` BIGINT(19) NULL DEFAULT NULL;
ALTER TABLE `supportconceptapprovalperiod`
ADD COLUMN `Bewilligungsart` INT(10) NOT NULL DEFAULT 0;
ALTER TABLE newschedulerappointment ADD IsTask tinyint(1) DEFAULT NULL;
ALTER TABLE newschedulerappointment ADD TaskDescription mediumtext DEFAULT NULL;
ALTER TABLE newschedulerappointment ADD CompletedDate datetime DEFAULT NULL;
ALTER TABLE newschedulerappointment ADD CompletedNotice mediumtext DEFAULT NULL;
ALTER TABLE newschedulerappointment ADD DueDate datetime DEFAULT NULL;
ALTER TABLE newschedulerappointment ADD FormerTaskOid bigint(19) DEFAULT NULL;
ALTER TABLE `person`
ADD COLUMN `Migrationshintergrund` VARCHAR(1024) NULL AFTER `AufenthaltsStatusValueListEntryOid`;
CREATE TABLE `reporttemplate` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`DisplayName` varchar(1024) DEFAULT NULL,
`ReportType` int(10) DEFAULT NULL,
`ReferenceClass` varchar(1024) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `homeviewpanel` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(1024) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`isActive` tinyint(4) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`PanelType` int(10) DEFAULT NULL,
`HeaderTitel` varchar(1024) DEFAULT NULL,
`Value` MEDIUMTEXT DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `flexiblereportlayout` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`CreatorOid` bigint(19) NOT NULL,
`LayoutName` varchar(1024) DEFAULT NULL,
`LayoutString` mediumtext DEFAULT NULL,
`VisibleForAllEmployee` tinyint(4) DEFAULT NULL,
PRIMARY KEY (`Oid`),
CONSTRAINT FOREIGN KEY (`CreatorOid`) REFERENCES `applicationuser` (`oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `BuchungsExport` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(1) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`Datum` datetime DEFAULT NULL,
`Name` varchar(1024) DEFAULT NULL,
`FileName` varchar(1024) DEFAULT NULL,
`Parameter` mediumtext DEFAULT NULL,
`Export` mediumtext DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
CREATE TABLE `supportconcept2newschapp` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`SupportConceptOid` bigint(19) DEFAULT NULL,
`NewSchAppOid` bigint(19) DEFAULT NULL,
PRIMARY KEY(`Oid`),
KEY `SUPPORTCONCEPT2NEWSCHAPP_SUPPORTCONCEPT_FK` (`SupportConceptOid`),
CONSTRAINT `FK_SUPPORTCONCEPT2NEWSCHAPP_SUPPORTCONCEPT` FOREIGN KEY (`SupportConceptOid`) REFERENCES `supportconcept` (`Oid`) ON DELETE NO ACTION ON UPDATE NO ACTION
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `person2newschapp` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`PersonOid` bigint(19) DEFAULT NULL,
`NewSchAppOid` bigint(19) DEFAULT NULL,
PRIMARY KEY(`Oid`),
KEY `PERSON2NEWSCHAPP_PERSON_FK` (`PersonOid`),
CONSTRAINT `FK_PERSON2NEWSCHAPP_PERSON` FOREIGN KEY (`PersonOid`) REFERENCES `person` (`Oid`) ON DELETE NO ACTION ON UPDATE NO ACTION
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `organisation2newschapp` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`OrganisationOid` bigint(19) DEFAULT NULL,
`NewSchAppOid` bigint(19) DEFAULT NULL,
PRIMARY KEY(`Oid`),
KEY `ORGANISATION2NEWSCHAPP_ORGANISATION_FK` (`OrganisationOid`),
CONSTRAINT `FK_ORGANISATION2NEWSCHAPP_ORGANISATION` FOREIGN KEY (`OrganisationOid`) REFERENCES `organisation` (`Oid`) ON DELETE NO ACTION ON UPDATE NO ACTION
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `DeletionHistory` (
`Oid` bigint(19) NOT NULL AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(1) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`DeletedEntityName` varchar(256) DEFAULT NULL,
`DeletingEmployeeName` varchar(256) DEFAULT NULL,
`DeletedEntityTableId` int(10) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=3202 DEFAULT CHARSET=latin1;
CREATE TABLE `personhistory` (
`Oid` bigint(19) PRIMARY KEY AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`ChangeType` int(10) DEFAULT NULL,
`Person_Oid` bigint(19) NOT NULL,
`Person_BankAccountOid` bigint(19) DEFAULT NULL,
`Person_AddressOid` bigint(19) DEFAULT NULL,
`Person_InvoiceAddressOid` bigint(19) DEFAULT NULL,
`Person_Tid` int(10) NOT NULL,
`Person_FirstName` varchar(256) DEFAULT NULL,
`Person_LastName` varchar(256) DEFAULT NULL,
`Person_Abbreviation` varchar(256) DEFAULT NULL,
`Person_DateOfBirth` datetime DEFAULT NULL,
`Person_Sex` int(10) DEFAULT NULL,
`Person_FamilyStatus` int(10) DEFAULT NULL,
`Person_Profession` varchar(256) DEFAULT NULL,
`Person_Type` int(10) DEFAULT NULL,
`Person_Notice` mediumtext,
`Person_InsTs` datetime DEFAULT NULL,
`Person_InsUser` varchar(256) DEFAULT NULL,
`Person_Version` bigint(19) DEFAULT NULL,
`Person_UdpUser` varchar(256) DEFAULT NULL,
`Person_IsActive` tinyint(4) DEFAULT NULL,
`Person_SystemEntryID` int(10) DEFAULT NULL,
`Person_Title` varchar(2048) DEFAULT NULL,
`Person_Function` varchar(2048) DEFAULT NULL,
`Person_IsMigrant` tinyint(4) DEFAULT NULL,
`Person_Nationalitaet` varchar(2048) DEFAULT NULL,
`Person_AufenthaltsStatus` varchar(2048) DEFAULT NULL
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `employeehistory` (
`Oid` bigint(19) PRIMARY KEY AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`ChangeType` int(10) DEFAULT NULL,
`Employee_Oid` bigint(19) NOT NULL,
`Employee_PersonOid` bigint(19) NOT NULL,
`Employee_ApplicationUserOid` bigint(19) DEFAULT NULL,
`Employee_Tid` int(10) NOT NULL,
`Employee_PersonnelNumber` varchar(128) DEFAULT NULL,
`Employee_TaxNumber` varchar(128) DEFAULT NULL,
`Employee_HealthInsurance` varchar(128) DEFAULT NULL,
`Employee_InsuranceNumber` varchar(128) DEFAULT NULL,
`Employee_HourlyRate` decimal(18,10) DEFAULT NULL,
`Employee_EntryDate` datetime DEFAULT NULL,
`Employee_CancellationPeriod` int(10) DEFAULT NULL,
`Employee_ProbationPeriod` int(10) DEFAULT NULL,
`Employee_Sequence` int(10) DEFAULT NULL,
`Employee_IsActive` tinyint(4) DEFAULT NULL,
`Employee_Notice` varchar(1024) DEFAULT NULL,
`Employee_InsTs` datetime DEFAULT NULL,
`Employee_InsUser` varchar(256) DEFAULT NULL,
`Employee_Version` bigint(19) DEFAULT NULL,
`Employee_UdpUser` varchar(256) DEFAULT NULL,
`Employee_SystemEntryID` int(10) DEFAULT NULL,
`Employee_weeklyfls` decimal(18,10) DEFAULT NULL,
`Employee_weeklytotalhours` decimal(18,10) DEFAULT NULL,
`Employee_leavedays` decimal(18,10) DEFAULT NULL,
`Employee_IsQualified` tinyint(4) DEFAULT NULL,
`Employee_Text1` varchar(128) DEFAULT NULL,
`Employee_Text2` varchar(128) DEFAULT NULL,
`Employee_Text3` varchar(128) DEFAULT NULL,
`Employee_Text4` varchar(128) DEFAULT NULL,
`Employee_Text5` varchar(128) DEFAULT NULL,
`Employee_Notice2` mediumtext,
`Employee_EmployeeColor` varchar(9) DEFAULT NULL,
`Employee_EmployeeImage` longblob,
`Employee_EmployeeThumbnail` longblob,
`Employee_Pflege` tinyint(4) DEFAULT NULL,
`Employee_Toilettengang` tinyint(4) DEFAULT NULL,
`Employee_Aggressiv` tinyint(4) DEFAULT NULL,
`Employee_Schutzstufe` varchar(1024) DEFAULT NULL,
`Employee_Hygienebelehrung` tinyint(4) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `contacthistory` (
`Oid` bigint(19) PRIMARY KEY AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`ChangeType` int(10) DEFAULT NULL,
`Contact_Oid` bigint(19) NOT NULL,
`Contact_Organisation2PersonOid` bigint(19) DEFAULT NULL,
`Contact_PersonOid` bigint(19) DEFAULT NULL,
`Contact_InvoiceBaseSenderOid` bigint(19) DEFAULT NULL,
`Contact_OrganisationOid` bigint(19) DEFAULT NULL,
`Contact_InvoiceBaseRecipientOid` bigint(19) DEFAULT NULL,
`Contact_Tid` int(10) NOT NULL,
`Contact_Type` int(10) DEFAULT NULL,
`Contact_Value` varchar(1024) DEFAULT NULL,
`Contact_Notice` varchar(1024) DEFAULT NULL,
`Contact_InsTs` datetime DEFAULT NULL,
`Contact_InsUser` varchar(256) DEFAULT NULL,
`Contact_Version` bigint(19) DEFAULT NULL,
`Contact_UdpUser` varchar(256) DEFAULT NULL,
`Contact_IsActive` tinyint(4) DEFAULT NULL,
`Contact_SystemEntryID` int(10) DEFAULT NULL
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `addresshistory` (
`Oid` bigint(19) PRIMARY KEY AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`ChangeType` int(10) DEFAULT NULL,
`Address_Oid` bigint(19) NOT NULL,
`Address_Tid` int(10) NOT NULL,
`Address_Street` varchar(256) DEFAULT NULL,
`Address_PostalCode` varchar(128) DEFAULT NULL,
`Address_Town` varchar(256) DEFAULT NULL,
`Address_State` varchar(256) DEFAULT NULL,
`Address_Country` varchar(256) DEFAULT NULL,
`Address_Notice` varchar(1024) DEFAULT NULL,
`Address_InsTs` datetime DEFAULT NULL,
`Address_InsUser` varchar(256) DEFAULT NULL,
`Address_Version` bigint(19) DEFAULT NULL,
`Address_UdpUser` varchar(256) DEFAULT NULL,
`Address_IsActive` tinyint(4) DEFAULT NULL,
`Address_SystemEntryID` int(10) DEFAULT NULL,
`Address_AddressLine1` varchar(256) DEFAULT NULL,
`Address_AddressLine2` varchar(256) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `budget` (
`Oid` bigint(19) PRIMARY KEY AUTO_INCREMENT,
`Tid` int(10) DEFAULT NULL,
`IsActive` tinyint(4) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint(19) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int(10) DEFAULT NULL,
`Name` varchar(512) DEFAULT NULL,
`Betragshoehe` decimal(18,10) DEFAULT NULL
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `vorlagentabelle` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`ObjectOid` bigint DEFAULT NULL,
`ObjectTid` int DEFAULT NULL,
`Notice` varchar(1024) 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,
`Tabellenname` varchar(1024) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `dokumentvorlage` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`ObjectOid` bigint DEFAULT NULL,
`ObjectTid` int DEFAULT NULL,
`Notice` varchar(1024) 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,
`Tabellenzugehoerigkeit` bigint DEFAULT NULL,
`Name` varchar(1024) DEFAULT NULL,
`Beschreibung` varchar(1024) DEFAULT NULL,
`Data` mediumblob,
`Text` mediumtext,
`RTFText` mediumtext,
`Parent` bigint DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE confirmationreceiptsignature ADD COLUMN `TimeSpanString` varchar(128);
ALTER TABLE confirmationreceiptsignature ADD COLUMN `SignatureType` tinyint(4);
ALTER TABLE confirmationreceiptsignature ADD COLUMN CustomerOid BIGINT(19);
ALTER TABLE confirmationreceiptsignature ADD KEY CONFIRMATIONRECEIPTSIGNATURE_CUSTOMER_FK (CustomerOid);
ALTER TABLE confirmationreceiptsignature ADD CONSTRAINT FK_CONFIRMATIONRECEIPTSIGNATURE2CUSTOMER FOREIGN KEY (CustomerOid) REFERENCES Customer(Oid);
CREATE TABLE `dienstvertretung` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`EmployeeOid` bigint DEFAULT NULL,
`WohnheimOid` bigint DEFAULT NULL,
`DienstOid` bigint DEFAULT NULL,
`Zeile` int DEFAULT NULL,
`Datum` datetime DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `dienstvertretung`
ADD COLUMN `Startzeit` VARCHAR(256) NULL DEFAULT NULL AFTER `Datum`;
ALTER TABLE `dienstvertretung`
ADD COLUMN `Endzeit` VARCHAR(256) NULL DEFAULT NULL AFTER `Startzeit`;
ALTER TABLE `diensteintrag`
ADD COLUMN `Startzeit` VARCHAR(256) NULL DEFAULT NULL AFTER `Datum`;
ALTER TABLE `diensteintrag`
ADD COLUMN `Endzeit` VARCHAR(256) NULL DEFAULT NULL AFTER `Startzeit`;
ALTER TABLE `diensteintrag`
ADD COLUMN `DauerInStunden` DOUBLE NULL DEFAULT NULL AFTER `Endzeit`;
ALTER TABLE `dienstvertretung`
ADD COLUMN `DauerInStunden` DOUBLE NULL DEFAULT NULL AFTER `Endzeit`;
ALTER TABLE `employmenttype` ADD COLUMN `LeaveDays` DECIMAL NULL DEFAULT NULL;
CREATE TABLE `geschenkterUrlaubstag` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`ObjectOid` bigint DEFAULT NULL,
`ObjectTid` int DEFAULT NULL,
`Notice` varchar(1024) 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,
`Employee` bigint DEFAULT NULL,
`Date` datetime DEFAULT NULL,
`AnzahlTage` DECIMAL(18,10) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `regelmaessigerdienst` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`EmployeeOid` bigint DEFAULT NULL,
`WohnheimOid` bigint DEFAULT NULL,
`DienstOid` bigint DEFAULT NULL,
`Zeile` int DEFAULT NULL,
`Wochentag` varchar(256) DEFAULT NULL,
`Startzeit` varchar(256) DEFAULT NULL,
`Endzeit` varchar(256) DEFAULT NULL,
`DauerInStunden` double DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `dienstinfo`
ADD COLUMN `Wohnheim` BIGINT NULL AFTER `Pause`;
ALTER TABLE `valuelistentry`
CHANGE COLUMN `Notice` `Notice` VARCHAR(2048) NULL DEFAULT NULL ;
CREATE TABLE `supportconceptapprovalperiodhistory` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`IsActive` varchar(45) DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`ChangeType` tinyint NOT NULL DEFAULT '0',
`supportconceptapprovalperiod_EndDate` datetime DEFAULT NULL,
`supportconceptapprovalperiod_StartDate` datetime DEFAULT NULL,
`supportconceptapprovalperiod_MonthlyPayment` decimal(18,10) DEFAULT NULL,
`supportconceptapprovalperiod_IsApprovedFixedAmountShifting` tinyint(1) DEFAULT NULL,
`supportconceptapprovalperiod_ApprovedBEPerInterval` decimal(18,10) DEFAULT NULL,
`supportconceptapprovalperiod_ApprovedBEInterval` int DEFAULT NULL,
`supportconceptapprovalperiod_IsApprovedBEShifting` tinyint(1) DEFAULT NULL,
`supportconceptapprovalperiod_ApprovedBETotal` decimal(18,10) DEFAULT NULL,
`supportconceptapprovalperiod_ApprovedFixedAmount` decimal(18,10) DEFAULT NULL,
`supportconceptapprovalperiod_ApprovedFixedAmountInterval` int DEFAULT NULL,
`supportconceptapprovalperiod_CostBearer2SupportConceptHistoryOid` bigint DEFAULT NULL,
`supportconceptapprovalperiod_Percentage` decimal(18,10) DEFAULT NULL,
`supportconceptapprovalperiod_SupportConceptHistoryOid` bigint DEFAULT NULL,
`supportconceptapprovalperiod_ServiceCategoryOid` bigint DEFAULT NULL,
`supportconceptapprovalperiod_ContactCountPerInterval` decimal(18,10) DEFAULT NULL,
`supportconceptapprovalperiod_ContactCountInterval` int DEFAULT NULL,
`supportconceptapprovalperiod_BudgetOid` bigint DEFAULT NULL,
`supportconceptapprovalperiod_Bewilligungsart` int NOT NULL DEFAULT '0',
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `costbearer2supportconcepthistory` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Notice` varchar(1024) DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`Tid` int NOT NULL,
`SystemEntryID` int DEFAULT NULL,
`CostBearer2SupportConcept_CostBearerOid` bigint DEFAULT NULL,
`CostBearer2SupportConcept_SupportConceptHistoryOid` bigint DEFAULT NULL,
`CostBearer2SupportConcept_HourlyRate` decimal(18,10) DEFAULT NULL,
`CostBearer2SupportConcept_RateFactor` decimal(18,10) DEFAULT NULL,
`CostBearer2SupportConcept_ApprovedFLS` decimal(18,10) DEFAULT NULL,
`CostBearer2SupportConcept_ApprovedFLSTotal` decimal(18,10) DEFAULT NULL,
`CostBearer2SupportConcept_Status` int DEFAULT NULL,
`CostBearer2SupportConcept_RequestedStartDate` datetime DEFAULT NULL,
`CostBearer2SupportConcept_RequestedEndDate` datetime DEFAULT NULL,
`CostBearer2SupportConcept_ApprovedStartDate` datetime DEFAULT NULL,
`CostBearer2SupportConcept_ApprovedEndDate` datetime DEFAULT NULL,
`CostBearer2SupportConcept_CustomerReferenceNumber` varchar(512) DEFAULT NULL,
`CostBearer2SupportConcept_MonthlyPayment` decimal(18,10) DEFAULT NULL,
`CostBearer2SupportConcept_CostBearerContactPersonOid` bigint DEFAULT NULL,
`CostBearer2SupportConcept_AuswahlBezeichnung` varchar(512) DEFAULT NULL,
`ChangeType` tinyint DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
CREATE TABLE `supportconcepthistory` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`SupportConcept_CustomerOid` bigint NOT NULL,
`SupportConcept_EmployeeOid` bigint DEFAULT NULL,
`Tid` int NOT NULL,
`SupportConcept_Conference` tinyint DEFAULT NULL,
`SupportConcept_Originator` varchar(256) DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`Notice` mediumtext,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`SupportConcept_ConferenceDate` datetime DEFAULT NULL,
`SupportConcept_ApprovalDate` datetime DEFAULT NULL,
`SupportConcept_ConsultingNeeded` tinyint DEFAULT NULL,
`SupportConcept_RenewalSendDate` datetime DEFAULT NULL,
`SupportConcept_RequisitionSendDate` datetime DEFAULT NULL,
`SupportConcept_SupportConceptSendDate` datetime DEFAULT NULL,
`SupportConcept_ConferenceVenue` varchar(1024) DEFAULT NULL,
`ChangeType` tinyint DEFAULT NULL,
`SupportConceptOid` bigint DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `preis` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`Name` varchar(512) DEFAULT NULL,
`Betrag` decimal(18,10) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
ALTER TABLE `notizeneintrag` CHANGE COLUMN `Notice` `Notice` MEDIUMTEXT NULL DEFAULT NULL ;
ALTER TABLE `dienstinfo`
ADD COLUMN `Dauer` DOUBLE NULL DEFAULT NULL AFTER `Wohnheim`;
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,
`UpdTs` DATETIME NULL 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 `Bargeldtransaktion` ADD COLUMN Belegnummer VARCHAR(128) NULL DEFAULT NULL;
CREATE TABLE `abwesenheitsinformationprint` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`ObjectOid` bigint DEFAULT NULL,
`ObjectTid` int DEFAULT NULL,
`Notice` varchar(1024) 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,
`Employee` varchar(256) DEFAULT NULL,
`ResturlaubVorjahr` varchar(256) DEFAULT NULL,
`VerfallenerResturlaub` varchar(256) DEFAULT NULL,
`Urlaubsanspruch` varchar(256) DEFAULT NULL,
`Resturlaub` varchar(256) DEFAULT NULL,
`TageKrankheit` varchar(256) DEFAULT NULL,
`TageUrlaub` varchar(256) DEFAULT NULL,
`GeschenkteUrlaubstage` varchar(256) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
ALTER TABLE `wohnheim`
ADD COLUMN `PflichtbesetzungStart` VARCHAR(45) NULL DEFAULT NULL AFTER `Bemerkung`,
ADD COLUMN `PflichtbesetzungEnde` VARCHAR(45) NULL DEFAULT NULL AFTER `PflichtbesetzungStart`,
ADD COLUMN `PflichtbesetzungEinblenden` INT NULL DEFAULT NULL AFTER `PflichtbesetzungEnde`,
ADD COLUMN `StandardZeilenanzahl` INT NULL DEFAULT NULL AFTER `PflichtbesetzungEinblenden`;
ALTER TABLE `wohnheim`
ADD COLUMN `Sortierungsart` INT NULL DEFAULT NULL AFTER `StandardZeilenanzahl`,
ADD COLUMN `AbsteigendeSortierung` INT NULL DEFAULT NULL AFTER `Sortierungsart`;
ALTER TABLE `servicerecord` CHANGE COLUMN `DistanceInMeter` `DistanceInMeter` decimal(18,10) NULL DEFAULT NULL;
ALTER TABLE `servicerecordhistory` CHANGE COLUMN `DistanceInMeter` `DistanceInMeter` decimal(18,10) NULL DEFAULT NULL;
ALTER TABLE `servicedescription` ADD COLUMN `Percentage` DECIMAL(18,10);
ALTER TABLE `valuelistentry` ADD COLUMN `ValueListEntryOid` BIGINT NULL;
ALTER TABLE `NewSchedulerAppointment` ADD COLUMN `CompletedUser` varchar(256) NULL;
ALTER TABLE `Person` ADD COLUMN `AufenthaltGueltigBis` datetime NULL;
ALTER TABLE `servicecategory` ADD COLUMN `ProzentBudget` DECIMAL(18,10);
ALTER TABLE `servicecategory` ADD COLUMN `ProzentStundenkonto` DECIMAL(18,10);
ALTER TABLE `servicedescription` ADD COLUMN `ProzentBudget` DECIMAL(18,10);
ALTER TABLE `servicedescription` ADD COLUMN `ProzentStundenkonto` DECIMAL(18,10);
ALTER TABLE newschedulerappointment ADD COLUMN ServiceRecordOid BIGINT DEFAULT NULL,
ADD FOREIGN KEY FK_SERVICERECORD(ServiceRecordOid) REFERENCES servicerecord(oid) ON DELETE NO ACTION ON UPDATE NO ACTION;
CREATE TABLE `servicerecord2newschapp`(
`Oid` BIGINT NOT NULL AUTO_INCREMENT,
`ServiceRecordOid` BIGINT DEFAULT NULL,
`NewSchAppOid` BIGINT DEFAULT NULL,
PRIMARY KEY (`Oid`),
KEY `KEY_SERVICERECORD` (`ServiceRecordOid`),
KEY `KEY_NEWSCHAPP` (`NewSchAppOid`),
CONSTRAINT `FK_SERVICERECORD` FOREIGN KEY (`ServiceRecordOid`) REFERENCES `servicerecord` (`Oid`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `FK_NEWSCHAPP` FOREIGN KEY (`NewSchAppOid`) REFERENCES `newschedulerappointment` (`Oid`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
CREATE TABLE `ErrorMessage` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Version` bigint DEFAULT NULL,
`Tid` int NOT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`UpdTs` datetime DEFAULT NULL,
`Notice` MEDIUMTEXT DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`Datum` datetime DEFAULT NULL,
`Message` MEDIUMTEXT DEFAULT NULL,
`MessageDetails` MEDIUMTEXT DEFAULT NULL,
`Modul` varchar(256) DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
ALTER TABLE `address`
ADD COLUMN `Latitude` DECIMAL(8,6) NULL DEFAULT NULL AFTER `AddressLine2`,
ADD COLUMN `Longitude` DECIMAL(9,6) NULL DEFAULT NULL AFTER `Latitude`,
ADD COLUMN `L_Version` BIGINT(19) NULL DEFAULT NULL AFTER `Longitude`;
CREATE TABLE `AddressRoute` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`Notice` varchar(1024) DEFAULT NULL,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`Address1Oid` bigint DEFAULT NULL,
`Address1Version` bigint DEFAULT NULL,
`Address2Oid` bigint DEFAULT NULL,
`Address2Version` bigint DEFAULT NULL,
`DistanceMeter` int DEFAULT NULL,
`TimeSec` int DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `customer`
ADD COLUMN `Uebernahmeort` MEDIUMTEXT NULL,
ADD COLUMN `Verhalten` MEDIUMTEXT NULL,
ADD COLUMN `Betreuungsbedarf` MEDIUMTEXT NULL,
ADD COLUMN `BemerkungenSbd` MEDIUMTEXT NULL;
ALTER TABLE `employee`
ADD COLUMN `BemerkungenSbd` MEDIUMTEXT NULL;
ALTER TABLE `customer`
ADD COLUMN `HealthInsurance` VARCHAR(45) NULL DEFAULT NULL AFTER `BemerkungenSbd`,
ADD COLUMN `InsuranceNumber` VARCHAR(45) NULL DEFAULT NULL AFTER `HealthInsurance`;
CREATE TABLE `ValidationMessage` (
`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,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`Message` varchar(1024) DEFAULT NULL,
`UserOid` bigint DEFAULT NULL,
`EmployeeOid` bigint DEFAULT NULL,
`CustomerName` varchar(512) DEFAULT NULL,
`SupportConceptOid` bigint DEFAULT NULL,
`ServiceRecordStart` datetime DEFAULT NULL,
`ServiceRecordEnd` datetime DEFAULT NULL,
`ServiceRecordValidationResult` int DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
ALTER TABLE `applicationuser`
ADD COLUMN `LicenseType` VARCHAR(128) NULL DEFAULT NULL;
ALTER TABLE `invoicebase`
ADD COLUMN `StornoInvoiceBaseOid` BIGINT NULL DEFAULT NULL;
ALTER TABLE `Employee2Customer` ADD COLUMN `StartDate` datetime NULL;
ALTER TABLE `Employee2Customer` ADD COLUMN `EndDate` datetime NULL;
ALTER TABLE `Mandator` ADD COLUMN `LastModules` MEDIUMTEXT NULL;
ALTER TABLE `validationmessage`
ADD COLUMN `ServiceCategory` VARCHAR(512) NULL DEFAULT NULL,
ADD COLUMN `ServiceDescription` VARCHAR(512) NULL DEFAULT NULL;
ALTER TABLE `AbsenceReason` ADD COLUMN `Sichtbarkeit` int NULL;
ALTER TABLE `feiertag`
ADD COLUMN `OrganisationOid` BIGINT NULL DEFAULT NULL;
ALTER TABLE servicerecordhistory ADD COLUMN `CustomerConfirmationReceiptSignatureStateType` int DEFAULT 0;
ALTER TABLE servicerecordhistory ADD COLUMN `EmployeeConfirmationReceiptSignatureStateType` int DEFAULT 0;
ALTER TABLE servicerecordhistory ADD COLUMN `ServiceRecordSignatureStateType` int DEFAULT 0;
ALTER TABLE servicerecordhistory ADD COLUMN `CustomerConfirmationReceiptSignatureOid` BIGINT(18) DEFAULT NULL, ADD COLUMN `EmployeeConfirmationReceiptSignatureOid` BIGINT(18) DEFAULT NULL;
CREATE TABLE `AdditionalServiceNotice` (
`Oid` bigint NOT NULL AUTO_INCREMENT,
`Tid` int NOT NULL,
`Notice` mediumtext,
`InsTs` datetime DEFAULT NULL,
`InsUser` varchar(256) DEFAULT NULL,
`Version` bigint DEFAULT NULL,
`UpdTs` varchar(256) DEFAULT NULL,
`UdpUser` varchar(256) DEFAULT NULL,
`IsActive` tinyint DEFAULT NULL,
`SystemEntryID` int DEFAULT NULL,
`RegionOid` bigint DEFAULT NULL,
`CustomerOid` bigint DEFAULT NULL,
`Monat` datetime DEFAULT NULL,
PRIMARY KEY (`Oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `customer`
ADD COLUMN `VersichertenStatus` VARCHAR(256) NULL DEFAULT NULL;
ALTER TABLE `organisation`
ADD COLUMN `IKKrankenkasse` VARCHAR(256) NULL DEFAULT NULL,
ADD COLUMN `IKKostentrager` VARCHAR(256) NULL DEFAULT NULL,
ADD COLUMN `IKDatenannahmestelle` VARCHAR(256) NULL DEFAULT NULL;
ALTER TABLE `mandator`
ADD COLUMN `IKLeistungserbringer` VARCHAR(256) NULL;
ALTER TABLE signature
ADD COLUMN EmployeeOid BIGINT DEFAULT NULL,
ADD COLUMN CustomerOid BIGINT DEFAULT NULL,
ADD COLUMN BargeldtransaktionsOid BIGINT DEFAULT NULL;
CREATE TABLE `bargeldtransaktionshistory` (
Oid BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
InsTs DATETIME DEFAULT NULL,
InsUser VARCHAR(256) DEFAULT NULL,
UdpUser VARCHAR(256) DEFAULT NULL,
Tid INT NOT NULL,
Notice VARCHAR(1024) DEFAULT NULL,
Version BIGINT DEFAULT NULL,
IsActive TINYINT DEFAULT NULL,
SystemEntryID INT DEFAULT NULL,
ChangeType TINYINT DEFAULT NULL,
Zahlungstyp TINYINT DEFAULT NULL,
Zahlungsdatum DATETIME DEFAULT NULL,
Betrag DECIMAL(18, 10) DEFAULT NULL,
Transaktionskassenbestand DECIMAL(18, 10) DEFAULT NULL,
BargeldtransaktionOid BIGINT DEFAULT NULL,
Belegnummer VARCHAR(128) DEFAULT NULL,
SignatureOid BIGINT DEFAULT NULL,
SignatureStateType INT DEFAULT '0',
BargeldtransaktionInsTs DATETIME DEFAULT NULL,
BargeldtransaktionInsUser VARCHAR(256) DEFAULT NULL,
BargeldtransaktionVersion BIGINT DEFAULT NULL,
BargeldtransaktionUdpUser VARCHAR(256) DEFAULT NULL
) ENGINE=InnoDB;
ALTER TABLE bargeldtransaktion ADD COLUMN SignatureOid BIGINT;
ALTER TABLE `goalrating` CHANGE COLUMN `Notice` `Notice` MEDIUMTEXT NULL DEFAULT NULL;
ALTER TABLE `invoicebase`
ADD COLUMN `IsReviewed` tinyint NULL DEFAULT 0 AFTER `Type`,
ADD COLUMN `IsSent` tinyint NULL DEFAULT 0 AFTER `IsReviewed`,
ADD COLUMN `IsExported` tinyint NULL DEFAULT 0 AFTER `IsSent`,
ADD COLUMN `PartialPayment` VARCHAR(512) NULL DEFAULT NULL AFTER `IsPaid`;
ALTER TABLE `organisation`
ADD COLUMN `Leistungserbringergruppe` VARCHAR(256) NULL DEFAULT NULL AFTER `IKDatenannahmestelle`;
CREATE TABLE `twofactorcode` (
Oid BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
InsTs DATETIME DEFAULT NULL,
UpdTs DATETIME DEFAULT NULL,
InsUser VARCHAR(256) DEFAULT NULL,
UdpUser VARCHAR(256) DEFAULT NULL,
Tid INT NOT NULL,
Notice VARCHAR(1024) DEFAULT NULL,
Version BIGINT DEFAULT NULL,
IsActive TINYINT DEFAULT NULL,
SystemEntryID INT DEFAULT NULL,
TFCode VARCHAR(16) DEFAULT NULL,
LoginName VARCHAR(256) DEFAULT NULL,
Password VARCHAR(1024) DEFAULT NULL,
IPAddress VARCHAR(256) DEFAULT NULL,
CreateDate DATETIME DEFAULT NULL,
UsedDate DATETIME DEFAULT NULL
) ENGINE=InnoDB;
ALTER TABLE `servicerecordhistory`
ADD INDEX `cb2scIdx` (`CostBearer2SupportConceptOid` ASC);
ALTER TABLE `vorlagentabelle`
ADD COLUMN `ImageName` VARCHAR(128) NULL AFTER `Tabellenname`;