- delete the year too, and do the users_id conversion in one spot only

This commit is contained in:
dave 2008-10-17 20:40:11 +00:00
parent 87c845c048
commit ca81fc2273
2 changed files with 3 additions and 2 deletions

View File

@ -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';

View File

@ -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`;