science-ation/db/db.update.198.sql
dave ccf1b9c453 Fix an update bug. The code needs to be run to set the conference ID
before we can build a UNIQUE index on the conference id.
2010-07-13 04:25:00 +00:00

6 lines
216 B
SQL

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