Add a field so we can record email->username linkage

This commit is contained in:
dave 2010-07-14 18:57:00 +00:00
parent 82bdfdbd10
commit 80537e75f2
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
201
202

4
db/db.update.202.sql Normal file
View File

@ -0,0 +1,4 @@
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`;