

UPDATE `core_user` SET `avatar` = `photo` WHERE `avatar` = '' AND `photo` <> '';
ALTER TABLE `core_user` DROP `photo`;


