mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-18 18:18:48 +08:00
The generic bulk importer never wrote the `approved`, `approved_at`, or `approved_by_id` columns, so every imported user ended up with `approved = false` (the database default) regardless of the values in the IntermediateDB. On sites with `must_approve_users` enabled this left imported users stuck in the approval queue and unable to log in. Add the columns to `USER_COLUMNS`, map them from the IntermediateDB in `import_users`, and default `approved` to true (with `approved_at` and `approved_by_id` fallbacks) when not provided, matching the behavior of the per-user `ImportScripts::Base` importer. |
||
|---|---|---|
| .. | ||
| base.rb | ||
| discourse_merger.rb | ||
| generic_bulk.rb | ||
| phpbb_postgresql.rb | ||
| uploads_importer.rb | ||
| uploads_importer.yml | ||
| vanilla.rb | ||
| vbulletin.rb | ||
| vbulletin5.rb | ||