2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Update vbulletin.rb

This commit is contained in:
Daniel Phin 2015-03-10 00:31:12 +10:30
parent 70f00e31df
commit c35cdfcf6b

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}