updating db scripts

This commit is contained in:
Emil Siverhall 2012-02-21 16:18:21 +01:00
parent af1f93b959
commit 4de8e95d67
2 changed files with 16 additions and 1 deletions
resources/db_update_scripts

@ -4,4 +4,18 @@ CHANGE `endDate` `endDate` DATETIME NOT NULL,
CHANGE `name` `name` varchar(255) NOT NULL
-- Add Thesis Support-user to Scipro database.
INSERT INTO `scipro`.`user` (
`id` ,
`dateCreated` ,
`lastModified` ,
`deleted` ,
`emailAddress` ,
`firstName` ,
`identifier` ,
`lastName` ,
`version`
)
VALUES (
NULL , '2012-02-21 10:27:30', '2012-02-21 10:27:35','0', 'thesissupport@dsv.su.se', 'Thesis', NULL , 'Support', '0'
);

@ -4,6 +4,7 @@ ALTER TABLE projectIdea ADD COLUMN applicationPeriod_id bigint(20) NOT NULL,
-- required database changes for new keyword imports.
ALTER TABLE Keyword ADD COLUMN identifier bigint(20);
-- BELOW IS ONLY FOR PROD DB, DON'T USE LOCALLY IF YOU DON'T HAVE THE SAME KEYWORD IDs
UPDATE Keyword SET identifier = 17 WHERE Keyword.id = 181;
UPDATE Keyword SET identifier = 14 WHERE Keyword.id = 179;
UPDATE Keyword SET identifier = 28 WHERE Keyword.id = 180;