Merge pull request #3261 from dpi/patch-1

vBulletin user import missing email field
This commit is contained in:
Robin Ward 2015-03-09 12:03:51 -04:00
commit 4fd19d6328

View File

@ -58,11 +58,9 @@ class ImportScripts::VBulletin < ImportScripts::Base
user_count = mysql_query("SELECT COUNT(userid) count FROM user").first["count"]
# TODO: add email back in when using real data
batches(BATCH_SIZE) do |offset|
users = mysql_query <<-SQL
SELECT userid, username, homepage, usertitle, usergroupid, joindate
SELECT userid, username, homepage, usertitle, usergroupid, joindate, email
FROM user
ORDER BY userid
LIMIT #{BATCH_SIZE}