diff --git a/script/import_scripts/phpbb3/database/database_3_1.rb b/script/import_scripts/phpbb3/database/database_3_1.rb index c9368edf331..2d18880ab59 100644 --- a/script/import_scripts/phpbb3/database/database_3_1.rb +++ b/script/import_scripts/phpbb3/database/database_3_1.rb @@ -4,7 +4,7 @@ require_relative '../support/constants' module ImportScripts::PhpBB3 class Database_3_1 < Database_3_0 def fetch_users(last_user_id) - query(<<-SQL) + query(<<-SQL, :user_id) SELECT u.user_id, u.user_email, u.username, CASE WHEN u.user_password LIKE '$2y$%' THEN CONCAT('$2a$', SUBSTRING(u.user_password, 5)) @@ -21,7 +21,7 @@ module ImportScripts::PhpBB3 (b.ban_end = 0 OR b.ban_end >= UNIX_TIMESTAMP()) ) WHERE u.user_id > #{last_user_id} AND u.user_type != #{Constants::USER_TYPE_IGNORE} - ORDER BY u.user_id ASC + ORDER BY u.user_id LIMIT #{@batch_size} SQL end