diff --git a/resources/db_update_scripts/current.sql b/resources/db_update_scripts/current.sql index 222341e138..e69de29bb2 100755 --- a/resources/db_update_scripts/current.sql +++ b/resources/db_update_scripts/current.sql @@ -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'; diff --git a/resources/db_update_scripts/db_update_2013-08-16.sql b/resources/db_update_scripts/db_update_2013-08-16.sql new file mode 100755 index 0000000000..222341e138 --- /dev/null +++ b/resources/db_update_scripts/db_update_2013-08-16.sql @@ -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';