forked from science-ation/science-ation
More fields for hte account
This commit is contained in:
parent
514c1f12b9
commit
2e17685fc2
@ -34,3 +34,13 @@ DROP TABLE `users_conferences_link`;
|
||||
|
||||
-- Add conferences ID to users
|
||||
ALTER TABLE `users` ADD `conferences_id` INT NOT NULL AFTER `accounts_id`;
|
||||
|
||||
-- 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`);
|
||||
|
||||
-- Add deleted/deleted_datetime data to the accounts table
|
||||
ALTER TABLE `accounts` ADD `deleted` ENUM( 'no', 'yes' ) NOT NULL DEFAULT 'no' AFTER `superuser`;
|
||||
ALTER TABLE `accounts` ADD `deleted_datetime` DATETIME NOT NULL AFTER `deleted`;
|
||||
UPDATE `accounts` SET `deleted`='no';
|
||||
|
Loading…
Reference in New Issue
Block a user