added new db update file
This commit is contained in:
parent
e8238a2779
commit
328f2788d0
resources/db_update_scripts
@ -1,29 +0,0 @@
|
||||
--
|
||||
-- Table structure for table `target`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `target` (
|
||||
`applicationPeriodId` bigint(20) NOT NULL,
|
||||
`employeeId` bigint(20) NOT NULL,
|
||||
`projectClassId` bigint(20) NOT NULL,
|
||||
`target` int(11) NOT NULL,
|
||||
PRIMARY KEY (`applicationPeriodId`,`employeeId`,`projectClassId`),
|
||||
KEY `FKCB7E71913353DC5C` (`employeeId`),
|
||||
KEY `FKCB7E7191A520201E` (`projectClassId`),
|
||||
KEY `FKCB7E7191790761A4` (`applicationPeriodId`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
--
|
||||
-- Constraints for table `target`
|
||||
--
|
||||
ALTER TABLE `target`
|
||||
ADD CONSTRAINT `FKCB7E7191790761A4b` FOREIGN KEY (`applicationPeriodId`) REFERENCES `ApplicationPeriod` (`id`),
|
||||
ADD CONSTRAINT `FKCB7E71913353DC5Cb` FOREIGN KEY (`employeeId`) REFERENCES `role` (`id`),
|
||||
ADD CONSTRAINT `FKCB7E7191A520201Eb` FOREIGN KEY (`projectClassId`) REFERENCES `project_class` (`id`);
|
||||
|
||||
DROP TABLE Employee_countActiveFromDates;
|
||||
DROP TABLE Employee_projectLimits;
|
||||
|
||||
ALTER TABLE `user_profile` ADD `threadedForum` TINYINT( 1 ) NOT NULL DEFAULT '1';
|
||||
|
||||
ALTER TABLE `user_profile` ADD `sortLatestForumPost` TINYINT( 1 ) NOT NULL DEFAULT '1';
|
29
resources/db_update_scripts/db_update_2013-08-16.sql
Executable file
29
resources/db_update_scripts/db_update_2013-08-16.sql
Executable file
@ -0,0 +1,29 @@
|
||||
--
|
||||
-- Table structure for table `target`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `target` (
|
||||
`applicationPeriodId` bigint(20) NOT NULL,
|
||||
`employeeId` bigint(20) NOT NULL,
|
||||
`projectClassId` bigint(20) NOT NULL,
|
||||
`target` int(11) NOT NULL,
|
||||
PRIMARY KEY (`applicationPeriodId`,`employeeId`,`projectClassId`),
|
||||
KEY `FKCB7E71913353DC5C` (`employeeId`),
|
||||
KEY `FKCB7E7191A520201E` (`projectClassId`),
|
||||
KEY `FKCB7E7191790761A4` (`applicationPeriodId`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
--
|
||||
-- Constraints for table `target`
|
||||
--
|
||||
ALTER TABLE `target`
|
||||
ADD CONSTRAINT `FKCB7E7191790761A4b` FOREIGN KEY (`applicationPeriodId`) REFERENCES `ApplicationPeriod` (`id`),
|
||||
ADD CONSTRAINT `FKCB7E71913353DC5Cb` FOREIGN KEY (`employeeId`) REFERENCES `role` (`id`),
|
||||
ADD CONSTRAINT `FKCB7E7191A520201Eb` FOREIGN KEY (`projectClassId`) REFERENCES `project_class` (`id`);
|
||||
|
||||
DROP TABLE Employee_countActiveFromDates;
|
||||
DROP TABLE Employee_projectLimits;
|
||||
|
||||
ALTER TABLE `user_profile` ADD `threadedForum` TINYINT( 1 ) NOT NULL DEFAULT '1';
|
||||
|
||||
ALTER TABLE `user_profile` ADD `sortLatestForumPost` TINYINT( 1 ) NOT NULL DEFAULT '1';
|
Loading…
x
Reference in New Issue
Block a user