forked from science-ation/science-ation
5 lines
234 B
MySQL
5 lines
234 B
MySQL
|
ALTER TABLE `accounts` ADD `link_username_to_email` ENUM( 'yes', 'no' ) NOT NULL AFTER `username` ;
|
||
|
UPDATE `accounts` SET `link_username_to_email`='yes';
|
||
|
UPDATE `accounts` SET `link_username_to_email`='no' WHERE `username`!=`email`;
|
||
|
|