From a3b72f7aa3470b4b8652df563d5ebc2b081a7695 Mon Sep 17 00:00:00 2001 From: jacob Date: Wed, 10 Nov 2010 19:25:46 +0000 Subject: [PATCH] Altering tables projectdivisions, projectsubdivisions, and projectcategories, changing their primary keys from (year, id) to (conferences_id, id) --- db/db.code.version.txt | 2 +- db/db.update.220.sql | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 db/db.update.220.sql diff --git a/db/db.code.version.txt b/db/db.code.version.txt index 037ba97..3d4c7bf 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -219 +220 diff --git a/db/db.update.220.sql b/db/db.update.220.sql new file mode 100644 index 0000000..13b73f5 --- /dev/null +++ b/db/db.update.220.sql @@ -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`); +