science-ation/db/db.update.198.sql

6 lines
216 B
MySQL
Raw Permalink Normal View History

-- Change the (unique) index in the users table from (username,year)
-- to (accounts_id,conferences_id)
ALTER TABLE `users` DROP INDEX `username`;
ALTER TABLE `users` ADD UNIQUE (`accounts_id` , `conferences_id`);