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