From ca81fc227318eda8366bfe1afba6d22e763ac8a3 Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 17 Oct 2008 20:40:11 +0000 Subject: [PATCH] - delete the year too, and do the users_id conversion in one spot only --- db/db.update.116.sql | 2 -- db/db.update.117.sql | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/db/db.update.116.sql b/db/db.update.116.sql index 68f1e24..75ab8d3 100644 --- a/db/db.update.116.sql +++ b/db/db.update.116.sql @@ -22,5 +22,3 @@ ALTER TABLE `users_volunteer` DROP `tmp`; DROP TABLE users_years; -ALTER TABLE `question_answers` CHANGE `registrations_id` `users_id` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'; - diff --git a/db/db.update.117.sql b/db/db.update.117.sql index 42a6ca4..1f3cfd9 100644 --- a/db/db.update.117.sql +++ b/db/db.update.117.sql @@ -7,4 +7,7 @@ DROP TABLE `judges`,`judges_catpref`,`judges_expertise`,`judges_languages`,`judg -- questions table should use users_id now (which is what was being saved in the registrations_id) ALTER TABLE `question_answers` CHANGE `registrations_id` `users_id` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'; +-- The answer has been linked to a users_id that is unique per-year, so we don't need to duplicate the year storage +ALTER TABLE `question_answers` DROP `year`; +