forked from science-ation/science-ation
1be2301844
year after year.. we should probably keep the "year" column there too.. it's easier to query that than querying the config variables to find all the years taht the conference was active (needed for ceremony script and report generation)
15 lines
724 B
SQL
15 lines
724 B
SQL
-- Add an original ID to the conference, unfortunately we have no way really to distinguish conferences now, so make
|
|
-- everything the same conference... this is wrong in some testing cases, but no one will be using multiple conferences yet
|
|
ALTER TABLE `conferences` ADD `oid` INT NOT NULL AFTER `id`;
|
|
UPDATE `conferences`, (SELECT `id` FROM `conferences` ORDER BY `year` LIMIT 1) as newid SET oid=newid.id WHERE 1;
|
|
|
|
-- user_roles.conferences_id was moved to users
|
|
ALTER TABLE `user_roles` DROP `conferences_id` ;
|
|
|
|
-- Passwords were moved to accounts, keep username/email
|
|
-- around for now, just in case.
|
|
ALTER TABLE `users` DROP `password`;
|
|
ALTER TABLE `users` DROP `passwordset`;
|
|
ALTER TABLE `users` DROP `oldpassword`;
|
|
|