Altering tables projectdivisions, projectsubdivisions, and projectcategories, changing their primary keys from (year, id) to (conferences_id, id)

This commit is contained in:
jacob 2010-11-10 19:25:46 +00:00
parent a7a7735347
commit a3b72f7aa3
2 changed files with 8 additions and 1 deletions

View File

@ -1 +1 @@
219
220

7
db/db.update.220.sql Normal file
View File

@ -0,0 +1,7 @@
ALTER TABLE `projectcategories` DROP PRIMARY KEY;
ALTER TABLE `projectcategories` ADD PRIMARY KEY (`id`, `conferences_id`);
ALTER TABLE `projectdivisions` DROP PRIMARY KEY;
ALTER TABLE `projectdivisions` ADD PRIMARY KEY (`id`, `conferences_id`);
ALTER TABLE `projectsubdivisions` DROP PRIMARY KEY;
ALTER TABLE `projectsubdivisions` ADD PRIMARY KEY (`id`, `conferences_id`);