From 4679971194688c81f25669640f03bb81a02375e5 Mon Sep 17 00:00:00 2001 From: Emil Siverhall <emil-siv@dsv.su.se> Date: Wed, 20 Feb 2013 15:02:38 +0100 Subject: [PATCH] added new current.sql file --- resources/db_update_scripts/current.sql | 25 ------------------- .../db_update_2013-02-20.sql | 25 +++++++++++++++++++ 2 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 resources/db_update_scripts/db_update_2013-02-20.sql diff --git a/resources/db_update_scripts/current.sql b/resources/db_update_scripts/current.sql index f1debe8465..e69de29bb2 100755 --- a/resources/db_update_scripts/current.sql +++ b/resources/db_update_scripts/current.sql @@ -1,25 +0,0 @@ --- --- Table structure for table `applicationperiodexemption` --- - -CREATE TABLE IF NOT EXISTS `applicationperiodexemption` ( - `applicationPeriodId` bigint(20) NOT NULL, - `studentId` bigint(20) NOT NULL, - `until` datetime DEFAULT NULL, - PRIMARY KEY (`applicationPeriodId`,`studentId`), - KEY `FK34182FD8790761A4` (`applicationPeriodId`), - KEY `FKCB7E71913353DC5C` (`studentId`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - --- --- Constraints for table `applicationperiodexemption` --- -ALTER TABLE `applicationperiodexemption` - ADD CONSTRAINT `FK34182FD8790761A4` FOREIGN KEY (`applicationPeriodId`) REFERENCES `ApplicationPeriod` (`id`), - ADD CONSTRAINT `FKCB7E71913353DC5C` FOREIGN KEY (`studentId`) REFERENCES `role` (`id`); - -ALTER TABLE `project` ADD COLUMN `externalOrganization` varchar(255) DEFAULT NULL; - -ALTER TABLE `NotificationData` - ADD COLUMN `causedBy_id` bigint(20) DEFAULT NULL, - ADD CONSTRAINT `FK2DCAC355B2E2AD78` FOREIGN KEY (`causedBy_id`) REFERENCES `user` (`id`); \ No newline at end of file diff --git a/resources/db_update_scripts/db_update_2013-02-20.sql b/resources/db_update_scripts/db_update_2013-02-20.sql new file mode 100644 index 0000000000..f1debe8465 --- /dev/null +++ b/resources/db_update_scripts/db_update_2013-02-20.sql @@ -0,0 +1,25 @@ +-- +-- Table structure for table `applicationperiodexemption` +-- + +CREATE TABLE IF NOT EXISTS `applicationperiodexemption` ( + `applicationPeriodId` bigint(20) NOT NULL, + `studentId` bigint(20) NOT NULL, + `until` datetime DEFAULT NULL, + PRIMARY KEY (`applicationPeriodId`,`studentId`), + KEY `FK34182FD8790761A4` (`applicationPeriodId`), + KEY `FKCB7E71913353DC5C` (`studentId`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- +-- Constraints for table `applicationperiodexemption` +-- +ALTER TABLE `applicationperiodexemption` + ADD CONSTRAINT `FK34182FD8790761A4` FOREIGN KEY (`applicationPeriodId`) REFERENCES `ApplicationPeriod` (`id`), + ADD CONSTRAINT `FKCB7E71913353DC5C` FOREIGN KEY (`studentId`) REFERENCES `role` (`id`); + +ALTER TABLE `project` ADD COLUMN `externalOrganization` varchar(255) DEFAULT NULL; + +ALTER TABLE `NotificationData` + ADD COLUMN `causedBy_id` bigint(20) DEFAULT NULL, + ADD CONSTRAINT `FK2DCAC355B2E2AD78` FOREIGN KEY (`causedBy_id`) REFERENCES `user` (`id`); \ No newline at end of file