forked from science-ation/science-ation
- delete the year too, and do the users_id conversion in one spot only
This commit is contained in:
parent
87c845c048
commit
ca81fc2273
@ -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';
|
||||
|
||||
|
@ -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`;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user